fixed missing dropdowns, thanks Alan
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-08-19 13:53:42) dev
|
Version 2.00.0 (2012-08-19 15:02:35) dev
|
||||||
|
|||||||
+4
-4
@@ -6763,7 +6763,7 @@ def index():
|
|||||||
patterns += auto_table(rtable,base=tag,depth=depth-1)
|
patterns += auto_table(rtable,base=tag,depth=depth-1)
|
||||||
return patterns
|
return patterns
|
||||||
|
|
||||||
if patterns=='auto':
|
if patterns==DEFAULT:
|
||||||
patterns=[]
|
patterns=[]
|
||||||
for table in db.tables:
|
for table in db.tables:
|
||||||
if not table.startswith('auth_'):
|
if not table.startswith('auth_'):
|
||||||
@@ -6943,7 +6943,7 @@ def index():
|
|||||||
table_class = args.get('table_class',Table)
|
table_class = args.get('table_class',Table)
|
||||||
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
|
||||||
table._create_references() # must follow above line to handle self references
|
table._create_references() # must follow above line to handle self references
|
||||||
|
|
||||||
migrate = self._migrate_enabled and args.get('migrate',self._migrate)
|
migrate = self._migrate_enabled and args.get('migrate',self._migrate)
|
||||||
@@ -7283,7 +7283,7 @@ class Table(dict):
|
|||||||
if self._db and not field.type in ('text','blob') and \
|
if self._db and not field.type in ('text','blob') and \
|
||||||
self._db._adapter.maxcharlength < field.length:
|
self._db._adapter.maxcharlength < field.length:
|
||||||
field.length = self._db._adapter.maxcharlength
|
field.length = self._db._adapter.maxcharlength
|
||||||
if field.requires is DEFAULT:
|
if field.requires == DEFAULT:
|
||||||
field.requires = sqlhtml_validators(field)
|
field.requires = sqlhtml_validators(field)
|
||||||
self.ALL = SQLALL(self)
|
self.ALL = SQLALL(self)
|
||||||
|
|
||||||
@@ -8069,7 +8069,7 @@ class Field(Expression):
|
|||||||
length=None,
|
length=None,
|
||||||
default=DEFAULT,
|
default=DEFAULT,
|
||||||
required=False,
|
required=False,
|
||||||
requires=None,
|
requires=DEFAULT,
|
||||||
ondelete='CASCADE',
|
ondelete='CASCADE',
|
||||||
notnull=False,
|
notnull=False,
|
||||||
unique=False,
|
unique=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user