Author: phd
Date: 2009-03-27 10:23:58 -0600 (Fri, 27 Mar 2009)
New Revision: 3836
Modified:
SQLObject/branches/0.9/docs/News.txt
SQLObject/branches/0.9/sqlobject/col.py
Log:
Fixed a minor bug - pass name to DecimalValidator.
Modified: SQLObject/branches/0.9/docs/News.txt
===================================================================
--- SQLObject/branches/0.9/docs/News.txt 2009-03-26 20:10:18 UTC (rev 3835)
+++ SQLObject/branches/0.9/docs/News.txt 2009-03-27 16:23:58 UTC (rev 3836)
@@ -19,6 +19,8 @@
* Setup requires FormEncode version 1.1.1+.
+* Fixed a minor bug - pass name to DecimalValidator.
+
SQLObject 0.9.9
===============
Modified: SQLObject/branches/0.9/sqlobject/col.py
===================================================================
--- SQLObject/branches/0.9/sqlobject/col.py 2009-03-26 20:10:18 UTC (rev 3835)
+++ SQLObject/branches/0.9/sqlobject/col.py 2009-03-27 16:23:58 UTC (rev 3836)
@@ -955,8 +955,8 @@
return [consts.isString, consts.InList(self.enumValues)]
def createValidators(self):
- return [EnumValidator(name = self.name, enumValues = self.enumValues,
- notNone = self.notNone)] + \
+ return [EnumValidator(name=self.name, enumValues=self.enumValues,
+ notNone=self.notNone)] + \
super(SOEnumCol, self).createValidators()
def _mysqlType(self):
@@ -1032,7 +1032,7 @@
return [consts.isString, consts.InList(self.setValues)]
def createValidators(self):
- return [SetValidator(name = self.name, setValues = self.setValues)] + \
+ return [SetValidator(name=self.name, setValues=self.setValues)] + \
super(SOSetCol, self).createValidators()
def _mysqlType(self):
@@ -1354,7 +1354,7 @@
return 'DECIMAL(%i, %i)' % (self.size, self.precision)
def createValidators(self):
- return [DecimalValidator()] + \
+ return [DecimalValidator(name=self.name)] + \
super(SODecimalCol, self).createValidators()
class DecimalCol(Col):
|