Hi Denes,

I tried:

gender=SQLField('gender',requires=IS_IN_SET(['Mr.','Mrs.']))
gender.widget=radioboxes
form=form_factory(SQLField('...'),gender,SQLField('...'))

When I expose the function an error ticket is issued:

Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/web2py_1_63_5/gluon/
restricted.py", line 107, in restricted
    exec ccode in environment
  File "/Library/Python/2.5/site-packages/web2py_1_63_5/applications/
core/controllers/utilities.py", line 67, in <module>
  File "/Library/Python/2.5/site-packages/web2py_1_63_5/gluon/
globals.py", line 97, in <lambda>
    self._caller = lambda f: f()
  File "/Library/Python/2.5/site-packages/web2py_1_63_5/applications/
core/controllers/utilities.py", line 40, in contact
    gender.widget=radioboxes
NameError: global name 'radioboxes' is not defined


I guess I need an import statement ...


Kind regards,

Annet
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to