dabo Commit
Revision 6365
Date: 2011-02-01 14:25:49 -0800 (Tue, 01 Feb 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6365

Changed:
U   trunk/dabo/db/dCursorMixin.py

Log:
Fix for ticket #1312.

Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py       2011-02-01 22:18:01 UTC (rev 6364)
+++ trunk/dabo/db/dCursorMixin.py       2011-02-01 22:25:49 UTC (rev 6365)
@@ -1686,11 +1686,11 @@
                if not res:
                        # Nothing was deleted
                        self.BackendObject.noResultsOnDelete()
-               else:
-                       # Delete the record from the current dataset
-                       if pk in self._mementos:
-                               del self._mementos[pk]
-                       self._removeRow(delRowNum)
+               # The 'res' could be empty in multiuser environment and there 
is no concurrency
+               # control, so we delete the record from the current data set 
unconditionally.
+               if pk in self._mementos:
+                       del self._mementos[pk]
+               self._removeRow(delRowNum)
 
 
        def _removeRow(self, row):



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to