[gnue] r9580 - in trunk/gnue-forms/src: . GFObjects

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: reinhard
Date: 2007-05-14 08:03:02 -0500 (Mon, 14 May 2007)
New Revision: 9580

Modified:
   trunk/gnue-forms/src/GFForm.py
   trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
Fixed query for master/detail.


Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py	2007-05-14 12:56:47 UTC (rev 9579)
+++ trunk/gnue-forms/src/GFForm.py	2007-05-14 13:03:02 UTC (rev 9580)
@@ -1351,7 +1351,13 @@
 
                 self.__in_filter_mode = False
 
+                # We have to reset all blocks to mode normal *before* we apply
+                # the filter for any block, to make sure detail blocks are in
+                # "normal" mode before they get queried.
                 for block in self._logic._blockList:
+                    block.mode = "normal"
+
+                for block in self._logic._blockList:
                     block.apply_filter()
 
                 for block in self._logic._blockList:

Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py	2007-05-14 12:56:47 UTC (rev 9579)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py	2007-05-14 13:03:02 UTC (rev 9580)
@@ -576,8 +576,6 @@
         populated with all records that match the filter criteria.
         """
 
-        self.mode = 'normal'
-
         # Store block states
         self.__last_query_values = self.__query_values.copy()
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.