Attachment 'recipes_traceback.html'

Download

Inhaltsverzeichnis

  1. About
  2. Usage
  3. Acknowledgment

About

This wiki demonstrates the use of the Form macro. A reference documentation of the Form macro can be found at MacroMarket/Form. Some technical details regarding this form can be found at /TechnicalDetails.

Usage

Use the filter (blue) to narrow the recipes displayed (yellow) to those matching the criteria. You can edit the recipes, modify the ingredients and add your own recipes too.

Name

Form macro error: The form dictionary "Recipes/FormsDict" does not exist or is not valid

Category

Energy

- Cal.

Time

- minutes

Difficulty

-

Procedure

--> -->

KeyError

'index'

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. G:\INSTALL\Python\Moin\moin-1.7.1\MoinMoin\request\__init__.py in run (self=<MoinMoin.request.request_standalone.Request object at 0x0100C1B0>)

    1. 1305 self.page.send_page()
    2. 1306 else:
    3. 1307 handler(self.page.page_name, self)
    4. 1308
    5. 1309 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function do_show at 0x00E8F7B0>
    • self = <MoinMoin.request.request_standalone.Request object at 0x0100C1B0>
    • self.page = <MoinMoin.Page.Page object at 0x02630950>
    • self.page.page_name = u'Recipes'
  2. G:\INSTALL\Python\Moin\moin-1.7.1\MoinMoin\action\__init__.py in do_show (pagename=u'Recipes', request=<MoinMoin.request.request_standalone.Request object at 0x0100C1B0>, content_only=0, count_hit=1, cacheable=1, print_mode=0)

    1. 251 count_hit=count_hit,
    2. 252 print_mode=print_mode,
    3. 253 content_only=content_only,
    4. 254 )
    5. 255
    • content_only = 0
  3. G:\INSTALL\Python\Moin\moin-1.7.1\MoinMoin\Page.py in send_page (self=<MoinMoin.Page.Page object at 0x0100C110>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})

    1. 1195 format_args=pi['formatargs'],
    2. 1196 do_cache=do_cache,
    3. 1197 start_line=pi['lines'])
    4. 1198
    5. 1199 # check for pending footnotes
    • start_line undefined
    • pi = {'acl': <MoinMoin.security.AccessControlList instance at 0x00F6E0A8>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 0}
  4. G:\INSTALL\Python\Moin\moin-1.7.1\MoinMoin\Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0x0100C110>, request=<MoinMoin.request.request_standalone.Request object at 0x0100C1B0>, body=u'<<TableOfContents>>\n<<Navigation(children,1)>>\n\n...aken from http://en.wikibooks.org/wiki/Cookbook.\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 0})

    1. 1289 try:
    2. 1290 code = self.makeCache(request, parser)
    3. 1291 self.execute(request, parser, code)
    4. 1292 except Exception, e:
    5. 1293 if not is_cache_exception(e):
    • self = <MoinMoin.Page.Page object at 0x0100C110>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page object at 0x0100C110>>
    • request = <MoinMoin.request.request_standalone.Request object at 0x0100C1B0>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x00F6E418>
    • code = <code object <module> at 00FA5800, file "Recipes", line 2>
  5. G:\INSTALL\Python\Moin\moin-1.7.1\MoinMoin\Page.py in execute (self=<MoinMoin.Page.Page object at 0x0100C110>, request=<MoinMoin.request.request_standalone.Request object at 0x0100C1B0>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x00F6E418>, code=<code object <module> at 00FA5800, file "Recipes", line 2>)

    1. 1314 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    2. 1315 try:
    3. 1316 exec code
    4. 1317 except "CacheNeedsUpdate": # convert the exception
    5. 1318 raise Exception("CacheNeedsUpdate")
    • code = <code object <module> at 00FA5800, file "Recipes", line 2>
  6. G:\INSTALL\Python\Moin\moin-1.7.1\Recipes in ()

  7. G:\INSTALL\Python\Moin\moin-1.7.1\MoinMoin\formatter\__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0x00F6E030>, macro_obj=<MoinMoin.macro.Macro instance at 0x00FE6E90>, name=u'Form', args=u'Hidden, Recipes/FormsDict.recipe.Id', markup=u'<<Form(Hidden, Recipes/FormsDict.recipe.Id)>>')

    1. 312 # call the macro
    2. 313 try:
    3. 314 return macro_obj.execute(name, args)
    4. 315 except ImportError, err:
    5. 316 errmsg = unicode(err)
    • macro_obj = <MoinMoin.macro.Macro instance at 0x00FE6E90>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance at 0x00FE6E90>>
    • name = u'Form'
    • args = u'Hidden, Recipes/FormsDict.recipe.Id'
  8. G:\INSTALL\Python\Moin\moin-1.7.1\MoinMoin\macro\__init__.py in execute (self=<MoinMoin.macro.Macro instance at 0x00FE6E90>, macro_name=u'Form', args=u'Hidden, Recipes/FormsDict.recipe.Id')

    1. 126 else:
    2. 127 raise ImportError("Cannot load macro %s" % macro_name)
    3. 128 return execute(self, args)
    4. 129
    5. 130 def _m_lang(self, text):
    • execute = <function execute at 0x0101CAF0>
    • self = <MoinMoin.macro.Macro instance at 0x00FE6E90>
    • args = u'Hidden, Recipes/FormsDict.recipe.Id'
  9. G:\INSTALL\Python\Moin\moin-1.7.1\wiki\data\plugin\macro\Form.py in execute (macro=<MoinMoin.macro.Macro instance at 0x00FE6E90>, args=[u'Hidden', u'Recipes/FormsDict.recipe.Id'])

    1. 16 if not hasattr(request, 'form_macro_form'):
    2. 17 request.form_macro_form = Form(request)
    3. 18 return request.form_macro_form.render(args)
    4. 19
    5. 20
    • request = <MoinMoin.request.request_standalone.Request object at 0x0100C1B0>
    • request.form_macro_form = <wikiconfig.plugin.macro.Form.Form instance at 0x00FF8A58>
    • request.form_macro_form.render = <bound method Form.render of <wikiconfig.plugin.macro.Form.Form instance at 0x00FF8A58>>
    • args = [u'Hidden', u'Recipes/FormsDict.recipe.Id']
  10. G:\INSTALL\Python\Moin\moin-1.7.1\wiki\data\plugin\macro\Form.py in render (self=<wikiconfig.plugin.macro.Form.Form instance at 0x00FF8A58>, args=[u'Hidden', u'Recipes/FormsDict.recipe.Id'])

    1. 148 return self.render_next()
    2. 149 else:
    3. 150 return self.render_field(element, args)
    4. 151
    5. 152
    • self = <wikiconfig.plugin.macro.Form.Form instance at 0x00FF8A58>
    • self.render_field = <bound method Form.render_field of <wikiconfig.plugin.macro.Form.Form instance at 0x00FF8A58>>
    • element = u'hidden'
    • args = [u'Hidden', u'Recipes/FormsDict.recipe.Id']
  11. G:\INSTALL\Python\Moin\moin-1.7.1\wiki\data\plugin\macro\Form.py in render_field (self=<wikiconfig.plugin.macro.Form.Form instance at 0x00FF8A58>, element=u'hidden', args=[u'Hidden', u'Recipes/FormsDict.recipe.Id'])

    1. 193 field_name = self.field_name
    2. 194 field_key = '%s.%s' % (self.form_key, field_name)
    3. 195 value = self.wikiutil.escape(self.get_field_value(self.form_key, field_name, field_key) or '', 1)
    4. 196
    5. 197 if element == 'value':
    • value undefined
    • self = <wikiconfig.plugin.macro.Form.Form instance at 0x00FF8A58>
    • self.wikiutil = <module 'MoinMoin.wikiutil' from 'G:\INSTALL\Python\Moin\moin-1.7.1\MoinMoin\wikiutil.pyc'>
    • self.wikiutil.escape = <function escape at 0x00C7B530>
    • self.get_field_value = <bound method Form.get_field_value of <wikiconfig.plugin.macro.Form.Form instance at 0x00FF8A58>>
    • self.form_key = u'Recipes/FormsDict.recipe'
    • field_name = u'Id'
    • field_key = u'Recipes/FormsDict.recipe.Id'
  12. G:\INSTALL\Python\Moin\moin-1.7.1\wiki\data\plugin\macro\Form.py in get_field_value (self=<wikiconfig.plugin.macro.Form.Form instance at 0x00FF8A58>, form_key=u'Recipes/FormsDict.recipe', field_name=u'Id', field_key=u'Recipes/FormsDict.recipe.Id', for_action=0)

    1. 225 elif not for_action:
    2. 226 form = self.forms[form_key]
    3. 227 index = form['index']
    4. 228 records = form['records']
    5. 229 if index > len(records):
    • index undefined
    • form = {'dict': {}, 'dict_name': u'Recipes/FormsDict', 'form_name': u'recipe'}

KeyError

'index'

  • args = ('index',)
  • message = 'index'

System Details

  • Date: Sat, 26 Jul 2008 14:50:37 +0000
  • Platform: win32 (nt)
  • Python: Python 2.5.2 (E:\apps\python25\python.exe)
  • MoinMoin: Release 1.7.1 (release)

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2008-07-27 11:21:58, 26.4 KB) [[attachment:recipes_traceback.html]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.