Commit e4fc3e84 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Add pack() prototype and mark it as unimplemented.

Reorganize unimplemented methods, gather all at end of file.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1783 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent f82df2db
...@@ -47,14 +47,6 @@ class Storage(BaseStorage.BaseStorage, ...@@ -47,14 +47,6 @@ class Storage(BaseStorage.BaseStorage,
# We have no such thing, so make this method a no-op. # We have no such thing, so make this method a no-op.
pass 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): def new_oid(self):
if self._is_read_only: if self._is_read_only:
raise POSException.ReadOnlyError() raise POSException.ReadOnlyError()
...@@ -105,12 +97,6 @@ class Storage(BaseStorage.BaseStorage, ...@@ -105,12 +97,6 @@ class Storage(BaseStorage.BaseStorage,
serials=(tid, serials=(tid,
serial),data=data) 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): def getSerial(self, oid):
try: try:
return self.app.getSerial(oid = oid) return self.app.getSerial(oid = oid)
...@@ -158,10 +144,6 @@ class Storage(BaseStorage.BaseStorage, ...@@ -158,10 +144,6 @@ class Storage(BaseStorage.BaseStorage,
def commitVersion(self, src, dest, transaction): def commitVersion(self, src, dest, transaction):
return '', [] return '', []
def set_max_oid(self, possible_new_max_oid):
# seems to be only use by FileStorage
raise NotImplementedError
def __len__(self): def __len__(self):
return self.app.getStorageSize() return self.app.getStorageSize()
...@@ -174,3 +156,23 @@ class Storage(BaseStorage.BaseStorage, ...@@ -174,3 +156,23 @@ class Storage(BaseStorage.BaseStorage,
def sync(self): def sync(self):
self.app.sync() 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment