[Zope-Checkins] CVS: Products/DCOracle2/DCOracle2 - DCOracle2.py:1.77
Matthew T. Kromer
matt@zope.com
Thu, 25 Oct 2001 14:46:41 -0400
Update of /cvs-repository/Products/DCOracle2/DCOracle2
In directory cvs.zope.org:/tmp/cvs-serv24417/DCOracle2
Modified Files:
DCOracle2.py
Log Message:
Updated version identification
=== Products/DCOracle2/DCOracle2/DCOracle2.py 1.76 => 1.77 ===
from string import split, join, upper, find
-version = "$Revision$" [11:-2] + " (dco2: %s)" % dco2.__version__
+version = "$Revision$" [11:-2] + " (dco2: %s %s)" % (
+ dco2.__version__, dco2.buildDefs)
apilevel = '2.0'
@@ -313,6 +314,7 @@
if d.has_key('_cursor'): c = d['_cursor'] # If internal cursor exists...
else: d['_cursor'] = c = self.cursor() # otherwise, create it
if name == '_cursor': return c
+ if name == 'version': return self.Version()
if hasattr(c, name): return getattr(c, name) # pass through
raise AttributeError, name
@@ -336,7 +338,8 @@
for (product, vers, production) in c.fetchall():
d[product] = "%s (%s)" % (vers, production)
del c
- d['DCOracle2'] = version
+ d['DCOracle2'] = version
+ self.__dict__['version'] = d
return d
# NONAPI