On Friday, April 25, 2014 3:49:53 PM UTC-7, Bushwood Gopher wrote: > > Has anybody used s-cubism's jstree > plugin<http://dev.s-cubism.com/plugin_jstree>? > It seems to work fine on their site, but when I try to use it in my web2py > application I keep getting the following: > > <type 'exceptions.TypeError'> unsupported type for timedelta seconds > component: NoneType > > Here is the traceback: > > Traceback (most recent call last): > File "/Applications/web2py/gluon/restricted.py", line 220, in restricted > exec ccode in environment > File "/Applications/web2py/applications/test/models/db.py" > <http://127.0.0.1:8000/admin/default/edit/test/models/db.py>, line 45, in > <module> > auth = Auth(db) > File "/Applications/web2py/gluon/tools.py", line 1194, in __init__ > delta = datetime.timedelta(days=0, seconds=auth.expiration) > TypeError: unsupported type for timedelta seconds component: NoneType > > > Any idea what this means? I'm running the following web2py on a mac: > > The first observation to make is that you seem to be getting a value of None for auth.expiration, which results in timedelta seeing the Nonetype.
Did you make any changes to the auth table? What sort of login process do you have? /dps > 2.9.5-stable+timestamp.2014.03.16.02.35.39 > (Running on Rocket 1.2.6, Python 2.7.5) > > Regards, > Eric > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

