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

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

Log:
Restore previous RequeryOnLoad behavior.
I assume that nobody uses it for parametrized cursors.

Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py   2010-12-25 14:31:05 UTC (rev 6291)
+++ trunk/dabo/biz/dBizobj.py   2010-12-25 23:40:59 UTC (rev 6292)
@@ -112,8 +112,9 @@
 
        def _afterInit(self):
                super(dBizobj, self)._afterInit()
-               if self.RequeryOnLoad:
-                       self.requery()
+               for crs in self.__cursorsToRequery:
+                       self._syncCursorProps(crs)
+                       crs.requery()
                self.__cursorsToRequery = None
 
 
@@ -216,9 +217,11 @@
                if self.RequeryOnLoad:
                        if self.__cursorsToRequery is None:
                                # We've already passed the bizobj init process
-                               if key == self.__currentCursorKey:
-                                       crs.requery(self.setChildLinkFilter() + 
self.getParams())
-                                       self.first()
+                               crs.requery()
+                               self.first()
+                       else:
+                               # Still in the init, so add it to the list
+                               self.__cursorsToRequery.append(crs)
                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