dabo Commit
Revision 1280
Date: 2005-09-09 08:42:52 -0700 (Fri, 09 Sep 2005)
Author: paul
Changed:
U trunk/dabo/common/eventMixin.py
Log:
Fixed the new autobinding to actually respect the global switch.
Diff:
Modified: trunk/dabo/common/eventMixin.py
===================================================================
--- trunk/dabo/common/eventMixin.py 2005-09-09 15:33:33 UTC (rev 1279)
+++ trunk/dabo/common/eventMixin.py 2005-09-09 15:42:52 UTC (rev 1280)
@@ -9,8 +9,7 @@
All Dabo objects inherit this functionality.
"""
def __init__(self, *args, **kwargs):
- if dabo.autoBindEvents:
- self._autoBindEvents(context=self)
+ self._autoBindEvents(context=self)
def bindEvent(self, eventClass, function):
"""Bind a dEvent to a callback function.
@@ -155,6 +154,10 @@
"""
import dabo.dEvents as dEvents
+ if not dabo.autoBindEvents:
+ # autobinding is switched off globally
+ return
+
if context is None:
# context could be None if during the setting of RegID
property,
# self.Form evaluates to None.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev