am trying to use SQLFORM.factory with a widget but its not working :
def booking():
content=db(db.page.title=='booking').select(db.page.ALL)
form = SQLFORM.factory(
Field('your_name', requires=IS_NOT_EMPTY()),
Field('your_email'),
Field('like',widget=SQLFORM.widgets.radio.widget)
)
if form.accepts(request.vars,session):
response.flash = 'form accepted'
elif form.errors:
response.flash = 'form has errors'
return dict(content=content,form=form)
the error is :
<type 'exceptions.SyntaxError'>(widget cannot determine options of
no_table.like)
what to do ??!