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):
cell_list = self._getCellListForOID(oid, writable=True)
if len(cell_list) == 0:
raise NEOStorageError
if data is None or data_serial is not None:
assert data is None or data_serial is None, data_serial
# this is a George Bailey object, stored as an empty string
if data is None:
# This is some undo: either a no-data object (undoing object
# creation) or a back-pointer to an earlier revision (going back to
# an older object revision).
data = compressed_data = ''
compression = 0
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