On 4/6/07, Wichert Akkerman <[EMAIL PROTECTED]> wrote:
> I'm creating a database in my websetup, so I have to import my models
> there. Some of my models use translations, and as a result things
> currently go boom:
>
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Pylons-0.9.4.1-py2.4.egg/pylons/i18n/translation.py",
>  line 57, in ugettext
>     return pylons.translator.ugettext(value)
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Paste-1.3-py2.4.egg/paste/registry.py",
>  line 125, in __getattr__
>     return getattr(self._current_obj(), attr)
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Paste-1.3-py2.4.egg/paste/registry.py",
>  line 177, in _current_obj
>     raise TypeError(
> TypeError: No object (name: Translator) has been registered for this thread
>
> I can't seem to find a way to register a translator for use in websetup.
> Can someone point me in the right direction?

I'm sure the answer is to use a gettext.NullTranslation instance, but
I'm not sure how it ties into Pylons.

Best Regards,
-jj

-- 
"'Software Engineering' is something of an oxymoron.  It's very
difficult to have real engineering before you have physics, and there
isn't anything even close to a physics for software." -- L. Peter
Deutsch

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to