Author: phd
Date: 2009-03-27 10:27:58 -0600 (Fri, 27 Mar 2009)
New Revision: 3838
Modified:
SQLObject/trunk/docs/News.txt
SQLObject/trunk/sqlobject/col.py
Log:
Merged a bugfix from revision 3836 from branch 0.9 for a minor bug -
pass name to DecimalValidator.
Modified: SQLObject/trunk/docs/News.txt
===================================================================
--- SQLObject/trunk/docs/News.txt 2009-03-27 16:26:49 UTC (rev 3837)
+++ SQLObject/trunk/docs/News.txt 2009-03-27 16:27:58 UTC (rev 3838)
@@ -166,6 +166,8 @@
* Setup requires FormEncode version 1.1.1+.
+* Fixed a minor bug - pass name to DecimalValidator.
+
SQLObject 0.9.9
===============
Modified: SQLObject/trunk/sqlobject/col.py
===================================================================
--- SQLObject/trunk/sqlobject/col.py 2009-03-27 16:26:49 UTC (rev 3837)
+++ SQLObject/trunk/sqlobject/col.py 2009-03-27 16:27:58 UTC (rev 3838)
@@ -940,8 +940,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):
@@ -1017,7 +1017,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):
@@ -1333,7 +1333,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):
|