daboide Commit
Revision 165
Date: 2005-08-14 09:39:27 -0700 (Sun, 14 Aug 2005)
Author: ed

Changed:
U   trunk/wizards/AppWizard.py

Log:
Changed the RequeryOnLoad behavior back to False by default. In my
experience, I rarely wanted to re-run the same query, and feel that running
the extra queries is wasteful. Perhaps we can add this as an option to the
AppWizard, along with any other configuration defaults, but for a simple
app, it doesn't make sense to run queries that aren't desired.


Diff:
Modified: trunk/wizards/AppWizard.py
===================================================================
--- trunk/wizards/AppWizard.py  2005-08-13 16:56:48 UTC (rev 164)
+++ trunk/wizards/AppWizard.py  2005-08-14 16:39:27 UTC (rev 165)
@@ -1083,11 +1083,11 @@
        def initProperties(self):
                MyFormBase.doDefault()
                # Setting RequeryOnLoad to True results in the last query set 
up on the select
-               # page will run when the form is instantiated. This is probably 
the most 
-               # convenient thing to happen in most cases. If you don't want 
this by default,
-               # just set to False here. In any case, you can override this in 
any of the 
-               # individual forms as desired.
-               self.RequeryOnLoad = True
+               # page will run when the form is instantiated. This is 
sometimes the most 
+               # convenient thing to happen when the app starts up, but can 
cause delays 
+               # due to unnecessary queries being run. If you want this 
auto-query behavior
+               # by default, just set this property to True here. 
+               self.RequeryOnLoad = False
 
        def afterSetMenuBar(self):
                myFileOpenMenu.fill(self)




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to