Solved : datetime.datetime.strptime(request.vars.test_date,
'%Y-%m-%d').date()

On Fri, Apr 27, 2012 at 3:09 PM, Richard Vézina <ml.richard.vez...@gmail.com
> wrote:

> Hello,
>
> I get :  'str' object has no attribute 'year'
>
> Try to solve it like this without success :
>
> db[request.args(0)].test_date.default =
> datetime.date(*tuple(request.vars.test_date.split('-')))
>
> Then it ask for integer...
>
> Richard
>

Reply via email to