[Moin-user] Error Message - Formatting a text that is beeing formatted?

Marcel Häfner marcel.haefner at heavy.ch
Tue Nov 13 15:46:29 EST 2007


Hi there

I installed the Beta from MoinMoin 1.6.0 with the latest Xapian Search.
I running for testing this with a Twisted Webserver under
http://home.heavy.ch:8080

The Modern Theme works great...but if I'm changing to the latest
SimpleMente Theme (http://moinmo.in/ThemeMarket/SimpleMente ) I receive
from time-to-time an error message like: Formatting a text that is being
formatted? (see txt file with the traceback). But I cannot reproduce
it...

So my problem is I do not know if this is an error from the Theme or
just my misconfiguration or even goes to a MoinMoin Bug. Well, honestly
i believe in my fault. But I'm not a python-coder so maybe somebody
could tell me what went wrong.

thx for any help!

cya
Marcel



-------------- next part --------------
Exception

Formatting a text that is being formatted?!

If you want to report a bug, please save this page and attach it to your bug report.

    * Show debugging information
    * Report bug
    * Visit MoinMoin wiki

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.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_twisted.Request object at 0x89b578c>)
         1. 1225 self.page.send_page(msg=msg)
         2. 1226 else:
         3. 1227 handler(self.page.page_name, self)
         4. 1228
         5. 1229 # every action that didn't use to raise MoinMoinNoFooter must call this now:
          * handler = <function do_show at 0x884fa74>
          * self = <MoinMoin.request.request_twisted.Request object at 0x89b578c>
          * self.page = <MoinMoin.Page.Page object at 0x89b420c>
          * self.page.page_name = u'Lost and Found'
   2.

      /usr/lib/python2.5/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'Lost and Found', request=<MoinMoin.request.request_twisted.Request object at 0x89b578c>, content_only=0, count_hit=1, cacheable=1, print_mode=0)
         1. 237 count_hit=count_hit,
         2. 238 print_mode=print_mode,
         3. 239 content_only=content_only,
         4. 240 )
         5. 241
          * content_only = 0
   3.

      /usr/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0x89b4c4c>, msg='', **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})
         1. 1136 print_mode=print_mode,
         2. 1137 media=media, pi_refresh=pi.get('refresh'),
         3. 1138 allow_doubleclick=1, trail=trail,
         4. 1139 )
         5. 1140
          * allow_doubleclick undefined
          * trail = [u'Www:BenutzerEinstellungen', u'Www:Heavy', u"Www:Rock'n'Roll", u'Www:Latest News', u'Www:Lost and Found']
   4.

      /usr/lib/python2.5/site-packages/MoinMoin/theme/__init__.py in send_title (self=<wikiconfig.plugin.theme.simplemente.Theme instance at 0x89b40ec>, text=u'Lost and Found', **keywords={'allow_doubleclick': 1, 'media': 'screen', 'msg': '', 'page': <MoinMoin.Page.Page object at 0x89b4c4c>, 'pi_refresh': None, 'print_mode': 0, 'trail': [u'Www:BenutzerEinstellungen', u'Www:Heavy', u"Www:Rock'n'Roll", u'Www:Latest News', u'Www:Lost and Found']})
         1. 1666 output.append(self.editorheader(d))
         2. 1667 else:
         3. 1668 output.append(self.header(d))
         4. 1669
         5. 1670 # emit it
          * output = [u'\n<body ondblclick="location.href=\'/Lost%20and%20Found?action=edit\'" lang="de" dir="ltr">\n']
          * output.append = <built-in method append of list object at 0x89ae28c>
          * self = <wikiconfig.plugin.theme.simplemente.Theme instance at 0x89b40ec>
          * self.header = <bound method Theme.header of <wikiconfig.plugin.theme.simplemente.Theme instance at 0x89b40ec>>
          * d = {'available_actions': ['use self.request.availableActions(page)'], 'home_page': ('Self', u'MarcelH\xe4fner'), 'last_edit_info': {'editor': u'<span title="Marcel @ 192.168.1.1[192.168.1.1]">...192.168.1.1[192.168.1.1]">MarcelH\xe4fner</a></span>', 'time': '2007-11-07 23:30:40'}, 'logo_string': u'<span id="simple">www.</span><span id="mente">Heavy</span><span id="wiki">.ch</span>', 'msg': '', 'navibar': ['use self.navibar(d)'], 'page': <MoinMoin.Page.Page object at 0x89b4c4c>, 'page_find_page': u'SeiteFinden', 'page_front_page': u'Heavy', 'page_help_contents': u'HilfeInhalt', ...}
   5.

      /var/www/moin/data/plugin/theme/simplemente.py in header (self=<wikiconfig.plugin.theme.simplemente.Theme instance at 0x89b40ec>, d={'available_actions': ['use self.request.availableActions(page)'], 'home_page': ('Self', u'MarcelH\xe4fner'), 'last_edit_info': {'editor': u'<span title="Marcel @ 192.168.1.1[192.168.1.1]">...192.168.1.1[192.168.1.1]">MarcelH\xe4fner</a></span>', 'time': '2007-11-07 23:30:40'}, 'logo_string': u'<span id="simple">www.</span><span id="mente">Heavy</span><span id="wiki">.ch</span>', 'msg': '', 'navibar': ['use self.navibar(d)'], 'page': <MoinMoin.Page.Page object at 0x89b4c4c>, 'page_find_page': u'SeiteFinden', 'page_front_page': u'Heavy', 'page_help_contents': u'HilfeInhalt', ...})
         1. 168 u'<li><a href="#edit">%s</a></li>' % _('to the edit and actions menu'),
         2. 169 u'<li><a href="#nav">%s</a></li>' % _('to the navigation and search menu'),
         3. 170 self.trailSkipLink(d),
         4. 171 u'<li><a href="#user">%s</a></li>' % _('or to the personalization menu'),
         5. 172 u'</ul>',
          * self = <wikiconfig.plugin.theme.simplemente.Theme instance at 0x89b40ec>
          * self.trailSkipLink = <bound method Theme.trailSkipLink of <wikiconfig...n.theme.simplemente.Theme instance at 0x89b40ec>>
          * d = {'available_actions': ['use self.request.availableActions(page)'], 'home_page': ('Self', u'MarcelH\xe4fner'), 'last_edit_info': {'editor': u'<span title="Marcel @ 192.168.1.1[192.168.1.1]">...192.168.1.1[192.168.1.1]">MarcelH\xe4fner</a></span>', 'time': '2007-11-07 23:30:40'}, 'logo_string': u'<span id="simple">www.</span><span id="mente">Heavy</span><span id="wiki">.ch</span>', 'msg': '', 'navibar': ['use self.navibar(d)'], 'page': <MoinMoin.Page.Page object at 0x89b4c4c>, 'page_find_page': u'SeiteFinden', 'page_front_page': u'Heavy', 'page_help_contents': u'HilfeInhalt', ...}
   6.

      /var/www/moin/data/plugin/theme/simplemente.py in trailSkipLink (self=<wikiconfig.plugin.theme.simplemente.Theme instance at 0x89b40ec>, d={'available_actions': ['use self.request.availableActions(page)'], 'home_page': ('Self', u'MarcelH\xe4fner'), 'last_edit_info': {'editor': u'<span title="Marcel @ 192.168.1.1[192.168.1.1]">...192.168.1.1[192.168.1.1]">MarcelH\xe4fner</a></span>', 'time': '2007-11-07 23:30:40'}, 'logo_string': u'<span id="simple">www.</span><span id="mente">Heavy</span><span id="wiki">.ch</span>', 'msg': '', 'navibar': ['use self.navibar(d)'], 'page': <MoinMoin.Page.Page object at 0x89b4c4c>, 'page_find_page': u'SeiteFinden', 'page_front_page': u'Heavy', 'page_help_contents': u'HilfeInhalt', ...})
         1. 1152 html = ''
         2. 1153 if user.valid and user.show_page_trail:
         3. 1154 html = u'<li class="help"><a href="#trail">%s</a></li>' % _('to the recently viewed pages'),
         4. 1155 return u'\n'.join(html)
         5. 1156
          * html = ''
          * _ = <function <lambda> at 0x899dcdc>
   7.

      /usr/lib/python2.5/site-packages/MoinMoin/request/__init__.py in (text='to the recently viewed pages', i18n=<module 'MoinMoin.i18n' from '/usr/lib/python2.5/site-packages/MoinMoin/i18n/__init__.pyc'>, request=<MoinMoin.request.request_twisted.Request object at 0x89b578c>, lang=u'de', **kv={})
         1. 237 # but generated content like search results should use the user language.
         2. 238 self.content_lang = self.cfg.language_default
         3. 239 self.getText = lambda text, i18n=self.i18n, request=self, lang=self.lang, **kv: i18n.getText(text, request, lang, **kv)
         4. 240
         5. 241 self.reset()
          * self undefined
          * text = 'to the recently viewed pages'
          * i18n = <module 'MoinMoin.i18n' from '/usr/lib/python2.5/site-packages/MoinMoin/i18n/__init__.pyc'>
          * request = <MoinMoin.request.request_twisted.Request object at 0x89b578c>
          * lang = u'de'
          * kv = {}
          * i18n.getText = <function getText at 0x86db144>
   8.

      /usr/lib/python2.5/site-packages/MoinMoin/i18n/__init__.py in getText(original='to the recently viewed pages', request=<MoinMoin.request.request_twisted.Request object at 0x89b578c>, lang=u'de', **kw={})
         1. 271 # on the fly (this is needed for cfg.editor_quickhelp).
         2. 272 if lang != 'en':
         3. 273 translated = getText(original, request, 'en', formatted=formatted, percent=percent)
         4. 274 elif formatted:
         5. 275 translated = translations[lang].formatMarkup(request, original, percent)
          * translated = 'to the recently viewed pages'
          * global getText = <function getText at 0x86db144>
          * original = 'to the recently viewed pages'
          * request = <MoinMoin.request.request_twisted.Request object at 0x89b578c>
          * formatted = True
          * percent = False
   9.

      /usr/lib/python2.5/site-packages/MoinMoin/i18n/__init__.py in getText (original='to the recently viewed pages', request=<MoinMoin.request.request_twisted.Request object at 0x89b578c>, lang='en', **kw={'formatted': True, 'percent': False})
         1. 273 translated = getText(original, request, 'en', formatted=formatted, percent=percent)
         2. 274 elif formatted:
         3. 275 translated = translations[lang].formatMarkup(request, original, percent)
         4. 276 return translated
         5. 277
          * translated = 'to the recently viewed pages'
          * global translations = {'de': <MoinMoin.i18n.Translation object at 0x885bb8c>, 'en': <MoinMoin.i18n.Translation object at 0x88709ac>}
          * lang = 'en'
          * ].formatMarkup undefined
          * request = <MoinMoin.request.request_twisted.Request object at 0x89b578c>
          * original = 'to the recently viewed pages'
          * percent = False
  10.

      /usr/lib/python2.5/site-packages/MoinMoin/i18n/__init__.py in formatMarkup (self=<MoinMoin.i18n.Translation object at 0x88709ac>, request=<MoinMoin.request.request_twisted.Request object at 0x89b578c>, text='to the recently viewed pages', percent=False, currentStack=[])
         1. 146 try:
         2. 147 currentStack.index(text)
         3. 148 raise Exception("Formatting a text that is being formatted?!")
         4. 149 except ValueError:
         5. 150 pass
          * builtin Exception = <type 'exceptions.Exception'>

Exception

Formatting a text that is being formatted?!

    * args = ('Formatting a text that is being formatted?!',)
    * message = 'Formatting a text that is being formatted?!'

System Details

    * Date: Tue, 13 Nov 2007 20:30:00 +0000
    * Platform: Linux marius.vampyre.home 2.6.22.9-91.fc7 #1 SMP Thu Sep 27 23:10:59 EDT 2007 i686
    * Python: Python 2.5 (/usr/bin/python)
    * MoinMoin: Release 1.6.0beta1 (release)




More information about the Moin-user mailing list