fixed issue 669, maxlength in grid for any str representation
This commit is contained in:
1 parent
9be9b05d42
commit
4dd04a8a92
2 files changed
+3
-3
No files matched your search
@@ -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))
|
||||
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')
|
||||
|
||||
Reference in new issue
Block a user