Merge branch 'master' of github.com:web2py/web2py
This commit is contained in:
+4
-4
@@ -3199,13 +3199,13 @@ class SQLTABLE(TABLE):
|
|||||||
r = ''
|
r = ''
|
||||||
elif field.type in ['string', 'text']:
|
elif field.type in ['string', 'text']:
|
||||||
r = str(field.formatter(r))
|
r = str(field.formatter(r))
|
||||||
|
truncate_by = truncate
|
||||||
if headers != {}: # new implement dict
|
if headers != {}: # new implement dict
|
||||||
if isinstance(headers[colname], dict):
|
if isinstance(headers[colname], dict):
|
||||||
if isinstance(headers[colname]['truncate'], int):
|
if isinstance(headers[colname]['truncate'], int):
|
||||||
r = truncate_string(
|
truncate_by = headers[colname]['truncate']
|
||||||
r, headers[colname]['truncate'])
|
if not truncate_by is None:
|
||||||
elif not truncate is None:
|
r = truncate_string(r, truncate_by)
|
||||||
r = truncate_string(r, truncate)
|
|
||||||
attrcol = dict() # new implement dict
|
attrcol = dict() # new implement dict
|
||||||
if headers != {}:
|
if headers != {}:
|
||||||
if isinstance(headers[colname], dict):
|
if isinstance(headers[colname], dict):
|
||||||
|
|||||||
Reference in New Issue
Block a user