[Zope] NuxDocument Nonfunctional

Florent Guillaume fg@nuxeo.com
Tue, 28 Jan 2003 14:58:12 +0100


Apparently Localizer (in fact, python gettext module) didn't correctly
parse the charset of the .po files... Are they standard .po files? There
should be a Content-Type: xxx; charset=foo header in them.

If you could add debug statements to /local/lib/python2.1/gettext.py to
track this down it would be helpful.

Florent


In article <1043428979.268.35.camel@kermit> you write:
> On FreeBSD 4.7 I'm running Zope 2.5.1 that I've patched with all the
> Unicode diffs from http://www.zope.org/Members/efge/i18n/Unicode-2.5.1.
> I've also installed Localizer 1.0.0. All in an attempt to get
> NuxDocument 1.1alpha functional. (I've installed all the necessary
> converter apps as well: wvWare, etc.) I *think* I've installed
> NuxDocument correctly, but the very first instruction is confusing:
> 
> "Install the product in Products (NOT lib/python/Products!). The
> ZNuxDocument product should appear in the ZMI."
> 
> Well, the *only* "Products" directory in existence on my system is
> lib/python/Products. So that's where I stuck it. Now I see a
> "NuxDocument" available as something I can Add in the ZMI (not
> "ZNuxDocument").
> 
> Problem is, whenever I try to Add a NuxDocument, I get the following
> Traceback from Localizer:
> 
> =-=-=-=-=-=-=-=-=-=
> 
> Error Type: LookupError
> Error Value: unknown encoding
> Traceback (innermost last):
>   File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 150,
> in publish_module
>   File /usr/local/www/Zope/lib/python/Products/Localizer/__init__.py,
> line 58, in new_publish
>   File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 114,
> in publish
>   File /usr/local/www/Zope/lib/python/Zope/__init__.py, line 159, in
> zpublisher_exception_hook
>   File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 98, in
> publish
>   File /usr/local/www/Zope/lib/python/ZPublisher/mapply.py, line 88, in
> mapply
>     (Object: addForm)
>   File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 39, in
> call_object
>     (Object: addForm)
>   File /usr/local/www/Zope/lib/python/Shared/DC/Scripts/Bindings.py,
> line 252, in __call__
>     (Object: addForm)
>   File /usr/local/www/Zope/lib/python/Shared/DC/Scripts/Bindings.py,
> line 283, in _bindAndExec
>     (Object: addForm)
>   File /usr/local/www/Zope/lib/python/Products/Localizer/LocalFiles.py,
> line 100, in _exec
>     (Object: addForm)
>   File /usr/local/www/Zope/lib/python/App/special_dtml.py, line 172, in
> _exec
>     (Object: addForm)
>   File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_Util.py, line
> 179, in eval
>     (Object: manage_form_title(this(), _,
>                              form_title=gettext('Add ZNuxDocument')))
>     (Info: this)
>   File <string>, line 0, in ?
>   File /usr/local/www/Zope/lib/python/Products/Localizer/LocalFiles.py,
> line 82, in gettext
>     (Object: addForm)
>   File /usr/local/lib/python2.1/gettext.py, line 195, in ugettext
> LookupError: (see above)


-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com