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.
/usr/local/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_modpython.Request object at 0xacc274c>)
- 1305 self.page.send_page()
- 1306 else:
- 1307 handler(self.page.page_name, self)
- 1308
- 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'
/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>)
- 183
- 184 # sets revision number to default for further actions
- 185 request.rev = 0
- 186 request.theme.add_msg(savemsg, "info")
- 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>>
/usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0xacc374c>, **keywords={})
- 1195 format_args=pi['formatargs'],
- 1196 do_cache=do_cache,
- 1197 start_line=pi['lines'])
- 1198
- 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}
/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})
- 1289 try:
- 1290 code = self.makeCache(request, parser)
- 1291 self.execute(request, parser, code)
- 1292 except Exception, e:
- 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>
/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>)
- 1314 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
- 1315 try:
- 1316 exec code
- 1317 except "CacheNeedsUpdate": # convert the exception
- 1318 raise Exception("CacheNeedsUpdate")
- code = <code object <module> at 0xb434f08, file "Cc2SvnBridge/PreReleaseBugs", line 2>
/Cc2SvnBridge/PreReleaseBugs in
() /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()>>')
- 312 # call the macro
- 313 try:
- 314 return macro_obj.execute(name, args)
- 315 except ImportError, err:
- 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''
/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'')
- 126 else:
- 127 raise ImportError("Cannot load macro %s" % macro_name)
- 128 return execute(self, args)
- 129
- 130 def _m_lang(self, text):
- execute = <function <lambda> at 0xb423cdc>
- self = <MoinMoin.macro.Macro instance at 0xacd686c>
- args = u''
/usr/local/lib/python2.5/site-packages/MoinMoin/macro/__init__.py in
(_self=<MoinMoin.macro.Macro instance at 0xacd686c>, _args=u'') - 113 call = wikiutil.importPlugin(self.cfg, 'macro', macro_name,
- 114 function='macro_%s' % macro_name)
- 115 execute = lambda _self, _args: _self._wrap(call, _args, [self])
- 116 except wikiutil.PluginAttributeError:
- 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>
/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>])
- 95 try:
- 96 return wikiutil.invoke_extension_function(self.request, function,
- 97 args, fixed)
- 98 except ValueError, e:
- 99 return self.format_error(e)
- args = u''
- fixed = [<MoinMoin.macro.Macro instance at 0xacd686c>]
/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>])
- 1982 kwargs_to_pass.keys()[0]))
- 1983
- 1984 return function(*fixed_args, **kwargs)
- 1985
- 1986
- function = <function macro_TableOfContents at 0xa77e304>
- fixed_args = [<MoinMoin.macro.Macro instance at 0xacd686c>]
- kwargs = {'maxdepth': None}
/usr/local/lib/python2.5/site-packages/MoinMoin/macro/TableOfContents.py in macro_TableOfContents (macro=<MoinMoin.macro.Macro instance at 0xacd686c>, maxdepth=99)
- 153 content_only=True,
- 154 count_hit=False,
- 155 omit_footnotes=True)
- 156
- 157 _ = macro.request.getText
- omit_footnotes undefined
- builtin True = True
/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})
- 842 self.redirect(buf)
- 843 try:
- 844 function(*args, **kw)
- 845 finally:
- 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}
/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})
- 1062 # deprecated page, append last backup version to current contents
- 1063 # (which should be a short reason why the page is deprecated)
- 1064 request.theme.add_msg(_('The backed up content of this page is deprecated and will not be included in search results!'), "warning")
- 1065
- 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>
/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')
- 1524 msg_class = 'dialog'
- 1525 if self._send_title_called:
- 1526 raise Exception("You cannot call add_msg() after send_title()")
- 1527 self._status.append((msg, msg_class))
- 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)