[Neo-report] r2485 vincent - /trunk/neo/client/app.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Dec 9 13:54:38 CET 2010


Author: vincent
Date: Thu Dec  9 13:54:38 2010
New Revision: 2485

Log:
Fix condition & improve comment.

Modified:
    trunk/neo/client/app.py

Modified: trunk/neo/client/app.py
==============================================================================
--- trunk/neo/client/app.py [iso-8859-1] (original)
+++ trunk/neo/client/app.py [iso-8859-1] Thu Dec  9 13:54:38 2010
@@ -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:




More information about the Neo-report mailing list