[web2py] Re: session data type changed after upgrade to 2.17.1

2018-08-23 Thread Anthony
On Thursday, August 23, 2018 at 1:59:27 AM UTC-4, icodk wrote: > > Yes Antony, You got it right > The issue is that both > form.vars.start_date and form.vars.end_date > returns a str type. > I'm not sure what changed. Feel free to submit a Github issue. Anthony -- Resources: - http://web2py

[web2py] Re: session data type changed after upgrade to 2.17.1

2018-08-22 Thread icodk
Yes Antony, You got it right The issue is that both form.vars.start_date and form.vars.end_date returns a str type. Exactly the same code under 2.14.6 returns a 'date' type On Thursday, August 23, 2018 at 6:02:49 AM UTC+2, Anthony wrote: > > On Wednesday, August 22, 2018 at 6:41:06 PM UTC-4, J

[web2py] Re: session data type changed after upgrade to 2.17.1

2018-08-22 Thread Anthony
On Wednesday, August 22, 2018 at 6:41:06 PM UTC-4, Joe Barnhart wrote: > > So "session" stuff gets pickled and unpicked which makes sense that dates > might come back as strings. > Pickling preserves the data type. That is not the issue here. The problem is the values in form.vars used to be dat

[web2py] Re: session data type changed after upgrade to 2.17.1

2018-08-22 Thread Joe Barnhart
So "session" stuff gets pickled and unpicked which makes sense that dates might come back as strings. What puzzles me is that it "used to work" so did pickled date objects used to come back as date objects again? That would seem like a much bigger change than just this example. -- Joe On Tue

[web2py] Re: session data type changed after upgrade to 2.17.1

2018-08-21 Thread icodk
Turned out that after the upgrade the form.vars.end_date and form.vars.end_date(both defined as type 'date') returns a data type str instead of a 'date' type The form definition is: form = SQLFORM.factory( Field('start_date', 'date', label=T('Date range: ')) ,Field('end_date', 'date'