Re: [web2py] Data entry for list:integer or list:string field

2011-09-08 Thread Bruno Rocha
May be there is a better way, but I should start with this: class IS_LIST(object): def __call__(self, value): mylist = value.split(",") return (mylist, None) Field("fld", "list:integer", widget=SQLFORM.widgets.string.widget, requires=IS_LIST() ) -- Bruno Rocha [ Abo

[web2py] Data entry for list:integer or list:string field

2011-09-08 Thread Noel Villamor
I wanted the data entry of a list type field as a plain text box with comma separated data values. Thus, in my model,I defined the field as: Field('fld', 'list:integer', widget=SQLFORM.widgets.string.widget) Using a crud.create form, what extra steps should I do to be able to save a value such as