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.4/site-packages/MoinMoin/request.py
in run
(self=<MoinMoin.request.RequestCGI object>)
- 1086 from MoinMoin.wikiaction import getHandler
- 1087 handler = getHandler(self, action)
- 1088 handler(self.page.page_name, self)
- 1089
- 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'
/usr/local/lib/python2.4/site-packages/MoinMoin/wikiaction.py
in do_edit
(pagename=u'WikiSandBox', request=<MoinMoin.request.RequestCGI object>)
- 620 request.form.has_key('button_spellcheck') or
- 621 request.form.has_key('button_newwords')):
- 622 pg.sendEditor(preview=savetext, comment=comment)
- 623
- 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''
/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'})
- 286 self.formatter = Formatter(request)
- 287 self.formatter.page = self
- 288 output = request.redirectedOutput(self.send_page_content, request, Parser, raw_body, do_cache=False)
- 289 output = repr(output)
- 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
/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})
- 680 self.redirect(buffer)
- 681 try:
- 682 function(*args, **kw)
- 683 finally:
- 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}
/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={})
- 1304
- 1305 if not (do_cache and self.canUseCache(Parser)):
- 1306 self.format(parser)
- 1307 else:
- 1308 try:
- self
= <MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>
- self.format
= <bound method PageGraphicalEditor.format of <Moi...ageGraphicalEditor.PageGraphicalEditor instance>>
- parser
= <MoinMoin.parser.wiki.Parser instance>
/usr/local/lib/python2.4/site-packages/MoinMoin/Page.py
in format
(self=<MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>, parser=<MoinMoin.parser.wiki.Parser instance>)
- 1321 def format(self, parser):
- 1322 """ Format and write page content without caching """
- 1323 parser.format(self.formatter)
- 1324
- 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>
/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>)
- 1091
- 1092 # Scan line, format and write
- 1093 formatted_line = self.scan(scan_re, line)
- 1094 self.request.write(formatted_line)
- 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|| || '
/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||
|| ')
- 877
- 878 # Replace match with markup
- 879 result.append(self.replace(match))
- 880 lastpos = match.end()
- 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>
/usr/local/lib/python2.4/site-packages/MoinMoin/parser/wiki.py
in replace
(self=<MoinMoin.parser.wiki.Parser instance>, match=<_sre.SRE_Match object>)
- 906 # Get replace method and replece hit
- 907 replace = getattr(self, '_' + type + '_repl')
- 908 result.append(replace(hit))
- 909 return ''.join(result)
- 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">'
/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">')
- 742
- 743 # return the complete cell markup
- 744 result.append(self.formatter.table_cell(1, attrs) + attrerr)
- 745 return ''.join(result)
- 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
= ''
/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={})
- 1334 attrs = self._checkTableAttr(attrs, '')
- 1335 return ' ' + self._open(tag, attr=attrs,
- 1336 allowed_attrs=self._allowed_table_attrs[''],
- 1337 **kw)
- 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']}
/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={})
- 341
- 342 # Format
- 343 attributes = self._formatAttributes(attributes, allowed_attrs=allowed_attrs, **kw)
- 344 result.append('<%s%s%s>' % (tag, attributes, is_self_closing))
- 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
= {}
/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={})
- 287 # Unknown or unallowed attribute.
- 288 err = 'Illegal HTML attribute "%s" passed to formatter' % name
- 289 raise ValueError(err)
- 290
- 291 # Finally, format them all as a single string.
- builtin
ValueError
= <class exceptions.ValueError>
- err
= 'Illegal HTML attribute "bgcolor" passed to formatter'