LotekHeavy

Pendenzenliste

Neu

--> -->

KeyError

u'Status'

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. /home/lotek/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object at 0xafe146ac>)

    1. 1298 self.page.send_page(msg=msg)
    2. 1299 else:
    3. 1300 handler(self.page.page_name, self)
    4. 1301
    5. 1302 # every action that didn't use to raise MoinMoinNoFooter must call this now:
    • handler = <function do_print at 0xb04dff0c>
    • self = <MoinMoin.request.request_wsgi.Request object at 0xafe146ac>
    • self.page = <MoinMoin.Page.Page object at 0xafe207ec>
    • self.page.page_name = u'PageDictsExample'
  2. /home/lotek/lib/python2.5/site-packages/MoinMoin/action/__init__.py in do_print (pagename=u'PageDictsExample', request=<MoinMoin.request.request_wsgi.Request object at 0xafe146ac>)

    1. 263 def do_print(pagename, request):
    2. 264 """ same as do_show, but with print_mode set """
    3. 265 do_show(pagename, request, print_mode=1)
    4. 266
    5. 267 def do_recall(pagename, request):
    • global do_show = <function do_show at 0xb04dfe64>
    • pagename = u'PageDictsExample'
    • request = <MoinMoin.request.request_wsgi.Request object at 0xafe146ac>
    • print_mode undefined
  3. /home/lotek/lib/python2.5/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'PageDictsExample', request=<MoinMoin.request.request_wsgi.Request object at 0xafe146ac>, content_only=0, count_hit=1, cacheable=1, print_mode=1)

    1. 239 count_hit=count_hit,
    2. 240 print_mode=print_mode,
    3. 241 content_only=content_only,
    4. 242 )
    5. 243
    • content_only = 0
  4. /home/lotek/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0xafe2074c>, msg='', **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 1})

    1. 1179 format_args=pi['formatargs'],
    2. 1180 do_cache=do_cache,
    3. 1181 start_line=pi['lines'])
    4. 1182
    5. 1183 # check for pending footnotes
    • start_line undefined
    • pi = {'acl': <MoinMoin.security.AccessControlList instance at 0xafe20acc>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 0}
  5. /home/lotek/lib/python2.5/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0xafe2074c>, request=<MoinMoin.request.request_wsgi.Request object at 0xafe146ac>, body=u'= Pendenzenliste =\n\n\n== Neu ==\n\n<<PageDicts(Bugs...endenzen unter [[/Bugs2]]\n----\nCategoryPendenzen\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 0})

    1. 1263
    2. 1264 if not (do_cache and self.canUseCache(Parser)):
    3. 1265 self.format(parser)
    4. 1266 else:
    5. 1267 try:
    • self = <MoinMoin.Page.Page object at 0xafe2074c>
    • self.format = <bound method Page.format of <MoinMoin.Page.Page object at 0xafe2074c>>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xafe2004c>
  6. /home/lotek/lib/python2.5/site-packages/MoinMoin/Page.py in format (self=<MoinMoin.Page.Page object at 0xafe2074c>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xafe2004c>)

    1. 1284 def format(self, parser):
    2. 1285 """ Format and write page content without caching """
    3. 1286 parser.format(self.formatter)
    4. 1287
    5. 1288 def execute(self, request, parser, code):
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xafe2004c>
    • parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xafe2004c>>
    • self = <MoinMoin.Page.Page object at 0xafe2074c>
    • self.formatter = <MoinMoin.formatter.text_html.Formatter instance at 0xafe2016c>
  7. /home/lotek/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in format (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xafe2004c>, formatter=<MoinMoin.formatter.text_html.Formatter instance at 0xafe2016c>, inhibit_p=False)

    1. 1539
    2. 1540 # Scan line, format and write
    3. 1541 formatted_line = self.scan(line, inhibit_p=inhibit_p)
    4. 1542 self.request.write(formatted_line)
    5. 1543
    • formatted_line = u'<p class="line867">\n<h2 id="head-aa313be4ae4578d319572ab4bff931d7c639d250">Neu</h2>\n'
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xafe2004c>
    • self.scan = <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xafe2004c>>
    • line = u'<<PageDicts(Bugs2, Beschreibung, Verantwortung, Datum, Status, Status ~= neu)>> '
    • inhibit_p = False
  8. /home/lotek/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in scan (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xafe2004c>, line=u'<<PageDicts(Bugs2, Beschreibung, Verantwortung, Datum, Status, Status ~= neu)>> ', inhibit_p=False)

    1. 1355 self.in_table or self.in_list):
    2. 1356 result.append(self.formatter.paragraph(1, css_class="line867"))
    3. 1357 result.append(self.replace(match, inhibit_p))
    4. 1358 end = match.end()
    5. 1359 lastpos = end
    • result = ['<p class="line867">']
    • result.append = <built-in method append of list object at 0xafe172ec>
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xafe2004c>
    • self.replace = <bound method Parser.replace of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xafe2004c>>
    • match = <_sre.SRE_Match object at 0x85e3200>
    • inhibit_p = False
  9. /home/lotek/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in replace (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xafe2004c>, match=<_sre.SRE_Match object at 0x85e3200>, inhibit_p=False)

    1. 1397 # Get replace method and replace hit
    2. 1398 replace_func = getattr(self, '_%s_repl' % type)
    3. 1399 result.append(replace_func(hit, match.groupdict()))
    4. 1400 return ''.join(result)
    5. 1401 else:
    • result = []
    • result.append = <built-in method append of list object at 0xafe170ac>
    • replace_func = <bound method Parser._macro_repl of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xafe2004c>>
    • hit = u'Bugs2, Beschreibung, Verantwortung, Datum, Status, Status ~= neu'
    • match = <_sre.SRE_Match object at 0x85e3200>
    • match.groupdict = <built-in method groupdict of _sre.SRE_Match object at 0x85e3200>
  10. /home/lotek/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in _macro_repl (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xafe2004c>, word=u'Bugs2, Beschreibung, Verantwortung, Datum, Status, Status ~= neu', groups={u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...})

    1. 1322 if self.macro is None:
    2. 1323 self.macro = macro.Macro(self)
    3. 1324 return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
    4. 1325 _macro_name_repl = _macro_repl
    5. 1326 _macro_args_repl = _macro_repl
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xafe2004c>
    • self.formatter = <MoinMoin.formatter.text_html.Formatter instance at 0xafe2016c>
    • self.formatter.macro = <bound method Formatter.macro of <MoinMoin.formatter.text_html.Formatter instance at 0xafe2016c>>
    • self.macro = <MoinMoin.macro.Macro instance at 0xafe1778c>
    • macro_name = u'PageDicts'
    • macro_args = u'Bugs2, Beschreibung, Verantwortung, Datum, Status, Status ~= neu'
    • markup undefined
    • groups = {u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...}
    • groups.get = <built-in method get of dict object at 0xaf2dd604>
  11. /home/lotek/lib/python2.5/site-packages/MoinMoin/formatter/__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0xafe2016c>, macro_obj=<MoinMoin.macro.Macro instance at 0xafe1778c>, name=u'PageDicts', args=u'Bugs2, Beschreibung, Verantwortung, Datum, Status, Status ~= neu', markup=u'<<PageDicts(Bugs2, Beschreibung, Verantwortung, Datum, Status, Status ~= neu)>>')

    1. 306 # call the macro
    2. 307 try:
    3. 308 return macro_obj.execute(name, args)
    4. 309 except ImportError, err:
    5. 310 errmsg = unicode(err)
    • macro_obj = <MoinMoin.macro.Macro instance at 0xafe1778c>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance at 0xafe1778c>>
    • name = u'PageDicts'
    • args = u'Bugs2, Beschreibung, Verantwortung, Datum, Status, Status ~= neu'
  12. /home/lotek/lib/python2.5/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance at 0xafe1778c>, macro_name=u'PageDicts', args=u'Bugs2, Beschreibung, Verantwortung, Datum, Status, Status ~= neu')

    1. 114 else:
    2. 115 raise ImportError("Cannot load macro %s" % macro_name)
    3. 116 return execute(self, args)
    4. 117
    5. 118 def _m_lang(self, text):
    • execute = <function execute at 0xafe0f3e4>
    • self = <MoinMoin.macro.Macro instance at 0xafe1778c>
    • args = u'Bugs2, Beschreibung, Verantwortung, Datum, Status, Status ~= neu'
  13. /home/lotek/wiki/data/lotek/plugin/macro/PageDicts.py in execute (macro=<MoinMoin.macro.Macro instance at 0xafe1778c>, args=[u'Beschreibung', u'Verantwortung', u'Datum', u'Status', 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 at 0xafe0f3ac>
    • conditions = [{'column': u'Status', 'func': <function <lambda> at 0xaf2f533c>, 'regex': <_sre.SRE_Pattern object at 0xafe35218>}]
    • dictionary = <Dict name=u'PageDictsExample/Bugs2' items=[]>
  14. /home/lotek/wiki/data/lotek/plugin/macro/PageDicts.py in match_conditions (conditions=[{'column': u'Status', 'func': <function <lambda> at 0xaf2f533c>, 'regex': <_sre.SRE_Pattern object at 0xafe35218>}], dictionary=<Dict name=u'PageDictsExample/Bugs2' items=[]>)

    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'Status', 'func': <function <lambda> at 0xaf2f533c>, 'regex': <_sre.SRE_Pattern object at 0xafe35218>}
    • dictionary = <Dict name=u'PageDictsExample/Bugs2' items=[]>
  15. /home/lotek/wiki/data/lotek/plugin/macro/PageDicts.py in (condition={'column': u'Status', 'func': <function <lambda> at 0xaf2f533c>, 'regex': <_sre.SRE_Pattern object at 0xafe35218>}, dictionary=<Dict name=u'PageDictsExample/Bugs2' items=[]>)

    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'Status', 'func': <function <lambda> at 0xaf2f533c>, 'regex': <_sre.SRE_Pattern object at 0xafe35218>}
    • dictionary = <Dict name=u'PageDictsExample/Bugs2' items=[]>
    • ].search undefined
  16. /home/lotek/lib/python2.5/site-packages/MoinMoin/wikidicts.py in __getitem__ (self=<Dict name=u'PageDictsExample/Bugs2' items=[]>, key=u'Status')

    1. 66
    2. 67 def __getitem__(self, key):
    3. 68 return self._dict[key]
    4. 69
    5. 70 def __repr__(self):
    • self = <Dict name=u'PageDictsExample/Bugs2' items=[]>
    • self._dict = {}
    • key = u'Status'

KeyError

u'Status'

  • args = (u'Status',)
  • message = u'Status'

System Details

  • Date: Fri, 06 Jun 2008 11:01:12 +0000
  • Platform: Linux web11.webfaction.com 2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 12 17:59:08 EDT 2007 i686
  • Python: Python 2.5 (/home/lotek/bin/python)
  • MoinMoin: Release 1.6.3 (release)