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