dabo Commit
Revision 6500
Date: 2011-03-18 08:18:30 -0700 (Fri, 18 Mar 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6500

Changed:
U   trunk/dabo/db/dDataSet.py

Log:
Conversion of adapt/convert methods to static.

Diff:
Modified: trunk/dabo/db/dDataSet.py
===================================================================
--- trunk/dabo/db/dDataSet.py   2011-03-17 18:17:41 UTC (rev 6499)
+++ trunk/dabo/db/dDataSet.py   2011-03-18 15:18:30 UTC (rev 6500)
@@ -81,16 +81,18 @@
                return dDataSet(super(dDataSet, self).__mul__(*args, **kwargs))
 
 
-       def _adapt_decimal(self, decVal):
+       @staticmethod
+       def _adapt_decimal(decVal):
                """Converts the decimal value to a string for storage"""
                return ustr(decVal)
 
 
-       def _convert_decimal(self, strval):
+       @staticmethod
+       def _convert_decimal(strVal):
                """This is a converter routine. Takes the string representation 
of a
                Decimal value and return an actual decimal.
                """
-               return Decimal(strval)
+               return Decimal(strVal)
 
 
        def _index(self, rec):



_______________________________________________
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