A problem occurred in a Python script. Here is the
sequence of function calls leading up to the error, in the
order they occurred.
/org/moin_tw/moin-1.5/MoinMoin/request.py
in run
(self=<MoinMoin.request.RequestTwisted object>)
- 1137 from MoinMoin.wikiaction import getHandler
- 1138 handler = getHandler(self, action)
- 1139 handler(self.page.page_name, self)
- 1140
- 1141 # 5. Or redirect to another page
- handler
= <function do_edit>
- self
= <MoinMoin.request.RequestTwisted object>
- self.page
= <MoinMoin.Page.Page instance>
- self.page.page_name
= u'WikiSandBox'
/org/moin_tw/moin-1.5/MoinMoin/wikiaction.py
in do_edit
(pagename=u'WikiSandBox', request=<MoinMoin.request.RequestTwisted object>)
- 624 # Preview with mode switch
- 625 elif request.form.has_key('button_switch'):
- 626 pg.sendEditor(preview=savetext, comment=comment, staytop=1)
- 627
- 628 # Save new text
- 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... ====\n\n||<style="width: 40%;"> hello || world ||\n'
- comment
= u''
- staytop undefined
/org/moin_tw/moin-1.5/MoinMoin/PageGraphicalEditor.py
in sendEditor
(self=<MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>, **kw={'comment': u'', 'preview': u'## Please edit system and help pages ONLY in the... ====\n\n||<style="width: 40%;"> hello || world ||\n', 'staytop': 1})
- 285 self.formatter = Formatter(request)
- 286 self.formatter.page = self
- 287 output = request.redirectedOutput(self.send_page_content, request, Parser, raw_body, do_cache=False)
- 288 output = repr(output)
- 289 if output[0] == 'u':
- output undefined
- request
= <MoinMoin.request.RequestTwisted object>
- request.redirectedOutput
= <bound method RequestTwisted.redirectedOutput of <MoinMoin.request.RequestTwisted 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... ====\n\n||<style="width: 40%;"> hello || world ||\n'
- do_cache undefined
- builtin
False
= False
/org/moin_tw/moin-1.5/MoinMoin/request.py
in redirectedOutput
(self=<MoinMoin.request.RequestTwisted object>, function=<bound method PageGraphicalEditor.send_page_cont...ageGraphicalEditor.PageGraphicalEditor instance>>, *args=(<MoinMoin.request.RequestTwisted object>, <class MoinMoin.parser.wiki.Parser>, u'## Please edit system and help pages ONLY in the... ====\n\n||<style="width: 40%;"> hello || world ||\n'), **kw={'do_cache': False})
- 716 self.redirect(buffer)
- 717 try:
- 718 function(*args, **kw)
- 719 finally:
- 720 self.redirect()
- function
= <bound method PageGraphicalEditor.send_page_cont...ageGraphicalEditor.PageGraphicalEditor instance>>
- args
= (<MoinMoin.request.RequestTwisted object>, <class MoinMoin.parser.wiki.Parser>, u'## Please edit system and help pages ONLY in the... ====\n\n||<style="width: 40%;"> hello || world ||\n')
- kw
= {'do_cache': False}
/org/moin_tw/moin-1.5/MoinMoin/Page.py
in send_page_content
(self=<MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>, request=<MoinMoin.request.RequestTwisted object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u'## Please edit system and help pages ONLY in the... ====\n\n||<style="width: 40%;"> hello || world ||\n', format_args='', do_cache=False, **kw={})
- 1312
- 1313 if not (do_cache and self.canUseCache(Parser)):
- 1314 self.format(parser)
- 1315 else:
- 1316 try:
- self
= <MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>
- self.format
= <bound method PageGraphicalEditor.format of <Moi...ageGraphicalEditor.PageGraphicalEditor instance>>
- parser
= <MoinMoin.parser.wiki.Parser instance>
/org/moin_tw/moin-1.5/MoinMoin/Page.py
in format
(self=<MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>, parser=<MoinMoin.parser.wiki.Parser instance>)
- 1329 def format(self, parser):
- 1330 """ Format and write page content without caching """
- 1331 parser.format(self.formatter)
- 1332
- 1333 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>
/org/moin_tw/moin-1.5/MoinMoin/parser/wiki.py
in format
(self=<MoinMoin.parser.wiki.Parser instance>, formatter=<MoinMoin.formatter.text_gedit.Formatter instance>)
- 1104
- 1105 # Scan line, format and write
- 1106 formatted_line = self.scan(scan_re, line)
- 1107 self.request.write(formatted_line)
- 1108
- formatted_line
= u'<h5>Heading 5</h5>'
- 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'||<style="width: 40%;"> hello || world || '
/org/moin_tw/moin-1.5/MoinMoin/parser/wiki.py
in scan
(self=<MoinMoin.parser.wiki.Parser instance>, scan_re=<_sre.SRE_Pattern object>, line=u'||<style="width: 40%;"> hello || world || ')
- 890
- 891 # Replace match with markup
- 892 result.append(self.replace(match))
- 893 lastpos = match.end()
- 894
- 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>
/org/moin_tw/moin-1.5/MoinMoin/parser/wiki.py
in replace
(self=<MoinMoin.parser.wiki.Parser instance>, match=<_sre.SRE_Match object>)
- 919 # Get replace method and replece hit
- 920 replace = getattr(self, '_' + type + '_repl')
- 921 result.append(replace(hit))
- 922 return ''.join(result)
- 923 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'||<style="width: 40%;">'
/org/moin_tw/moin-1.5/MoinMoin/parser/wiki.py
in _table_repl
(self=<MoinMoin.parser.wiki.Parser instance>, word=u'||<style="width: 40%;">')
- 755
- 756 # return the complete cell markup
- 757 result.append(self.formatter.table_cell(1, attrs) + attrerr)
- 758 return ''.join(result)
- 759 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'style': u'"width: 40%;"'}
- attrerr
= ''
/org/moin_tw/moin-1.5/MoinMoin/formatter/text_html.py
in table_cell
(self=<MoinMoin.formatter.text_gedit.Formatter instance>, on=1, attrs={u'style': u'', 'width': u'40%'}, **kw={})
- 1323 attrs = self._checkTableAttr(attrs, '')
- 1324 return ' ' + self._open(tag, attr=attrs,
- 1325 allowed_attrs=self._allowed_table_attrs[''],
- 1326 **kw)
- 1327 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']}
/org/moin_tw/moin-1.5/MoinMoin/formatter/text_html.py
in _open
(self=<MoinMoin.formatter.text_gedit.Formatter instance>, tag='td', newline=False, attr={u'style': u'', 'width': u'40%'}, allowed_attrs=['colspan', 'rowspan', 'class', 'id', 'style'], **kw={})
- 342
- 343 # Format
- 344 attributes = self._formatAttributes(attributes, allowed_attrs=allowed_attrs, **kw)
- 345 result.append('<%s%s%s>' % (tag, attributes, is_self_closing))
- 346 if newline:
- attributes
= {u'style': u'', 'width': u'40%'}
- 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
= {}
/org/moin_tw/moin-1.5/MoinMoin/formatter/text_html.py
in _formatAttributes
(self=<MoinMoin.formatter.text_gedit.Formatter instance>, attr={u'style': u'', 'width': u'40%'}, allowed_attrs=['colspan', 'rowspan', 'class', 'id', 'style'], **kw={})
- 288 # Unknown or unallowed attribute.
- 289 err = 'Illegal HTML attribute "%s" passed to formatter' % name
- 290 raise ValueError(err)
- 291
- 292 # Finally, format them all as a single string.
- builtin
ValueError
= <class exceptions.ValueError>
- err
= 'Illegal HTML attribute "width" passed to formatter'