DO NOT ADD ANYTHING HERE: THIS WILL BE REPLACED WITH JIRA ASAP.

--> -->

Exception

You cannot call add_msg() after send_title()

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

    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 execute at 0xb51b25c>
    • self = <MoinMoin.request.request_modpython.Request object at 0xacc274c>
    • self.page = <MoinMoin.Page.Page object at 0xa6a002c>
    • self.page.page_name = u'Cc2SvnBridge/PreReleaseBugs'
  2. /usr/local/lib/python2.5/site-packages/MoinMoin/action/edit.py in execute (pagename=u'Cc2SvnBridge/PreReleaseBugs', request=<MoinMoin.request.request_modpython.Request object at 0xacc274c>)

    1. 183
    2. 184 # sets revision number to default for further actions
    3. 185 request.rev = 0
    4. 186 request.theme.add_msg(savemsg, "info")
    5. 187 pg.send_page()
    • pg = <MoinMoin.Page.Page object at 0xacc374c>
    • pg.send_page = <bound method Page.send_page of <MoinMoin.Page.Page object at 0xacc374c>>
  3. /usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0xacc374c>, **keywords={})

    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 0xb7dec8ac>, 'deprecated': True, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 1}
  4. /usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0xacc374c>, request=<MoinMoin.request.request_modpython.Request object at 0xacc274c>, body=u"\nDO NOT ADD ANYTHING HERE: THIS WILL BE REPLACED...ption'''\n\n'''Status'''\n\n'''Any Other Comments'''\n", format='wiki', format_args='', do_cache=1, **kw={'start_line': 1})

    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 0xacc374c>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page object at 0xacc374c>>
    • request = <MoinMoin.request.request_modpython.Request object at 0xacc274c>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xa5f76cc>
    • code = <code object <module> at 0xb434f08, file "Cc2SvnBridge/PreReleaseBugs", line 2>
  5. /usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page object at 0xacc374c>, request=<MoinMoin.request.request_modpython.Request object at 0xacc274c>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xa5f76cc>, code=<code object <module> at 0xb434f08, file "Cc2SvnBridge/PreReleaseBugs", 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 0xb434f08, file "Cc2SvnBridge/PreReleaseBugs", line 2>
  6. /Cc2SvnBridge/PreReleaseBugs in ()

  7. /usr/local/lib/python2.5/site-packages/MoinMoin/formatter/__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0xa7fc6ec>, macro_obj=<MoinMoin.macro.Macro instance at 0xacd686c>, name=u'TableOfContents', args=u'', markup=u'<<TableOfContents()>>')

    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 0xacd686c>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance at 0xacd686c>>
    • name = u'TableOfContents'
    • args = u''
  8. /usr/local/lib/python2.5/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance at 0xacd686c>, macro_name=u'TableOfContents', args=u'')

    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 <lambda> at 0xb423cdc>
    • self = <MoinMoin.macro.Macro instance at 0xacd686c>
    • args = u''
  9. /usr/local/lib/python2.5/site-packages/MoinMoin/macro/__init__.py in (_self=<MoinMoin.macro.Macro instance at 0xacd686c>, _args=u'')

    1. 113 call = wikiutil.importPlugin(self.cfg, 'macro', macro_name,
    2. 114 function='macro_%s' % macro_name)
    3. 115 execute = lambda _self, _args: _self._wrap(call, _args, [self])
    4. 116 except wikiutil.PluginAttributeError:
    5. 117 # fall back to old execute() method, no longer recommended
    • execute undefined
    • _self = <MoinMoin.macro.Macro instance at 0xacd686c>
    • _args = u''
    • _self._wrap = <bound method Macro._wrap of <MoinMoin.macro.Macro instance at 0xacd686c>>
    • call = <function macro_TableOfContents at 0xa77e304>
    • self = <MoinMoin.macro.Macro instance at 0xacd686c>
  10. /usr/local/lib/python2.5/site-packages/MoinMoin/macro/__init__.py in _wrap (self=<MoinMoin.macro.Macro instance at 0xacd686c>, function=<function macro_TableOfContents at 0xa77e304>, args=u'', fixed=[<MoinMoin.macro.Macro instance at 0xacd686c>])

    1. 95 try:
    2. 96 return wikiutil.invoke_extension_function(self.request, function,
    3. 97 args, fixed)
    4. 98 except ValueError, e:
    5. 99 return self.format_error(e)
    • args = u''
    • fixed = [<MoinMoin.macro.Macro instance at 0xacd686c>]
  11. /usr/local/lib/python2.5/site-packages/MoinMoin/wikiutil.py in invoke_extension_function (request=<MoinMoin.request.request_modpython.Request object at 0xacc274c>, function=<function macro_TableOfContents at 0xa77e304>, args=u'', fixed_args=[<MoinMoin.macro.Macro instance at 0xacd686c>])

    1. 1982 kwargs_to_pass.keys()[0]))
    2. 1983
    3. 1984 return function(*fixed_args, **kwargs)
    4. 1985
    5. 1986
    • function = <function macro_TableOfContents at 0xa77e304>
    • fixed_args = [<MoinMoin.macro.Macro instance at 0xacd686c>]
    • kwargs = {'maxdepth': None}
  12. /usr/local/lib/python2.5/site-packages/MoinMoin/macro/TableOfContents.py in macro_TableOfContents (macro=<MoinMoin.macro.Macro instance at 0xacd686c>, maxdepth=99)

    1. 153 content_only=True,
    2. 154 count_hit=False,
    3. 155 omit_footnotes=True)
    4. 156
    5. 157 _ = macro.request.getText
    • omit_footnotes undefined
    • builtin True = True
  13. /usr/local/lib/python2.5/site-packages/MoinMoin/request/__init__.py in redirectedOutput (self=<MoinMoin.request.request_modpython.Request object at 0xacc274c>, function=<bound method Page.send_page of <MoinMoin.Page.Page object at 0xb59f3ec>>, *args=(), **kw={'content_only': True, 'count_hit': False, 'omit_footnotes': True})

    1. 842 self.redirect(buf)
    2. 843 try:
    3. 844 function(*args, **kw)
    4. 845 finally:
    5. 846 self.redirect()
    • function = <bound method Page.send_page of <MoinMoin.Page.Page object at 0xb59f3ec>>
    • args = ()
    • kw = {'content_only': True, 'count_hit': False, 'omit_footnotes': True}
  14. /usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0xb59f3ec>, **keywords={'content_only': True, 'count_hit': False, 'omit_footnotes': True})

    1. 1062 # deprecated page, append last backup version to current contents
    2. 1063 # (which should be a short reason why the page is deprecated)
    3. 1064 request.theme.add_msg(_('The backed up content of this page is deprecated and will not be included in search results!'), "warning")
    4. 1065
    5. 1066 revisions = self.getRevList()
    • request = <MoinMoin.request.request_modpython.Request object at 0xacc274c>
    • request.theme = <MoinMoin.theme.modern.Theme instance at 0xb5b1d6c>
    • request.theme.add_msg = <bound method Theme.add_msg of <MoinMoin.theme.modern.Theme instance at 0xb5b1d6c>>
    • _ = <function <lambda> at 0xb51b7d4>
  15. /usr/local/lib/python2.5/site-packages/MoinMoin/theme/__init__.py in add_msg(self=<MoinMoin.theme.modern.Theme instance at 0xb5b1d6c>, msg='The backed up content of this page is deprecated and will not be included in search results!', msg_class='warning')

    1. 1524 msg_class = 'dialog'
    2. 1525 if self._send_title_called:
    3. 1526 raise Exception("You cannot call add_msg() after send_title()")
    4. 1527 self._status.append((msg, msg_class))
    5. 1528
    • builtin Exception = <type 'exceptions.Exception'>

Exception

You cannot call add_msg() after send_title()

  • args = ('You cannot call add_msg() after send_title()',)
  • message = 'You cannot call add_msg() after send_title()'

System Details

  • Date: Wed, 13 May 2009 14:31:43 +0000
  • Platform: Linux caretaker.inside 2.6.18-53.1.13.el5 #1 SMP Tue Feb 12 13:01:45 EST 2008 i686
  • Python: Python 2.5.2 (/usr/bin/python)
  • MoinMoin: Release 1.7.1 (release)