Author: reinhard
Date: 2010-05-25 09:56:57 -0500 (Tue, 25 May 2010)
New Revision: 10186

Modified:
   trunk/gnue-common/
   trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py
Log:
At the end of post(), restore ResultSet.current properly, so other records
which use this resultset as a lookup have a clue about the current lookup
content. This fixes dropdowns wrongly believing their content to have changed
during a commit, which led to bogus querying of detail records when the
dropdown was a master.



Property changes on: trunk/gnue-common
___________________________________________________________________
Name: bzr:revision-info
   - timestamp: 2010-05-25 13:40:15.319000006 +0200
committer: Reinhard Müller <[email protected]>
properties: 
        branch-nick: common

   + timestamp: 2010-05-25 16:50:35.644000053 +0200
committer: Reinhard Müller <[email protected]>
properties: 
        branch-nick: common

Name: bzr:file-ids
   - src/datasources/drivers/DBSIG2/ResultSet.py        
4...@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-common:src%2Fdatasources%2Fdrivers%2FDBSIG2%2FResultSet.py

   + src/datasources/drivers/Base/ResultSet.py  
4...@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-common:src%2Fdatasources%2Fdrivers%2FBase%2FResultSet.py

Name: bzr:revision-id:v4
   - 3116 [email protected]
3117 [email protected]
3118 [email protected]
3119 [email protected]
3120 [email protected]
3121 [email protected]
3122 [email protected]
3123 [email protected]
3124 [email protected]

   + 3116 [email protected]
3117 [email protected]
3118 [email protected]
3119 [email protected]
3120 [email protected]
3121 [email protected]
3122 [email protected]
3123 [email protected]
3124 [email protected]
3125 [email protected]

Name: bzr:text-parents
   - src/datasources/drivers/DBSIG2/ResultSet.py        
svn-v3-single1-dHJ1bmsvZ251ZS1jb21tb24.:3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-common:9954

   + src/datasources/drivers/Base/ResultSet.py  
svn-v3-single1-dHJ1bmsvZ251ZS1jb21tb24.:3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-common:9973


Modified: trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py 2010-05-25 
11:42:28 UTC (rev 10185)
+++ trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py 2010-05-25 
14:56:57 UTC (rev 10186)
@@ -724,6 +724,10 @@
 
         # Restore current record position
         self.__current_index = currentRecord
+        # We explicitly also restore the current record content, so other
+        # records who use this resultset as a lookup source have a clue about
+        # the current lookup content.
+        self.current = self.__cached_records[self.__current_index]
 
 
     # -------------------------------------------------------------------------


_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to