dabo Commit
Revision 6755
Date: 2011-08-08 11:30:15 -0700 (Mon, 08 Aug 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6755

Changed:
U   trunk/dabo/lib/eventMixin.py

Log:
Removed some test code from eventMixin added in 2005, that doesn't appear to be 
necessary anymore. 


Diff:
Modified: trunk/dabo/lib/eventMixin.py
===================================================================
--- trunk/dabo/lib/eventMixin.py        2011-08-07 21:09:04 UTC (rev 6754)
+++ trunk/dabo/lib/eventMixin.py        2011-08-08 18:30:15 UTC (rev 6755)
@@ -53,21 +53,6 @@
                # Instantiate the event, no matter if there aren't any 
bindings: the event
                # did happen, after all, and perhaps we want to log that fact.
 
-               # self.__raisedEvents keeps track of a possible problem 
identified by
-               # Vladimir. It is debug code that isn't intended to stick 
around.
-               try:
-                       self.__raisedEvents
-               except AttributeError:
-                       self.__raisedEvents = []
-
-               eventSig = (eventClass, args, kwargs)
-               if eventSig in self.__raisedEvents:
-                       # The event has already been called, for reasons we 
don't understand.
-                       # Just return and do nothing.
-                       return None
-               else:
-                       self.__raisedEvents.append(eventSig)
-
                eventData = None
                if "eventData" in kwargs:
                        eventData = kwargs["eventData"]
@@ -110,11 +95,6 @@
                                # The event handler set the Continue flag to 
False, specifying that
                                # no more event handlers should process the 
event.
                                break
-               try:
-                       self.__raisedEvents.pop()
-               except (AttributeError, IndexError):
-                       # This is a deleted object; no need (or ability!) to do 
anything else.
-                       return
 
                if uiEvent is not None:
                        # Let the UI lib know whether to do the default event 
behavior



_______________________________________________
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]

Reply via email to