[Zope3-checkins] CVS: ZODB4/src/zodb - interfaces.py:1.8.4.1

Barry Warsaw barry@wooz.org
Mon, 10 Feb 2003 17:45:57 -0500


Update of /cvs-repository/ZODB4/src/zodb
In directory cvs.zope.org:/tmp/cvs-serv29839/src/zodb

Modified Files:
      Tag: opaque-pickles-branch
	interfaces.py 
Log Message:
Added, and export via __all__, both ZERO and MAXTID constants.


=== ZODB4/src/zodb/interfaces.py 1.8 => 1.8.4.1 ===
--- ZODB4/src/zodb/interfaces.py:1.8	Wed Feb  5 18:28:34 2003
+++ ZODB4/src/zodb/interfaces.py	Mon Feb 10 17:45:57 2003
@@ -25,25 +25,32 @@
 from transaction.interfaces \
      import TransactionError, RollbackError, ConflictError as _ConflictError
 
-__all__ = ['POSError',
-           'POSKeyError',
-           'ConflictError',
-           'ReadConflictError',
-           'DanglingReferenceError',
-           'VersionError',
-           'VersionCommitError',
-           'VersionLockError',
-           'UndoError',
-           'MultipleUndoErrors',
-           'ExportError',
-           'Unsupported',
-           
-           'InvalidObjectReference',
-           'IAppConnection',
-           'IConnection',
-           'ITransaction',
-           'ITransactionAttrs',
-           ]
+__all__ = [
+    # Constants
+    'ZERO', 'MAXTID',
+    # Exceptions
+    'POSError',
+    'POSKeyError',
+    'ConflictError',
+    'ReadConflictError',
+    'DanglingReferenceError',
+    'VersionError',
+    'VersionCommitError',
+    'VersionLockError',
+    'UndoError',
+    'MultipleUndoErrors',
+    'ExportError',
+    'Unsupported',
+    'InvalidObjectReference',
+    # Interfaces
+    'IAppConnection',
+    'IConnection',
+    'ITransaction',
+    'ITransactionAttrs',
+    ]
+
+ZERO = '\0'*8
+MAXTID = '\377'*8
 
 def _fmt_oid(oid):
     return "%016x" % zodb.utils.u64(oid)