I'm having the same problem as Jorge, which I think is gettext +
widgets? related, as it's the only think I've changed in my project and
I didn't have the problem before.
I think it has nothing to do with Ivo's problem as his is mpcp related
(though the final excpetion looks the same, Ivo how's your
modpython_gateway script going?)
Jorge, have you found a cure already? If not, i'll post my traceback to
see if we can hunt the bug (I'll start hunting tomorrow though, as I'm
leaving work in 5 minutes)
Traceback (most recent call last):
File "./start-n50cpanel.py", line 25, in ?
from n50cpanel.controllers import Root
File "/home/alberto/src/n50cpanel/n50cpanel/controllers.py", line 7,
in ?
import n50cpanel.widgets as panelwidgets
File "/home/alberto/src/n50cpanel/n50cpanel/widgets.py", line 5, in ?
class NewPassValidator(V.FancyValidator):
File "/home/alberto/src/n50cpanel/n50cpanel/widgets.py", line 7, in
NewPassValidator
messages = { 'too_short' :
File "/home/alberto/src/turbogears/turbogears/i18n/tg_gettext.py",
line 45, in gettext
return gettext_f(key, locale, domain)
File "/home/alberto/src/turbogears/turbogears/i18n/tg_gettext.py",
line 54, in _gettext
if locale is None:locale = get_locale()
File "/home/alberto/src/turbogears/turbogears/i18n/utils.py", line
64, in get_locale
locale = get_locale_f()
File "/home/alberto/src/turbogears/turbogears/i18n/utils.py", line
77, in _get_locale
locale = cherrypy.session.get(locale_key)
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/cherrypy/filters/sessionfilt
er.py", line 413, in __getattr__
sess = cherrypy.request._session
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/cherrypy/__init__.py",
line
42, in __getattr__
childobject = getattr(serving, self.__attrname__)
AttributeError: 'thread._local' object has no attribute 'request'
Regards,
Alberto