diff --git a/VERSION b/VERSION index 8bed96e6..16ce1333 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.2.1 (2012-11-30 09:01:49) stable +Version 2.2.1 (2012-11-30 14:30:06) stable diff --git a/gluon/dal.py b/gluon/dal.py index 241ba5c5..3eb19c37 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -7174,10 +7174,6 @@ def index(): table = table_class(self, tablename, *fields, **args) table._actual = True self[tablename] = table - # fix self refrences - for field in table: - if field.requires == DEFAULT: - field.requires = sqlhtml_validators(field) # must follow above line to handle self references table._create_references() @@ -7596,10 +7592,7 @@ class Table(object): db._adapter.maxcharlength < field.length: field.length = db._adapter.maxcharlength if field.requires == DEFAULT: - try: - field.requires = sqlhtml_validators(field) - except AttributeError: - pass + field.requires = sqlhtml_validators(field) self.ALL = SQLALL(self) if hasattr(self,'_primarykey'):