[Zodb-checkins] CVS: StandaloneZODB/ZODB - BaseStorage.py:1.14.62.1
Jeremy Hylton
jeremy@zope.com
Mon, 8 Oct 2001 22:41:19 -0400
Update of /cvs-repository/StandaloneZODB/ZODB
In directory cvs.zope.org:/tmp/cvs-serv9146
Modified Files:
Tag: jeremy-Standby-branch
BaseStorage.py
Log Message:
reformat some lines
Add TransactionRecord and DataRecord as abstract base classes for
iterator protocol
=== StandaloneZODB/ZODB/BaseStorage.py 1.14 => 1.14.62.1 ===
t=self._ts=apply(TimeStamp,(time.gmtime(t)[:5]+(t%60,)))
self._serial=`t`
- if base is None: self._oid='\0\0\0\0\0\0\0\0'
- else: self._oid=base._oid
+ if base is None:
+ self._oid='\0\0\0\0\0\0\0\0'
+ else:
+ self._oid=base._oid
def abortVersion(self, src, transaction):
if transaction is not self._transaction:
@@ -295,3 +297,9 @@
self.tpc_vote(transaction)
self.tpc_finish(transaction)
+
+class TransactionRecord:
+ """Abstract base class for iterator protocol"""
+
+class DataRecord:
+ """Abstract base class for iterator protocol"""