In db.py I defined an auto complete widget:
db.adres.plaats.requires=[IS_NOT_EMPTY(),widget=lambda self,
value:INPUT
(_id='place',_name='plaats',_class='ac_input',_type='text')]
To me it is syntactically correct, however, web2py tells me it's not:
Traceback (most recent call last):
File "/Library/Python/2.5/site-packages/web2pyfitwise/gluon/
restricted.py", line 97, in restricted
ccode = compile(code.replace('\r\n', '\n'), layer, 'exec')
File "/Library/Python/2.5/site-packages/web2pyfitwise/applications/
cms/models/db.py", line 103
db.adres.plaats.requires=[IS_NOT_EMPTY(),widget=lambda self,
value:INPUT
(_id='place',_name='plaats',_class='ac_input',_type='text')]
^
SyntaxError: invalid syntax
In the original trace-back the ^ sign is under the = sign of
widget=lambda.
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---