I'm attempting to run Flask-Session 0.1.1 under Python 2.6.6, and am running into an issue right around this line (and others, if I was using those session storage methods):
File "/var/www/appname/venv/lib/python2.6/site-packages/flask_session/sessions.py", line 118, in save_session
int(app.permanent_session_lifetime.total_seconds()))
AttributeError: 'datetime.timedelta' object has no attribute 'total_seconds'
I'm attempting to run Flask-Session 0.1.1 under Python 2.6.6, and am running into an issue right around this line (and others, if I was using those session storage methods):
It seems that
datetime.timedelta.total_seconds
was added in Python 2.7.Is there by chance a 2.6-compatible drop-in replacement you'd consider?
Thanks!