It looks like if you use the new dictionary option for headers, you can
still truncate, but you have to specify a 'truncate' key within each
header's dict (so, you can have different truncate values for each header).
Here's the docstring example:
:param headers = {'table.id':{'label':'Id',
'class':'', #class name of the header
'width':'', #width in pixels or %
'truncate': 16, #truncate the content to...
'selected': False #agregate class selected to
this column
},
'table.myfield':{'label':'My field',
'class':'', #class name of the header
'width':'', #width in pixels or %
'truncate': 16, #truncate the content to...
'selected': False #agregate class selected
to this column
},
}
Looks like you're required to specify all five keys within each header
dictionary.
Anthony
On Tuesday, July 19, 2011 4:57:33 PM UTC-4, Carlos wrote:
> Hi,
>
> I believe 'truncate' has broken in SQLTABLE when 'headers' (as dict of str)
> is specified.
>
> Maybe this was caused by the "#new implement dict"?.
>
> Thanks,
>
> Carlos
>
>