[web2py] Re: Custom form bug

2011-01-31 Thread Massimo Di Pierro
Older version of mysql support maxlength=255 so that is what web2py does. I am not sure what the best solution wihtout using different adapters for different mysql versions. On Jan 30, 7:16 pm, ionel wrote: > I forgot to say that I use my own function to define the fields in the > custom form. >

[web2py] Re: Custom form bug

2011-01-31 Thread DenesL
Hi, I can not reproduce this with 1.91.6, which version are you using?. On Jan 30, 8:16 pm, ionel wrote: > I forgot to say that I use my own function to define the fields in the > custom form. > > db.py: > db.define_table('a_table', Field('field_name', 'text', length=600)) > > controller: > def

[web2py] Re: Custom form bug

2011-01-30 Thread ionel
I forgot to say that I use my own function to define the fields in the custom form. db.py: db.define_table('a_table', Field('field_name', 'text', length=600)) controller: def copyField(field): return Field(field.name, field.type, length=field.length) form = SQLFORM.factory(copyField(db.a_tabl