fixed possible bug in dal
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.9.5-trunk+timestamp.2014.06.14.10.06.38
|
Version 2.9.5-trunk+timestamp.2014.06.19.17.16.40
|
||||||
|
|||||||
+2
-2
@@ -7315,13 +7315,13 @@ def sqlhtml_validators(field):
|
|||||||
def ff(r, id):
|
def ff(r, id):
|
||||||
row = r(id)
|
row = r(id)
|
||||||
if not row:
|
if not row:
|
||||||
return id
|
return str(id)
|
||||||
elif hasattr(r, '_format') and isinstance(r._format, str):
|
elif hasattr(r, '_format') and isinstance(r._format, str):
|
||||||
return r._format % row
|
return r._format % row
|
||||||
elif hasattr(r, '_format') and callable(r._format):
|
elif hasattr(r, '_format') and callable(r._format):
|
||||||
return r._format(row)
|
return r._format(row)
|
||||||
else:
|
else:
|
||||||
return id
|
return str(id)
|
||||||
if field_type in (('string', 'text', 'password')):
|
if field_type in (('string', 'text', 'password')):
|
||||||
requires.append(validators.IS_LENGTH(field_length))
|
requires.append(validators.IS_LENGTH(field_length))
|
||||||
elif field_type == 'json':
|
elif field_type == 'json':
|
||||||
|
|||||||
Reference in New Issue
Block a user