[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7181 - trunk/gnue-common/src/datasources/drivers/Base
From: |
reinhard |
Subject: |
[gnue] r7181 - trunk/gnue-common/src/datasources/drivers/Base |
Date: |
Fri, 11 Mar 2005 17:14:31 -0600 (CST) |
Author: reinhard
Date: 2005-03-11 17:14:30 -0600 (Fri, 11 Mar 2005)
New Revision: 7181
Modified:
trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py
Log:
Don't requery deleted records (doh!).
Modified: trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py 2005-03-11
23:10:06 UTC (rev 7180)
+++ trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py 2005-03-11
23:14:30 UTC (rev 7181)
@@ -346,6 +346,8 @@
raise exceptions.InvalidDatasourceDefintion, \
errors.getException () [2]
+ deleting = self.isDeleted ()
+
gDebug (8, 'Posting datasource %s' % self._parent._dataObject.name)
self._postChanges (recordNumber)
@@ -361,7 +363,8 @@
# Now, requery, as the posting of the record and/or of the details could
# have changed something
- if self._initialData.has_key (self._parent._dataObject._primaryIdField):
+ if not deleting and \
+ self._initialData.has_key (self._parent._dataObject._primaryIdField):
self.__requery ()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7181 - trunk/gnue-common/src/datasources/drivers/Base,
reinhard <=