In a model I have a table definition:

db.Field('fromdate',type='date',default='',notnull=True),
 ...

db.event.fromdate.requires=IS_DATE(str(T('%Y-%m-%d')))


In a controller I have:


db.event.fromdate>=request.now.today()


Exposing the function results in an error ticket being issued:
SyntaxError: invalid syntax. I tested the entire controller, the
syntax error is in the given line of code. What is the correct syntax?


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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to