removed test, lazy table do not suport self references
This commit is contained in:
2
VERSION
2
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
|
||||
|
||||
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user