Commit e7cad717 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix condition & improve comment.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2485 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent e5967e88
...@@ -646,9 +646,10 @@ class Application(object): ...@@ -646,9 +646,10 @@ class Application(object):
cell_list = self._getCellListForOID(oid, writable=True) cell_list = self._getCellListForOID(oid, writable=True)
if len(cell_list) == 0: if len(cell_list) == 0:
raise NEOStorageError raise NEOStorageError
if data is None or data_serial is not None: if data is None:
assert data is None or data_serial is None, data_serial # This is some undo: either a no-data object (undoing object
# this is a George Bailey object, stored as an empty string # creation) or a back-pointer to an earlier revision (going back to
# an older object revision).
data = compressed_data = '' data = compressed_data = ''
compression = 0 compression = 0
else: else:
......
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