Re: [web2py] Re: REF: SQLFORM.grid column width and content length

2012-12-19 Thread Teddy Nyambe
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

Re: [web2py] Re: REF: SQLFORM.grid column width and content length

2012-12-19 Thread Niphlod
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

Re: [web2py] Re: REF: SQLFORM.grid column width and content length

2012-12-19 Thread Teddy Nyambe
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 > {'

[web2py] Re: REF: SQLFORM.grid column width and content length

2012-12-19 Thread Niphlod
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