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.

  1. /webworks/wiki/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object at 0x5d43db0>)

    1. 1309 self.page.send_page()
    2. 1310 else:
    3. 1311 handler(self.page.page_name, self)
    4. 1312
    5. 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'
  2. /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)

    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. /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})

    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 0x62e8a58>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 0}
  4. /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})

    1. 1279
    2. 1280 if not (do_cache and self.canUseCache(Parser)):
    3. 1281 self.format(parser)
    4. 1282 else:
    5. 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>
  5. /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>)

    1. 1300 def format(self, parser):
    2. 1301 """ Format and write page content without caching """
    3. 1302 parser.format(self.formatter)
    4. 1303
    5. 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>
  6. /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)

    1. 1543
    2. 1544 # Scan line, format and write
    3. 1545 formatted_line = self.scan(line, inhibit_p=inhibit_p)
    4. 1546 self.request.write(formatted_line)
    5. 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
  7. /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)

    1. 1357 self.in_table or self.in_list):
    2. 1358 result.append(self.formatter.paragraph(1, css_class="line867"))
    3. 1359 result.append(self.replace(match, inhibit_p))
    4. 1360 end = match.end()
    5. 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
  8. /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)

    1. 1401 # Get replace method and replace hit
    2. 1402 replace_func = getattr(self, '_%s_repl' % type)
    3. 1403 result.append(replace_func(hit, match.groupdict()))
    4. 1404 return ''.join(result)
    5. 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>
  9. /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, ...})

    1. 1324 if self.macro is None:
    2. 1325 self.macro = macro.Macro(self)
    3. 1326 return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
    4. 1327 _macro_name_repl = _macro_repl
    5. 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>
  10. /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)>>')

    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 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'
  11. /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')

    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 0x1569330>
    • self = <MoinMoin.macro.Macro instance at 0x5f7e4e0>
    • args = u'markup=1, newerfirst=1, rows=4, cols=80, articleview=1, tablewidth=500, notify=1'
  12. /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')

    1. 190 # INITIALIZATION ----------------------------------------
    2. 191 getparams(args)
    3. 192 setglobalvalues(macro)
    4. 193
    5. 194 # internal variables
    • global setglobalvalues = <function setglobalvalues at 0x1569470>
    • macro = <MoinMoin.macro.Macro instance at 0x5f7e4e0>
  13. /Volumes/Projects-Wiki/wiki.wiki/data/plugin/macro/PageComment2.py in setglobalvalues (macro=<MoinMoin.macro.Macro instance at 0x5f7e4e0>)

    1. 495
    2. 496 for names in Globs.macroallowed:
    3. 497 macronames.remove(names)
    4. 498
    5. 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)