dabo Commit
Revision 6639
Date: 2011-06-28 08:06:32 -0700 (Tue, 28 Jun 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6639
Changed:
U trunk/dabo/settings.py
U trunk/dabo/ui/uiwx/__init__.py
Log:
Added a dabo.setting to control whether we save the last callAfter stack,
defaulting to False.
I've wired up the ability in my app to control whether this is True or
False to all users or just select users, remotely.
Diff:
Modified: trunk/dabo/settings.py
===================================================================
--- trunk/dabo/settings.py 2011-06-27 17:08:02 UTC (rev 6638)
+++ trunk/dabo/settings.py 2011-06-28 15:06:32 UTC (rev 6639)
@@ -220,6 +220,10 @@
# Determines if we import the debugger into the dabo namespace
importDebugger = True
+# Do we save the current call stack to dabo.ui.lastCallAfterStack in every
+# callAfter() call?
+saveCallAfterStack = False
+
### Settings - end
Modified: trunk/dabo/ui/uiwx/__init__.py
===================================================================
--- trunk/dabo/ui/uiwx/__init__.py 2011-06-27 17:08:02 UTC (rev 6638)
+++ trunk/dabo/ui/uiwx/__init__.py 2011-06-28 15:06:32 UTC (rev 6639)
@@ -275,7 +275,8 @@
Call the passed function with the passed arguments in the next
event loop.
"""
- dabo.ui.lastCallAfterStack = "".join(traceback.format_stack())
+ if dabo.saveCallAfterStack:
+ dabo.ui.lastCallAfterStack = "".join(traceback.format_stack())
wx.CallAfter(fnc, *args, **kwargs)
@@ -290,7 +291,8 @@
refresh something because you changed it, but the frequency of changes
can be
high.
"""
- dabo.ui.lastCallAfterStack = "".join(traceback.format_stack())
+ if dabo.saveCallAfterStack:
+ dabo.ui.lastCallAfterStack = "".join(traceback.format_stack())
if isinstance(func, int):
# Arguments are in the old order
interval, func = func, interval
_______________________________________________
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]