[Zope-Checkins] CVS: Products/DCOracle2/DCOracleStorage - Full.py:1.5
Matthew T. Kromer
matt@zope.com
Fri, 8 Feb 2002 12:18:41 -0500
Update of /cvs-repository/Products/DCOracle2/DCOracleStorage
In directory cvs.zope.org:/tmp/cvs-serv19008
Modified Files:
Full.py
Log Message:
More fixes for Holger -- made undo and versions work, and fixed my typo
=== Products/DCOracle2/DCOracleStorage/Full.py 1.4 => 1.5 ===
self._lock_acquire()
try:
- x, c = self._call('versions', (), 'versions')
+ c = self._call('versions', (), 'versions')
return self._getColumn(c, 0)
finally: self._lock_release()
def history(self, oid, version=None, length=1, filter=None):
self._lock_acquire()
try:
- x, c = self._call('history', (unpack64(oid),), 'history')
+ c = self._call('history', (unpack64(oid),), 'history')
r=[]; a=r.append; i=0
while len(r) < length:
row=c.fetchone()
@@ -512,7 +512,7 @@
rootl = ['\0\0\0\0\0\0\0\0']; pop = rootl.pop
i=0
# Holger Cornelsen contributed a duplicate OID patch
- pindx = {} # HC
+ pindex = {} # HC
referenced = pindex.has_key # HC
while rootl:
i=i+1