Christoph Zwerschke wrote:
Am 14.02.2011 14:32, schrieb jose soares:
it's me again, a couple of days ago I followed what Pavel suggested to
me, and I tried to clean the session files to see if the error went away.
Unfortunately, it came back again.
"/home/users/admin/.VE-SICER2.x-x86_64-19.04.2010/lib/python2.6/site-packages/cherrypy/filters/sessionfilter.py",
line 284, in load
data = pickle.load(f)
ValueError: insecure string pickle
Anyone have any idea how to fix it?
Maybe you are copying session files from a Windows to a Linux machine,
No
or the disk space for the session files is corrupt or full?
No
If you put string data in the session, try to use unicode instead.
I don't now Christoph, sometimes the error is raised by the
i18n.get_locale(). In the following case I didn't put nothing in the
session... I only want return data formated ...
return tg.i18n.format_date(value, locale=tg.i18n.get_locale(),
date_format=date_format)
File
"/home/sf/.VE-SIC.x-x86_64-19.04.2010/lib/python2.6/site-packages/TurboGears-1.1.1-py2.6.egg/turbogears/i18n/utils.py",
line 66, in get_locale
locale = get_locale_f()
File
"/home/sf/.VE-SIC.x-x86_64-19.04.2010/lib/python2.6/site-packages/TurboGears-1.1.1-py2.6.egg/turbogears/i18n/utils.py",
line 80, in _get_locale
locale = cherrypy.session.get(locale_key)
File
"/home/sf/.VE-SICER2.x-x86_64-19.04.2010/lib/python2.6/site-packages/cherrypy/filters/sessionfilter.py",
line 485, in __getattr__
data = sess.session_storage.load(sess.session_id)
File
"/home/sf/.VE-SIC.x-x86_64-19.04.2010/lib/python2.6/site-packages/cherrypy/filters/sessionfilter.py",
line 284, in load
data = pickle.load(f)
ValueError: could not convert string to int
j
--
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en.