[gnue] r9881 - trunk/gnue-common/src/datasources/drivers/Base

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: reinhard
Date: 2008-06-26 07:48:01 -0500 (Thu, 26 Jun 2008)
New Revision: 9881

Modified:
   trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py
Log:
If a backend function is called for a record, make that record subject to
requery.

issue194 testing


Modified: trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py	2008-06-26 08:43:39 UTC (rev 9880)
+++ trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py	2008-06-26 12:48:01 UTC (rev 9881)
@@ -407,10 +407,16 @@
     if self.isEmpty ():
       raise Exceptions.FunctionCallOfEmptyRecordError
 
-    return self.__connection.call (self.__tablename, self.__wherefields (),
+    result = self.__connection.call (self.__tablename, self.__wherefields (),
         methodname, parameters)
 
+    # This call possibly changed something in the backend, so this record must
+    # be subject to requery.
+    self.__requeryStatus = 'posted'
 
+    return result
+
+
   # ---------------------------------------------------------------------------
   # Status of this record
   # ---------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.