Very! thanx buddy!
On Dec 19, 2012 9:48 PM, "Niphlod" wrote:
> db.define_table('testtable'
> Field('averylongtext', length=256)
> )
>
> grid = SQLFROM.grid(db.testtable, maxtextlenghts={
> 'testtable.averylongtextfield' : 256})
>
>
>
> Clearer ?
>
> On Wednesday, December 19, 2012 7:04:29 PM
db.define_table('testtable'
Field('averylongtext', length=256)
)
grid = SQLFROM.grid(db.testtable, maxtextlenghts={
'testtable.averylongtextfield' : 256})
Clearer ?
On Wednesday, December 19, 2012 7:04:29 PM UTC+1, software.ted wrote:
>
> Can you show an example on how that dictionary is p
Can you show an example on how that dictionary is passed to the grid?
On Dec 19, 2012 3:18 PM, "Niphlod" wrote:
> By default, maxtextlength is 20. maxtextlength=150 will truncate all
> columns only if they are longer than 150 chars.
>
> maxtextlength*s* instead allows to pass a dictionary of
> {'
By default, maxtextlength is 20. maxtextlength=150 will truncate all
columns only if they are longer than 150 chars.
maxtextlength*s* instead allows to pass a dictionary of {'tablename.field'
: length} to set this limit for every column.
Il giorno mercoledì 19 dicembre 2012 13:24:04 UTC+1, sof
4 matches
Mail list logo