removed test, lazy table do not suport self references
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.2.1 (2012-11-30 09:01:49) stable
|
Version 2.2.1 (2012-11-30 14:30:06) stable
|
||||||
|
|||||||
+1
-8
@@ -7174,10 +7174,6 @@ def index():
|
|||||||
table = table_class(self, tablename, *fields, **args)
|
table = table_class(self, tablename, *fields, **args)
|
||||||
table._actual = True
|
table._actual = True
|
||||||
self[tablename] = table
|
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
|
# must follow above line to handle self references
|
||||||
table._create_references()
|
table._create_references()
|
||||||
|
|
||||||
@@ -7596,10 +7592,7 @@ class Table(object):
|
|||||||
db._adapter.maxcharlength < field.length:
|
db._adapter.maxcharlength < field.length:
|
||||||
field.length = db._adapter.maxcharlength
|
field.length = db._adapter.maxcharlength
|
||||||
if field.requires == DEFAULT:
|
if field.requires == DEFAULT:
|
||||||
try:
|
field.requires = sqlhtml_validators(field)
|
||||||
field.requires = sqlhtml_validators(field)
|
|
||||||
except AttributeError:
|
|
||||||
pass
|
|
||||||
self.ALL = SQLALL(self)
|
self.ALL = SQLALL(self)
|
||||||
|
|
||||||
if hasattr(self,'_primarykey'):
|
if hasattr(self,'_primarykey'):
|
||||||
|
|||||||
Reference in New Issue
Block a user