dabo Commit
Revision 5519
Date: 2009-11-14 08:00:07 -0800 (Sat, 14 Nov 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5519
Changed:
U trunk/dabo/biz/dBizobj.py
Log:
Grab the passed value of RequeryOnLoad before the initial call to
setConnection(), as pointed out by Jacek Ka?\197?\130ucki.
Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py 2009-11-13 22:49:02 UTC (rev 5518)
+++ trunk/dabo/biz/dBizobj.py 2009-11-14 16:00:07 UTC (rev 5519)
@@ -36,11 +36,14 @@
# Dictionary holding any default values to apply when a new
record is created. This is
# now the DefaultValues property (used to be self.defaultValues
attribute)
self._defaultValues = {}
-
# PKs of rows to be filtered out when filtering Virtual fields
self.__filterPKVirtual = []
self._beforeInit()
+
+ # This must be set before the call to setConnection(). Thanks
to Jacek KaÅucki for
+ # noticing this problem.
+ self._requeryOnLoad = self._extractKey((properties,
attProperties, kwargs), "RequeryOnLoad", False)
self.setConnection(conn)
# We need to make sure the cursor is created *before* the call
to
# initProperties()
@@ -73,7 +76,6 @@
self._scanRestorePosition = True
self._scanReverse = False
self._userSQL = None
- self._requeryOnLoad = False
self._parent = None
self._autoPopulatePK = True
self._autoQuoteNames = True
_______________________________________________
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]