fixed issue 669, maxlength in grid for any str representation
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-08-07 16:33:36) dev
|
Version 2.00.0 (2012-08-07 16:40:52) dev
|
||||||
|
|||||||
+2
-2
@@ -2014,9 +2014,9 @@ class SQLFORM(FORM):
|
|||||||
_href='%s/%s' % (upload, value))
|
_href='%s/%s' % (upload, value))
|
||||||
else:
|
else:
|
||||||
value = ''
|
value = ''
|
||||||
elif isinstance(value,str):
|
if isinstance(value,str):
|
||||||
value = truncate_string(value,maxlength)
|
value = truncate_string(value,maxlength)
|
||||||
else:
|
elif not isinstance(value,DIV):
|
||||||
value = field.formatter(value)
|
value = field.formatter(value)
|
||||||
tr.append(TD(value))
|
tr.append(TD(value))
|
||||||
row_buttons = TD(_class='row_buttons')
|
row_buttons = TD(_class='row_buttons')
|
||||||
|
|||||||
Reference in New Issue
Block a user