dabo Commit
Revision 6286
Date: 2010-12-25 00:59:34 -0800 (Sat, 25 Dec 2010)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6286

Changed:
U   trunk/dabo/biz/dBizobj.py

Log:
Fixing parameters issue on first requery.

Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py   2010-12-25 08:26:06 UTC (rev 6285)
+++ trunk/dabo/biz/dBizobj.py   2010-12-25 08:59:34 UTC (rev 6286)
@@ -112,10 +112,8 @@
 
        def _afterInit(self):
                super(dBizobj, self)._afterInit()
-               params = self.setChildLinkFilter() + self.getParams()
-               for crs in self.__cursorsToRequery:
-                       self._syncCursorProps(crs)
-                       crs.requery(params)
+               if self.RequeryOnLoad:
+                       self.requery()
                self.__cursorsToRequery = None
 
 
@@ -218,11 +216,9 @@
                if self.RequeryOnLoad:
                        if self.__cursorsToRequery is None:
                                # We've already passed the bizobj init process
-                               crs.requery(self.setChildLinkFilter() + 
self.getParams())
-                               self.first()
-                       else:
-                               # Still in the init, so add it to the list
-                               self.__cursorsToRequery.append(crs)
+                               if key == self.__currentCursorKey:
+                                       crs.requery(self.setChildLinkFilter() + 
self.getParams())
+                                       self.first()
                self.afterCreateCursor(crs)
                return crs
 



_______________________________________________
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