I have the following lines of code in a function:
form=form_factory(SQLField('plaatsnaam',label='Type een plaatsnaam',requires=IS_NOT_EMPTY(),\ widget=lambda self, value:TAG['']( INPUT (_id='eventplaatsnaam',_name='plaatsnaam',_class='ac_input',_type='text'))), SQLField('vandatum',label='Selecteer een van datum',class='date',type='text',requires=IS_NOT_EMPTY()), SQLField('dagen',label='Selecteer een aantal weken',requires=IS_IN_SET([14,28,56],labels=['2 weken','4 weken','8 weken']))) When I expose the function that contains these lines, a ticket is issued: Traceback (most recent call last): File "/Library/Python/2.5/site-packages/web2py/gluon/restricted.py", line 61, in restricted else: ccode=compile(code.replace('\r\n','\n'),layer,'exec') File "/Library/Python/2.5/site-packages/web2py/applications/b2c/ controllers/eventlist.py", line 22 SQLField('vandatum',label='Selecteer een van datum',class='date',type='text',requires=IS_NOT_EMPTY()), ^ SyntaxError: invalid syntax When I remove class='date' the function is working, displaying a text area for the vandatum field. I don't see what's wrong with class='date', I hope one of you does. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---