dabo Commit
Revision 4392
Date: 2008-08-10 08:59:09 -0700 (Sun, 10 Aug 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4392

Changed:
U   trunk/dabo/ui/uiwx/dPemMixin.py

Log:
Attempting to fix a problem introduced 2008-06-25 with the removal of the bare
except lines, that results in this traceback from the auto-api-doc generation:

Traceback (most recent call last):
  File "/root/py/updateDaboApiDoc.py", line 26, in <module>
    import makeDaboApiDoc
  File "/root/tmp/dabodoc/makeDaboApiDoc.py", line 373, in <module>
    html = getApiDoc(class_)
  File "/root/tmp/dabodoc/makeDaboApiDoc.py", line 341, in getApiDoc
    html += getExpandedEntries("Properties", propList)
  File "/root/tmp/dabodoc/makeDaboApiDoc.py", line 230, in getExpandedEntries
    d = cls.getPropertyInfo(prop)
  File "./dabo/dabo/ui/uiwx/dPemMixin.py", line 791, in getPropertyInfo
  File "./dabo/dabo/ui/dPemMixinBase.py", line 27, in getPropertyInfo
  File "./dabo/dabo/lib/propertyHelperMixin.py", line 306, in getPropertyInfo
  File "./dabo/dabo/ui/uiwx/dPemMixin.py", line 1717, in _getBackColor
TypeError: unbound method GetBackgroundColour() must be called with About 
instance as first argument (got nothing instead)



Diff:
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py     2008-08-10 15:13:01 UTC (rev 4391)
+++ trunk/dabo/ui/uiwx/dPemMixin.py     2008-08-10 15:59:09 UTC (rev 4392)
@@ -1714,7 +1714,9 @@
 
 
        def _getBackColor(self):
-               return self.GetBackgroundColour().Get()
+               if self._constructed():
+                       return self.GetBackgroundColour().Get()
+               return None
 
        def _setBackColor(self, val):
                if self._constructed():




_______________________________________________
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/%(messageid)s

Reply via email to