fixed issue 669, maxlength in grid for any str representation

This commit is contained in:
mdipierro
2012-08-07 16:40:55 -05:00
parent 9be9b05d42
commit 4dd04a8a92
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -2014,9 +2014,9 @@ class SQLFORM(FORM):
_href='%s/%s' % (upload, value))
else:
value = ''
elif isinstance(value,str):
if isinstance(value,str):
value = truncate_string(value,maxlength)
else:
elif not isinstance(value,DIV):
value = field.formatter(value)
tr.append(TD(value))
row_buttons = TD(_class='row_buttons')