Massimo,
> SQLField('datum',type='date',requires=IS_DATE(str(T('%Y-%m-%d'))))
I changed this.
> The main problem is here:
>
> > fromdate=request.vars.datum
> > todate=IS_DATE()(fromdate)[0]+datetime.timedelta(days=int(request.vars.dage
> > n))
These lines now read like:
fromdate=request.vars.datum
todate=form.vars.datum+datetime.timedelta(days=int(form.vars.dagen))
Exposing the function now results in the following error ticket:
File "/Library/Python/2.5/site-packages/web2pyfitwise/gluon/sql.py",
line 664, in <lambda> **b)
DataError: date/time field value out of range: "22-04-2009"
HINT: Perhaps you need a different "datestyle" setting.
How do I resolve this?
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
-~----------~----~----~----~------~----~------~--~---