[Neo-report] r1783 gregory - /trunk/neo/client/Storage.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 16 17:42:42 CET 2010
Author: gregory
Date: Tue Feb 16 17:42:42 2010
New Revision: 1783
Log:
Add pack() prototype and mark it as unimplemented.
Reorganize unimplemented methods, gather all at end of file.
Modified:
trunk/neo/client/Storage.py
Modified: trunk/neo/client/Storage.py
==============================================================================
--- trunk/neo/client/Storage.py [iso-8859-1] (original)
+++ trunk/neo/client/Storage.py [iso-8859-1] Tue Feb 16 17:42:42 2010
@@ -46,14 +46,6 @@
# Used in unit tests to remove local database files.
# We have no such thing, so make this method a no-op.
pass
-
- def lastSerial(self):
- # does not seem to be used
- raise NotImplementedError
-
- def lastTransaction(self):
- # does not seem to be used
- raise NotImplementedError
def new_oid(self):
if self._is_read_only:
@@ -105,12 +97,6 @@
serials=(tid,
serial),data=data)
-# def restore(self, oid, serial, data, version, prev_txn, transaction):
-# raise NotImplementedError
-
- def _clear_temp(self):
- raise NotImplementedError
-
def getSerial(self, oid):
try:
return self.app.getSerial(oid = oid)
@@ -158,10 +144,6 @@
def commitVersion(self, src, dest, transaction):
return '', []
- def set_max_oid(self, possible_new_max_oid):
- # seems to be only use by FileStorage
- raise NotImplementedError
-
def __len__(self):
return self.app.getStorageSize()
@@ -174,3 +156,23 @@
def sync(self):
self.app.sync()
+# def restore(self, oid, serial, data, version, prev_txn, transaction):
+# raise NotImplementedError
+
+ def pack(self, t, referencesf):
+ raise NotImplementedError
+
+ def lastSerial(self):
+ # seems unused
+ raise NotImplementedError
+
+ def lastTransaction(self):
+ # seems unused
+ raise NotImplementedError
+
+ def _clear_temp(self):
+ raise NotImplementedError
+
+ def set_max_oid(self, possible_new_max_oid):
+ # seems used only by FileStorage
+ raise NotImplementedError
More information about the Neo-report
mailing list