ePublisher 9.3
--> -->
ValueError
list.remove(x): x not in list
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.
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object at 0x5d43db0>)
- 1309 self.page.send_page()
- 1310 else:
- 1311 handler(self.page.page_name, self)
- 1312
- 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
- handler = <function do_show at 0x1352eb0>
- self = <MoinMoin.request.request_wsgi.Request object at 0x5d43db0>
- self.page = <MoinMoin.Page.Page object at 0x5d43bf0>
- self.page.page_name = u'DevCenter/Documentation/ePublisher_9.3'
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'DevCenter/Documentation/ePublisher_9.3', request=<MoinMoin.request.request_wsgi.Request object at 0x5d43db0>, content_only=0, count_hit=1, cacheable=1, print_mode=0)
- 251 count_hit=count_hit,
- 252 print_mode=print_mode,
- 253 content_only=content_only,
- 254 )
- 255
- content_only = 0
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0x5d431f0>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})
- 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 0x62e8a58>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 0}
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0x5d431f0>, request=<MoinMoin.request.request_wsgi.Request object at 0x5d43db0>, body=u'=== ePublisher 9.3 ===\n\n<<Navitree(childtree)>>\n...s=80, articleview=1, tablewidth=500, notify=1)>>\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 0})
- 1279
- 1280 if not (do_cache and self.canUseCache(Parser)):
- 1281 self.format(parser)
- 1282 else:
- 1283 try:
- self = <MoinMoin.Page.Page object at 0x5d431f0>
- self.format = <bound method Page.format of <MoinMoin.Page.Page object at 0x5d431f0>>
- parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f7e6c0>
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/Page.py in format (self=<MoinMoin.Page.Page object at 0x5d431f0>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f7e6c0>)
- 1300 def format(self, parser):
- 1301 """ Format and write page content without caching """
- 1302 parser.format(self.formatter)
- 1303
- 1304 def execute(self, request, parser, code):
- parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f7e6c0>
- parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f7e6c0>>
- self = <MoinMoin.Page.Page object at 0x5d431f0>
- self.formatter = <MoinMoin.formatter.text_html.Formatter instance at 0x5f7e198>
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in format (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f7e6c0>, formatter=<MoinMoin.formatter.text_html.Formatter instance at 0x5f7e198>, inhibit_p=False)
- 1543
- 1544 # Scan line, format and write
- 1545 formatted_line = self.scan(line, inhibit_p=inhibit_p)
- 1546 self.request.write(formatted_line)
- 1547
- formatted_line = u'<p class="line867"><hr /><p class="line874"> '
- self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f7e6c0>
- self.scan = <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f7e6c0>>
- line = u'<<PageComment2(markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1)>> '
- inhibit_p = False
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in scan (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f7e6c0>, line=u'<<PageComment2(markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1)>> ', inhibit_p=False)
- 1357 self.in_table or self.in_list):
- 1358 result.append(self.formatter.paragraph(1, css_class="line867"))
- 1359 result.append(self.replace(match, inhibit_p))
- 1360 end = match.end()
- 1361 lastpos = end
- result = ['<p class="line867">']
- result.append = <built-in method append of list object at 0x5f7e300>
- self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f7e6c0>
- self.replace = <bound method Parser.replace of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f7e6c0>>
- match = <_sre.SRE_Match object at 0x1af3a00>
- inhibit_p = False
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in replace (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f7e6c0>, match=<_sre.SRE_Match object at 0x1af3a00>, inhibit_p=False)
- 1401 # Get replace method and replace hit
- 1402 replace_func = getattr(self, '_%s_repl' % type)
- 1403 result.append(replace_func(hit, match.groupdict()))
- 1404 return ''.join(result)
- 1405 else:
- result = []
- result.append = <built-in method append of list object at 0x5f7e3a0>
- replace_func = <bound method Parser._macro_repl of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f7e6c0>>
- hit = u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1'
- match = <_sre.SRE_Match object at 0x1af3a00>
- match.groupdict = <built-in method groupdict of _sre.SRE_Match object at 0x1af3a00>
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in _macro_repl (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f7e6c0>, word=u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1', 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, ...})
- 1324 if self.macro is None:
- 1325 self.macro = macro.Macro(self)
- 1326 return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
- 1327 _macro_name_repl = _macro_repl
- 1328 _macro_args_repl = _macro_repl
- self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x5f7e6c0>
- self.formatter = <MoinMoin.formatter.text_html.Formatter instance at 0x5f7e198>
- self.formatter.macro = <bound method Formatter.macro of <MoinMoin.formatter.text_html.Formatter instance at 0x5f7e198>>
- self.macro = <MoinMoin.macro.Macro instance at 0x5f7e4e0>
- macro_name = u'PageComment2'
- macro_args = u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1'
- 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 0x42a4ed0>
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/formatter/__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0x5f7e198>, macro_obj=<MoinMoin.macro.Macro instance at 0x5f7e4e0>, name=u'PageComment2', args=u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1', markup=u'<<PageComment2(markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1)>>')
- 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 0x5f7e4e0>
- macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance at 0x5f7e4e0>>
- name = u'PageComment2'
- args = u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1'
/webworks/wiki/lib/python2.5/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance at 0x5f7e4e0>, macro_name=u'PageComment2', args=u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1')
- 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 execute at 0x1569330>
- self = <MoinMoin.macro.Macro instance at 0x5f7e4e0>
- args = u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1'
/Volumes/Projects-Wiki/wiki.wiki/data/plugin/macro/PageComment2.py in execute (macro=<MoinMoin.macro.Macro instance at 0x5f7e4e0>, args=u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1')
- 190 # INITIALIZATION ----------------------------------------
- 191 getparams(args)
- 192 setglobalvalues(macro)
- 193
- 194 # internal variables
- global setglobalvalues = <function setglobalvalues at 0x1569470>
- macro = <MoinMoin.macro.Macro instance at 0x5f7e4e0>
/Volumes/Projects-Wiki/wiki.wiki/data/plugin/macro/PageComment2.py in setglobalvalues (macro=<MoinMoin.macro.Macro instance at 0x5f7e4e0>)
- 495
- 496 for names in Globs.macroallowed:
- 497 macronames.remove(names)
- 498
- 499 # ADD REGEX PATTERN HERE TO MAKE IT FORBIDDEN TO USE IN MARKUP:
- macronames = ['TitleSearch', 'WordIndex', 'TitleIndex', 'GoTo', 'Anchor', 'GetVal', 'TemplateList', 'el', 'en', 'zh', 'vi', 'ca', 'it', 'ar', 'pt-br', 'cs', 'gl', 'id', 'es', 'ru', ...]
- macronames.remove = <built-in method remove of list object at 0x3ee2a80>
- names = 'BR'
ValueError
list.remove(x): x not in list
- args = ('list.remove(x): x not in list',)
- message = 'list.remove(x): x not in list'
System Details
- Date: Sat, 04 Jul 2009 00:13:51 +0000
- Platform: Darwin twinfalls 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386
- Python: Python 2.5.2 (/webworks/wiki/bin/python)
- MoinMoin: Release 1.8.0 (release)
