Changeset 4380:929fe89e4b0c in livinglogic.python.xist

Show
Ignore:
Timestamp:
03/03/11 17:17:54 (9 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Fix getfullname() call. Use getfullname() method where possible.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/orasql/__init__.py

    r4379 r4380  
    6868class SQLObjectNotFoundError(IOError): 
    6969    def __init__(self, obj): 
    70         IOError.__init__(self, errno.ENOENT, "no such {}: {}".format(obj.type, getfullname(obj.name, obj.owner))) 
     70        IOError.__init__(self, errno.ENOENT, "no such {}: {}".format(obj.type, obj.getfullname())) 
    7171        self.obj = obj 
    7272 
     
    16901690        if self.isconstraint(connection): 
    16911691            return u"" 
    1692         code = u"drop index {}".format(getfullname(self.name, self.owner)) 
     1692        code = u"drop index {}".format(self.getfullname()) 
    16931693        if term: 
    16941694            code += u";\n" 
     
    18701870            public = "" 
    18711871        name = getfullname(self.name, owner) 
    1872         code = u"drop {}synonym {}".format(public, getfullname(name)) 
     1872        code = u"drop {}synonym {}".format(public, name) 
    18731873        if term: 
    18741874            code += u";\n"