The only way I can think of is thru a widget, but not as clear cut as your pseudo syntax. Look at the UploadWidget class in gluon/sqlhtml.
On May 14, 7:59 pm, Tito Garrido <[email protected]> wrote: > Is there a way to set attributes of a field on model? > > Like: > db.define_table('album', > SQLField('name',"string",length=50,default=""), > SQLField("thumbnail","upload",default="",autodelete=True,* > attr=dict(class='multi')*), <----- > SQLField("description","text",default=""), > SQLField("date","date",), > SQLField("ativo","boolean") > > anything like that? > > Thanks! > > Tito > > -- > Linux User #387870 > .........____ > .... _/_õ|__| > ..º[ .-.___.-._| . . . . > .__( o)__( o).:_______ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

