[Zope-Checkins] CVS: Products/DCOracle2/DCOracle2 - DCOracle2.py:1.81.4.4
Matthew T. Kromer
matt@zope.com
Fri, 8 Mar 2002 15:03:00 -0500
Update of /cvs-repository/Products/DCOracle2/DCOracle2
In directory cvs.zope.org:/tmp/cvs-serv5857/DCOracle2
Modified Files:
Tag: dco2-object-branch
DCOracle2.py
Log Message:
Modify connection's describe method to stuff the name of the described object
in to the result if it isnt there already.
=== Products/DCOracle2/DCOracle2/DCOracle2.py 1.81.4.3 => 1.81.4.4 ===
raise InterfaceError, "The database connection is closed"
- return self._db.describe(name)
+ desc = self._db.describe(name)
+ if (not desc.has_key('OCI_ATTR_OBJ_NAME') or
+ not desc['OCI_ATTR_OBJ_NAME']):
+ desc['OCI_ATTR_OBJ_NAME'] = name
+ return desc
# NONAPI
def BindingArray(self,*args):