Attachment 'traceback.html'

Download

ValueError

Illegal HTML attribute "bgcolor" passed to formatter

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.4/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestCGI object>)

    1. 1086 from MoinMoin.wikiaction import getHandler
    2. 1087 handler = getHandler(self, action)
    3. 1088 handler(self.page.page_name, self)
    4. 1089
    5. 1090 # 5. Or redirect to another page
    • handler = <function do_edit>
    • self = <MoinMoin.request.RequestCGI object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.page_name = u'WikiSandBox'
  2. /usr/local/lib/python2.4/site-packages/MoinMoin/wikiaction.py in do_edit (pagename=u'WikiSandBox', request=<MoinMoin.request.RequestCGI object>)

    1. 620 request.form.has_key('button_spellcheck') or
    2. 621 request.form.has_key('button_newwords')):
    3. 622 pg.sendEditor(preview=savetext, comment=comment)
    4. 623
    5. 624 # Preview with mode switch
    • pg = <MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>
    • pg.sendEditor = <bound method PageGraphicalEditor.sendEditor of ...ageGraphicalEditor.PageGraphicalEditor instance>>
    • preview undefined
    • savetext = u'## Please edit system and help pages ONLY in the...4 ====\n== Sample calendar ==\n[[MonthCalendar()]]\n'
    • comment = u''
  3. /usr/local/lib/python2.4/site-packages/MoinMoin/PageGraphicalEditor.py in sendEditor (self=<MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>, **kw={'comment': u'', 'preview': u'## Please edit system and help pages ONLY in the...4 ====\n== Sample calendar ==\n[[MonthCalendar()]]\n'})

    1. 286 self.formatter = Formatter(request)
    2. 287 self.formatter.page = self
    3. 288 output = request.redirectedOutput(self.send_page_content, request, Parser, raw_body, do_cache=False)
    4. 289 output = repr(output)
    5. 290 if output[0] == 'u':
    • output undefined
    • request = <MoinMoin.request.RequestCGI object>
    • request.redirectedOutput = <bound method RequestCGI.redirectedOutput of <MoinMoin.request.RequestCGI object>>
    • self = <MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>
    • self.send_page_content = <bound method PageGraphicalEditor.send_page_cont...ageGraphicalEditor.PageGraphicalEditor instance>>
    • global Parser = <class MoinMoin.parser.wiki.Parser>
    • raw_body = u'## Please edit system and help pages ONLY in the...4 ====\n== Sample calendar ==\n[[MonthCalendar()]]\n'
    • do_cache undefined
    • builtin False = False
  4. /usr/local/lib/python2.4/site-packages/MoinMoin/request.py in redirectedOutput (self=<MoinMoin.request.RequestCGI object>, function=<bound method PageGraphicalEditor.send_page_cont...ageGraphicalEditor.PageGraphicalEditor instance>>, *args=(<MoinMoin.request.RequestCGI object>, <class MoinMoin.parser.wiki.Parser>, u'## Please edit system and help pages ONLY in the...4 ====\n== Sample calendar ==\n[[MonthCalendar()]]\n'), **kw={'do_cache': False})

    1. 680 self.redirect(buffer)
    2. 681 try:
    3. 682 function(*args, **kw)
    4. 683 finally:
    5. 684 self.redirect()
    • function = <bound method PageGraphicalEditor.send_page_cont...ageGraphicalEditor.PageGraphicalEditor instance>>
    • args = (<MoinMoin.request.RequestCGI object>, <class MoinMoin.parser.wiki.Parser>, u'## Please edit system and help pages ONLY in the...4 ====\n== Sample calendar ==\n[[MonthCalendar()]]\n')
    • kw = {'do_cache': False}
  5. /usr/local/lib/python2.4/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>, request=<MoinMoin.request.RequestCGI object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u'## Please edit system and help pages ONLY in the...4 ====\n== Sample calendar ==\n[[MonthCalendar()]]\n', format_args='', do_cache=False, **kw={})

    1. 1304
    2. 1305 if not (do_cache and self.canUseCache(Parser)):
    3. 1306 self.format(parser)
    4. 1307 else:
    5. 1308 try:
    • self = <MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>
    • self.format = <bound method PageGraphicalEditor.format of <Moi...ageGraphicalEditor.PageGraphicalEditor instance>>
    • parser = <MoinMoin.parser.wiki.Parser instance>
  6. /usr/local/lib/python2.4/site-packages/MoinMoin/Page.py in format (self=<MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>, parser=<MoinMoin.parser.wiki.Parser instance>)

    1. 1321 def format(self, parser):
    2. 1322 """ Format and write page content without caching """
    3. 1323 parser.format(self.formatter)
    4. 1324
    5. 1325 def execute(self, request, parser, code):
    • parser = <MoinMoin.parser.wiki.Parser instance>
    • parser.format = <bound method Parser.format of <MoinMoin.parser.wiki.Parser instance>>
    • self = <MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>
    • self.formatter = <MoinMoin.formatter.text_gedit.Formatter instance>
  7. /usr/local/lib/python2.4/site-packages/MoinMoin/parser/wiki.py in format (self=<MoinMoin.parser.wiki.Parser instance>, formatter=<MoinMoin.formatter.text_gedit.Formatter instance>)

    1. 1091
    2. 1092 # Scan line, format and write
    3. 1093 formatted_line = self.scan(scan_re, line)
    4. 1094 self.request.write(formatted_line)
    5. 1095
    • formatted_line = u'</p><h3>Formatting</h3>'
    • self = <MoinMoin.parser.wiki.Parser instance>
    • self.scan = <bound method Parser.scan of <MoinMoin.parser.wiki.Parser instance>>
    • scan_re = <_sre.SRE_Pattern object>
    • line = u'||<tablewidth="200px" tablealign=""bgcolor="#00cc33">a|| || '
  8. /usr/local/lib/python2.4/site-packages/MoinMoin/parser/wiki.py in scan (self=<MoinMoin.parser.wiki.Parser instance>, scan_re=<_sre.SRE_Pattern object>, line=u'||<tablewidth="200px" tablealign=""bgcolor="#00cc33">a|| || ')

    1. 877
    2. 878 # Replace match with markup
    3. 879 result.append(self.replace(match))
    4. 880 lastpos = match.end()
    5. 881
    • result = []
    • result.append = <built-in method append of list object>
    • self = <MoinMoin.parser.wiki.Parser instance>
    • self.replace = <bound method Parser.replace of <MoinMoin.parser.wiki.Parser instance>>
    • match = <_sre.SRE_Match object>
  9. /usr/local/lib/python2.4/site-packages/MoinMoin/parser/wiki.py in replace (self=<MoinMoin.parser.wiki.Parser instance>, match=<_sre.SRE_Match object>)

    1. 906 # Get replace method and replece hit
    2. 907 replace = getattr(self, '_' + type + '_repl')
    3. 908 result.append(replace(hit))
    4. 909 return ''.join(result)
    5. 910 else:
    • result = []
    • result.append = <built-in method append of list object>
    • replace = <bound method Parser._table_repl of <MoinMoin.parser.wiki.Parser instance>>
    • hit = u'||<tablewidth="200px" tablealign=""bgcolor="#00cc33">'
  10. /usr/local/lib/python2.4/site-packages/MoinMoin/parser/wiki.py in _table_repl (self=<MoinMoin.parser.wiki.Parser instance>, word=u'||<tablewidth="200px" tablealign=""bgcolor="#00cc33">')

    1. 742
    2. 743 # return the complete cell markup
    3. 744 result.append(self.formatter.table_cell(1, attrs) + attrerr)
    4. 745 return ''.join(result)
    5. 746 else:
    • result = ['<tr>']
    • result.append = <built-in method append of list object>
    • self = <MoinMoin.parser.wiki.Parser instance>
    • self.formatter = <MoinMoin.formatter.text_gedit.Formatter instance>
    • self.formatter.table_cell = <bound method Formatter.table_cell of <MoinMoin.formatter.text_gedit.Formatter instance>>
    • attrs = {u'bgcolor': u'"#00cc33"', u'tablealign': u'""', u'tablewidth': u'"200px"'}
    • attrerr = ''
  11. /usr/local/lib/python2.4/site-packages/MoinMoin/formatter/text_html.py in table_cell (self=<MoinMoin.formatter.text_gedit.Formatter instance>, on=1, attrs={'bgcolor': u'#00cc33', 'style': u''}, **kw={})

    1. 1334 attrs = self._checkTableAttr(attrs, '')
    2. 1335 return ' ' + self._open(tag, attr=attrs,
    3. 1336 allowed_attrs=self._allowed_table_attrs[''],
    4. 1337 **kw)
    5. 1338 return self._close(tag) + '\n'
    • allowed_attrs undefined
    • self = <MoinMoin.formatter.text_gedit.Formatter instance>
    • self._allowed_table_attrs = {'': ['colspan', 'rowspan', 'class', 'id', 'style'], 'row': ['class', 'id', 'style'], 'table': ['class', 'id', 'style']}
  12. /usr/local/lib/python2.4/site-packages/MoinMoin/formatter/text_html.py in _open (self=<MoinMoin.formatter.text_gedit.Formatter instance>, tag='td', newline=False, attr={'bgcolor': u'#00cc33', 'style': u''}, allowed_attrs=['colspan', 'rowspan', 'class', 'id', 'style'], **kw={})

    1. 341
    2. 342 # Format
    3. 343 attributes = self._formatAttributes(attributes, allowed_attrs=allowed_attrs, **kw)
    4. 344 result.append('<%s%s%s>' % (tag, attributes, is_self_closing))
    5. 345 if newline:
    • attributes = {'bgcolor': u'#00cc33', 'style': u''}
    • self = <MoinMoin.formatter.text_gedit.Formatter instance>
    • self._formatAttributes = <bound method Formatter._formatAttributes of <MoinMoin.formatter.text_gedit.Formatter instance>>
    • allowed_attrs = ['colspan', 'rowspan', 'class', 'id', 'style']
    • kw = {}
  13. /usr/local/lib/python2.4/site-packages/MoinMoin/formatter/text_html.py in _formatAttributes (self=<MoinMoin.formatter.text_gedit.Formatter instance>, attr={'bgcolor': u'#00cc33', 'style': u''}, allowed_attrs=['colspan', 'rowspan', 'class', 'id', 'style'], **kw={})

    1. 287 # Unknown or unallowed attribute.
    2. 288 err = 'Illegal HTML attribute "%s" passed to formatter' % name
    3. 289 raise ValueError(err)
    4. 290
    5. 291 # Finally, format them all as a single string.
    • builtin ValueError = <class exceptions.ValueError>
    • err = 'Illegal HTML attribute "bgcolor" passed to formatter'

ValueError

Illegal HTML attribute "bgcolor" passed to formatter

  • args = ('Illegal HTML attribute "bgcolor" passed to formatter',)

System Details

  • Date: Sat, 18 Mar 2006 00:53:29 +0000
  • Platform: Linux mercury.kgnu.net 2.6.12-10-386 #1 Thu Dec 22 11:37:10 UTC 2005 i686
  • Python: Python 2.4.2 (/usr/bin/python)
  • MoinMoin: Release 1.5.2 (release)

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2006-03-18 01:03:22, 47.5 KB) [[attachment:traceback.html]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.