AttributeError: 'NoneType' object has no attribute 'code'How can get represent to work in this case?
Are course_week1 and course_week2 not null??
If not you need ...requires=IS_NULL_OR(IS_IN_DB(your requires) and in ...represent= you should use zero option (see book about that) or something like that :db.t_registration_form.course_week1.represent=\lambda value: (value!=None and "%(code)s" %db.courses[value]) or 'None'
Thanks! That solved the problem. I could not find something in the book about a 'zero option' though.
I am also a beginner with Python so do not expect very complicated questions
(yet)
Well I am building a application to deploy AIX unix installs on power
machines. My application creates the logical volumes on the storage, creates
the virtual machines and starts the deployments. Its all coordinated with
web2py.
Now my question.
When I start a deployment the function could take a while and one solution
would be to create a new window with the status of the deployment. Would it be
possible to spawn a separate window and let the original form go on ?
Thanks in advance.
Mike Veltman
About zero option, search in page for zero : http://www.web2py.com/book/default/chapter/07