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
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
2 matches
Mail list logo