dabo Commit
Revision 6701
Date: 2011-07-10 09:22:55 -0700 (Sun, 10 Jul 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6701

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

Log:
Added few @staticmethod decorators.

Diff:
Modified: trunk/dabo/lib/propertyHelperMixin.py
===================================================================
--- trunk/dabo/lib/propertyHelperMixin.py       2011-07-10 16:19:02 UTC (rev 
6700)
+++ trunk/dabo/lib/propertyHelperMixin.py       2011-07-10 16:22:55 UTC (rev 
6701)
@@ -6,7 +6,8 @@
 class PropertyHelperMixin(object):
        """Helper functions for getting information on class properties."""
 
-       def _expandPropStringValue(self, value, propList):
+       @staticmethod
+       def _expandPropStringValue(value, propList):
                """
                Called from various property setters: expand value into one of 
the
                accepted property values in propList. We allow properties to be 
set
@@ -64,7 +65,8 @@
                return propdict
 
 
-       def _extractKeyWordEventBindings(self, kwdict, evtdict):
+       @staticmethod
+       def _extractKeyWordEventBindings(kwdict, evtdict):
                """
                Called from __init__: puts any On* event keyword arguments into
                the event dictionary.
@@ -77,7 +79,8 @@
                        del kwdict[kw]
 
 
-       def _extractKey(self, kwdict, key, defaultVal=None):
+       @staticmethod
+       def _extractKey(kwdict, key, defaultVal=None):
                """
                If the supplied key is present in the kwdict, the associated
                value is returned, and that key's element is deleted from the



_______________________________________________
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