[XML-SIG] PyXML breaks localization
Beda Kosata
Bedrich.Kosata@vscht.cz
Thu, 08 Aug 2002 09:23:56 +0200
Hi everybody,
I have just found that PyXML calls gettext.install() on import (via
dom/MessageSource.py), which means that simply calling:
import xml.dom
puts _() to your __builtin__ namespace. Even worse is, that previously
installed _() is overridden, thus breaking the localization of running app.
Even if this is easy to fix by calling gettext.install() after xml.dom
was imported, it does not seem to me as a Good Thing(tm).
I think that the localization scheme of PyXML should be changed
according to http://python.org/doc/2.2.1/lib/node207.html in order not
to pollute the __builtin__ namespace.
Cheers
BEDA
--
============================================================
Beda Kosata (kosatab@vscht.cz)
Department of Organic Chemistry
Institute of Chemical Technology
Prague - Czech Republic
============================================================