[Moin-user] KeyError in Python with 1.8.2
Matt W
mwood23 at gmail.com
Fri Feb 20 19:14:49 EST 2009
Hi all--
here I go again, upgrading MoinMoin, something that has bitten me before :)
We are upgrading from 180 to 182. I really tried to be careful
following the guides and didn't see any 'gotchas' in the CHANGES file.
I thought I had done everything correctly but loading up the main
page I see:
KeyError
'en'
If you want to report a bug, please save this page and attach it to
your bug report.
[etc]
The Apache error log shows this:
2009-02-20 16:07:30,379 ERROR MoinMoin.failure:159 An exception
occurred, URI was "/".
Traceback (most recent call last):
File "/usr/local/wiki/lib/python2.5/site-packages/MoinMoin/request/__init__.py",
line 1311, in run
handler(self.page.page_name, self)
File "/usr/local/wiki/lib/python2.5/site-packages/MoinMoin/action/__init__.py",
line 253, in do_show
content_only=content_only,
File "/usr/local/wiki/lib/python2.5/site-packages/MoinMoin/Page.py",
line 1173, in send_page
html_head=html_head,
File "/usr/local/wiki/lib/python2.5/site-packages/MoinMoin/theme/__init__.py",
line 1715, in send_title
bodyattr.append(' %s' % self.ui_lang_attr())
File "/usr/local/wiki/lib/python2.5/site-packages/MoinMoin/theme/__init__.py",
line 1520, in ui_lang_attr
return ' lang="%s" dir="%s"' % (lang, i18n.getDirection(lang))
File "/usr/local/wiki/lib/python2.5/site-packages/MoinMoin/i18n/__init__.py",
line 238, in getDirection
return languages[lang]['x-direction']
KeyError: 'en'
Anyone have an idea what Python is choking on here? Doesn't seem
happy about doing a language selection.
More information about the Moin-user
mailing list