Серия "Библиотека ALT Linux": тематический план
Хобби
--> -->
KeyError
u'\u0422\u0435\u043c\u0430'
If you want to report a bug, please save this page and attach it to your bug report.
Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/usr/lib/python2.4/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestCGI object>)
- 1149 from MoinMoin.wikiaction import getHandler
- 1150 handler = getHandler(self, action)
- 1151 handler(self.page.page_name, self)
- 1152
- 1153 # generate page footer (actions that do not want this footer use
- handler = <function do_show>
- self = <MoinMoin.request.RequestCGI object>
- self.page = <MoinMoin.Page.Page instance>
- self.page.page_name = u'Heap/Books/AltLibrary/Hobby'
/usr/lib/python2.4/site-packages/MoinMoin/wikiaction.py in do_show (pagename=u'Heap/Books/AltLibrary/Hobby', request=<MoinMoin.request.RequestCGI object>)
- 466 else:
- 467 request.cacheable = 1
- 468 Page(request, pagename).send_page(request, count_hit=1)
- 469
- 470
- global Page = <class MoinMoin.Page.Page>
- request = <MoinMoin.request.RequestCGI object>
- pagename = u'Heap/Books/AltLibrary/Hobby'
- ).send_page undefined
- count_hit undefined
/usr/lib/python2.4/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, msg='', **keywords={'count_hit': 1})
- 1251 format_args=pi_formatargs,
- 1252 do_cache=do_cache,
- 1253 start_line=pi_lines)
- 1254
- 1255 # check for pending footnotes
- start_line undefined
- pi_lines = 0
/usr/lib/python2.4/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u'== \u0421\u0435\u0440\u0438\u044f "\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 ALT Linux": \u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043b...\u0441, \u0414\u0430\u0442\u0430 \u0432\u044b\u0445\u043e\u0434\u0430, \u0422\u0435\u043c\u0430 ~= \u0421\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e, transpose)]]\n', format_args='', do_cache=1, **kw={'start_line': 0})
- 1342 try:
- 1343 code = self.loadCache(request)
- 1344 self.execute(request, parser, code)
- 1345 except Exception, e:
- 1346 if not is_cache_exception(e):
- self = <MoinMoin.Page.Page instance>
- self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance>>
- request = <MoinMoin.request.RequestCGI object>
- parser = <MoinMoin.parser.wiki.Parser instance>
- code = <code object ? at 0x97d92e0, file "Heap/Books/AltLibrary/Hobby", line 2>
/usr/lib/python2.4/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, parser=<MoinMoin.parser.wiki.Parser instance>, code=<code object ? at 0x97d92e0, file "Heap/Books/AltLibrary/Hobby", line 2>)
- 1371 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
- 1372 try:
- 1373 exec code
- 1374 except 'CacheNeedsUpdate':
- 1375 raise Exception('CacheNeedsUpdate')
- code = <code object ? at 0x97d92e0, file "Heap/Books/AltLibrary/Hobby", line 2>
/var/www/wiki/heap/view/Heap/Books/AltLibrary/Hobby in ?
/usr/lib/python2.4/site-packages/MoinMoin/formatter/base.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance>, macro_obj=<MoinMoin.wikimacro.Macro instance>, name=u'PageDicts', args=u'Heap/Books/AltLibrary, \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435, \u0421\u0442\u0430\u0442\u0443\u0441, \u0414\u0430\u0442\u0430 \u0432\u044b\u0445\u043e\u0434\u0430, \u0422\u0435\u043c\u0430 ~= \u0425\u043e\u0431\u0431\u0438, transpose')
- 288 def macro(self, macro_obj, name, args):
- 289 # call the macro
- 290 return macro_obj.execute(name, args)
- 291
- 292 def _get_bang_args(self, line):
- macro_obj = <MoinMoin.wikimacro.Macro instance>
- macro_obj.execute = <bound method Macro.execute of <MoinMoin.wikimacro.Macro instance>>
- name = u'PageDicts'
- args = u'Heap/Books/AltLibrary, \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435, \u0421\u0442\u0430\u0442\u0443\u0441, \u0414\u0430\u0442\u0430 \u0432\u044b\u0445\u043e\u0434\u0430, \u0422\u0435\u043c\u0430 ~= \u0425\u043e\u0431\u0431\u0438, transpose'
/usr/lib/python2.4/site-packages/MoinMoin/wikimacro.py in execute (self=<MoinMoin.wikimacro.Macro instance>, macro_name=u'PageDicts', args=u'Heap/Books/AltLibrary, \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435, \u0421\u0442\u0430\u0442\u0443\u0441, \u0414\u0430\u0442\u0430 \u0432\u044b\u0445\u043e\u0434\u0430, \u0422\u0435\u043c\u0430 ~= \u0425\u043e\u0431\u0431\u0438, transpose')
- 118 else:
- 119 raise ImportError("Cannot load macro %s" % macro_name)
- 120 return execute(self, args)
- 121
- 122 def _m_lang(self, text):
- execute = <function execute>
- self = <MoinMoin.wikimacro.Macro instance>
- args = u'Heap/Books/AltLibrary, \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435, \u0421\u0442\u0430\u0442\u0443\u0441, \u0414\u0430\u0442\u0430 \u0432\u044b\u0445\u043e\u0434\u0430, \u0422\u0435\u043c\u0430 ~= \u0425\u043e\u0431\u0431\u0438, transpose'
/var/www/wiki/heap/data/plugin/macro/PageDicts.py in execute (macro=<MoinMoin.wikimacro.Macro instance>, args=[u'\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435', u'\u0421\u0442\u0430\u0442\u0443\u0441', u'\u0414\u0430\u0442\u0430 \u0432\u044b\u0445\u043e\u0434\u0430', None, None])
- 100
- 101 ## Check to make sure that the conditons are matched
- 102 if not match_conditions(conditions, dictionary):
- 103 continue
- 104
- global match_conditions = <function match_conditions>
- conditions = [{'column': u'\u0422\u0435\u043c\u0430', 'func': <function <lambda>>, 'regex': <_sre.SRE_Pattern object>}]
- dictionary = <Dict name=u'Heap/Books/AltLibrary' items=[(u'AL...\u043f\u0435\u0447\u0435\u043d\u0438\u044f''.")]>
/var/www/wiki/heap/data/plugin/macro/PageDicts.py in match_conditions (conditions=[{'column': u'\u0422\u0435\u043c\u0430', 'func': <function <lambda>>, 'regex': <_sre.SRE_Pattern object>}], dictionary=<Dict name=u'Heap/Books/AltLibrary' items=[(u'AL...\u043f\u0435\u0447\u0435\u043d\u0438\u044f''.")]>)
- 60 """ Returns true if all conditions match, false if any fail to match """
- 61 for condition in conditions:
- 62 if not condition['func'](condition,dictionary):
- 63 return False
- 64
- condition = {'column': u'\u0422\u0435\u043c\u0430', 'func': <function <lambda>>, 'regex': <_sre.SRE_Pattern object>}
- dictionary = <Dict name=u'Heap/Books/AltLibrary' items=[(u'AL...\u043f\u0435\u0447\u0435\u043d\u0438\u044f''.")]>
/var/www/wiki/heap/data/plugin/macro/PageDicts.py in
(condition={'column': u'\u0422\u0435\u043c\u0430', 'func': <function <lambda>>, 'regex': <_sre.SRE_Pattern object>}, dictionary=<Dict name=u'Heap/Books/AltLibrary' items=[(u'AL...\u043f\u0435\u0447\u0435\u043d\u0438\u044f''.")]>) - 52 column = tmp[0].strip(),
- 53 regex = re.compile(tmp[1].strip(), re.IGNORECASE),
- 54 func = lambda condition,dictionary: condition['regex'].search(dictionary[condition['column']])
- 55 )
- 56
- func undefined
- condition = {'column': u'\u0422\u0435\u043c\u0430', 'func': <function <lambda>>, 'regex': <_sre.SRE_Pattern object>}
- dictionary = <Dict name=u'Heap/Books/AltLibrary' items=[(u'AL...\u043f\u0435\u0447\u0435\u043d\u0438\u044f''.")]>
- ].search undefined
/usr/lib/python2.4/site-packages/MoinMoin/wikidicts.py in __getitem__ (self=<Dict name=u'Heap/Books/AltLibrary' items=[(u'AL...\u043f\u0435\u0447\u0435\u043d\u0438\u044f''.")]>, key=u'\u0422\u0435\u043c\u0430')
- 74
- 75 def __getitem__(self, key):
- 76 return self._dict[key]
- 77
- 78 def __repr__(self):
- self = <Dict name=u'Heap/Books/AltLibrary' items=[(u'AL...\u043f\u0435\u0447\u0435\u043d\u0438\u044f''.")]>
- self._dict = {u'ALT Linux --': u"[http://altlinux.ru \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f], \u0438 [http://sisyphu...\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f''."}
- key = u'\u0422\u0435\u043c\u0430'
KeyError
u'\u0422\u0435\u043c\u0430'
- args = (u'\u0422\u0435\u043c\u0430',)
System Details
- Date: Sat, 21 Dec 2024 14:19:10 +0000
- Platform: Linux heap.altlinux.org 3.10.0-ovz-el7-alt4.1160.42.2.vz7.184.7 #1 SMP Mon Dec 20 11:24:03 UTC 2021 i686
- Python: Python 2.4.4 (/usr/bin/python)
- MoinMoin: Release 1.5.6 (release)