2008年6月30日月曜日

ugettext in TG

このエントリーをブックマークに追加 このエントリーを含むはてなブックマーク
python setup.py test
はおかしくなるが
nosetest
だと大丈夫。くだらないことではまった。


strange validator behaviour


Seems to have something to do with the obscure trickery of translating
messages in FormEncode and TurboGears. There is a special version of
gettext in Turbogears that can handle an additional domain parameter.
FormEncode and TurboGears switch between the gettext versions. The
Validator class has a class attribute dictionary gettextargs which is
used as a parameter for gettext. If the standard version of gettext is
called with that parameter, it throws that exception.

0 件のコメント: