dabo Commit
Revision 1588
Date: 2005-11-27 20:55:09 -0800 (Sun, 27 Nov 2005)
Author: paul
Changed:
U trunk/dabo/lib/eventMixin.py
Log:
Added a workaround for the fact that RegID is defined in dPemMixin instead
of dObject. This was keeping the property grid from working correctly.
Diff:
Modified: trunk/dabo/lib/eventMixin.py
===================================================================
--- trunk/dabo/lib/eventMixin.py 2005-11-28 00:25:44 UTC (rev 1587)
+++ trunk/dabo/lib/eventMixin.py 2005-11-28 04:55:09 UTC (rev 1588)
@@ -204,7 +204,12 @@
regid = None
contextText = ""
if context != self:
- regid = self.RegID
+ try:
+ regid = self.RegID
+ except AttributeError:
+ ## As of this writing, RegID is defined in
dPemMixin, but some of our
+ ## classes derive directly from dObject.
dColumn, for example.
+ regid = None
if regid is None or regid == "":
return
contextText = "_%s" % regid
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev