ALTLinuxEdu

Серия "Библиотека 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.

  1. /usr/lib/python2.4/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestCGI object>)

    1. 1149 from MoinMoin.wikiaction import getHandler
    2. 1150 handler = getHandler(self, action)
    3. 1151 handler(self.page.page_name, self)
    4. 1152
    5. 1153 # generate page footer (actions that do not want this footer use
    • handler = <function do_print>
    • self = <MoinMoin.request.RequestCGI object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.page_name = u'Heap/Books/AltLibrary/Hobby'
  2. /usr/lib/python2.4/site-packages/MoinMoin/wikiaction.py in do_print (pagename=u'Heap/Books/AltLibrary/Hobby', request=<MoinMoin.request.RequestCGI object>)

    1. 486
    2. 487 def do_print(pagename, request):
    3. 488 do_show(pagename, request)
    4. 489
    5. 490
    • global do_show = <function do_show>
    • pagename = u'Heap/Books/AltLibrary/Hobby'
    • request = <MoinMoin.request.RequestCGI object>
  3. /usr/lib/python2.4/site-packages/MoinMoin/wikiaction.py in do_show (pagename=u'Heap/Books/AltLibrary/Hobby', request=<MoinMoin.request.RequestCGI object>)

    1. 466 else:
    2. 467 request.cacheable = 1
    3. 468 Page(request, pagename).send_page(request, count_hit=1)
    4. 469
    5. 470
    • global Page = <class MoinMoin.Page.Page>
    • request = <MoinMoin.request.RequestCGI object>
    • pagename = u'Heap/Books/AltLibrary/Hobby'
    • ).send_page undefined
    • count_hit undefined
  4. /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})

    1. 1251 format_args=pi_formatargs,
    2. 1252 do_cache=do_cache,
    3. 1253 start_line=pi_lines)
    4. 1254
    5. 1255 # check for pending footnotes
    • start_line undefined
    • pi_lines = 0
  5. /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})

    1. 1342 try:
    2. 1343 code = self.loadCache(request)
    3. 1344 self.execute(request, parser, code)
    4. 1345 except Exception, e:
    5. 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 0x9c6a9e0, file "Heap/Books/AltLibrary/Hobby", line 2>
  6. /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 0x9c6a9e0, file "Heap/Books/AltLibrary/Hobby", line 2>)

    1. 1371 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    2. 1372 try:
    3. 1373 exec code
    4. 1374 except 'CacheNeedsUpdate':
    5. 1375 raise Exception('CacheNeedsUpdate')
    • code = <code object ? at 0x9c6a9e0, file "Heap/Books/AltLibrary/Hobby", line 2>
  7. /var/www/wiki/heap/view/Heap/Books/AltLibrary/Hobby in ?

  8. /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')

    1. 288 def macro(self, macro_obj, name, args):
    2. 289 # call the macro
    3. 290 return macro_obj.execute(name, args)
    4. 291
    5. 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'
  9. /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')

    1. 118 else:
    2. 119 raise ImportError("Cannot load macro %s" % macro_name)
    3. 120 return execute(self, args)
    4. 121
    5. 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'
  10. /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])

    1. 100
    2. 101 ## Check to make sure that the conditons are matched
    3. 102 if not match_conditions(conditions, dictionary):
    4. 103 continue
    5. 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''.")]>
  11. /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''.")]>)

    1. 60 """ Returns true if all conditions match, false if any fail to match """
    2. 61 for condition in conditions:
    3. 62 if not condition['func'](condition,dictionary):
    4. 63 return False
    5. 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''.")]>
  12. /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''.")]>)

    1. 52 column = tmp[0].strip(),
    2. 53 regex = re.compile(tmp[1].strip(), re.IGNORECASE),
    3. 54 func = lambda condition,dictionary: condition['regex'].search(dictionary[condition['column']])
    4. 55 )
    5. 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
  13. /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')

    1. 74
    2. 75 def __getitem__(self, key):
    3. 76 return self._dict[key]
    4. 77
    5. 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: Tue, 24 Dec 2024 16:03:18 +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)