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

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Feb 24 16:40:30 CET 2010


Author: vincent
Date: Wed Feb 24 16:40:25 2010
New Revision: 1856

Log:
Also raise a KeyError when object creation has been undone.

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] Wed Feb 24 16:40:25 2010
@@ -924,7 +924,8 @@
         if not isinstance(self.local_var.history, tuple):
             raise NEOStorageError('history failed')
 
-        if self.local_var.history[1] == []:
+        if self.local_var.history[1] == [] or \
+            self.local_var.history[1][0][1] == 0:
             # KeyError expected if no history was found
             # XXX: this may requires an error from the storages
             raise KeyError





More information about the Neo-report mailing list