kgk
unread,May 3, 2011, 5:58:17 PM5/3/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tg-registration
During the initialization of the tgext.registration forms in a TG2.1
project,
I get an access to a thread-local variable.
Anybody have a solution for this?
File "/home/kgk/work/bisquik/bisque05/tgextregistration2/tgext/
registration2/controllers.py", line 22, in <module>
from tgext.registration2.widgets import (new_user_form,
edit_user_form, lost_password_form,
File "/home/kgk/work/bisquik/bisque05/tgextregistration2/tgext/
registration2/widgets.py", line 23, in <module>
class InviteUserFields(WidgetsList):
File "/home/kgk/work/bisquik/bisque05/tgextregistration2/tgext/
registration2/widgets.py", line 29, in InviteUserFields
label_text=_("Email Address"),
File "/home/kgk/work/bisquik/bisque05/bqenv/lib/python2.6/site-
packages/Pylons-1.0-py2.6.egg/pylons/i18n/translation.py", line 106,
in ugettext
return pylons.translator.ugettext(value)
File "/home/kgk/work/bisquik/bisque05/bqenv/lib/python2.6/site-
packages/Paste-1.7.2-py2.6.egg/paste/registry.py", line 137, in
__getattr__
return getattr(self._current_obj(), attr)
File "/home/kgk/work/bisquik/bisque05/bqenv/lib/python2.6/site-
packages/Paste-1.7.2-py2.6.egg/paste/registry.py", line 194, in
_current_obj
'thread' % self.____name__)
TypeError: No object (name: translator) has been registered for this
thread