dabo Commit
Revision 3632
Date: 2007-11-06 16:37:07 -0800 (Tue, 06 Nov 2007)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/3632
Changed:
U trunk/dabo/dApp.py
U trunk/dabo/settings.py
Log:
Added dabo.settings.checkForWebUpdates, which defaults to True. Changed the
code
in dApp to check this value, and if False we won't check.
Fixed the daboruntime check as mentioned on dabo-dev, but I didn't test it yet
because I don't have daboruntime set up and I'm currently on Linux.
Diff:
Modified: trunk/dabo/dApp.py
===================================================================
--- trunk/dabo/dApp.py 2007-11-06 22:50:02 UTC (rev 3631)
+++ trunk/dabo/dApp.py 2007-11-07 00:37:07 UTC (rev 3632)
@@ -388,14 +388,16 @@
def _checkForUpdates(self, force=False):
if not force:
# Check for cases where we absolutely will not Web
Update.
- update = True
+ update = dabo.settings.checkForWebUpdates
+
# If they are running Subversion, don't update.
if
os.path.isdir(os.path.join(os.path.split(dabo.__file__)[0], ".svn")):
update = False
+
# Frozen App:
- if hasattr(sys, "frozen"):
- mainProg = inspect.stack()[-1][1]
- update = (mainProg != "daborun.py")
+ if hasattr(sys, "frozen") and inspect.stack()[-1][1] !=
"daborun.py":
+ update = False
+
if not update:
self._setWebUpdate(False)
return (False, False)
Modified: trunk/dabo/settings.py
===================================================================
--- trunk/dabo/settings.py 2007-11-06 22:50:02 UTC (rev 3631)
+++ trunk/dabo/settings.py 2007-11-07 00:37:07 UTC (rev 3632)
@@ -107,6 +107,9 @@
# Default log file for the dabo.dBug.loggit function
loggitFile = "functionCall.log"
+# Check for web updates?
+checkForWebUpdates = True
+
### Settings - end
# Do not copy/paste anything below this line into settings_override.py.
_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]