From d0047e6e5b9fea8a2706aecaa2dc2d77a0680799 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 30 Nov 2012 14:30:49 -0600 Subject: [PATCH] removed test, lazy table do not suport self references --- VERSION | 2 +- gluon/dal.py | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) 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'):