IndexError
string index out of range
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.
C:\Moin\Lib\site-packages\MoinMoin\request.py
in run
(self=<MoinMoin.request.RequestCGI object>)
- 1006 from MoinMoin.wikiaction import getHandler
- 1007 handler = getHandler(self, action)
- 1008 handler(self.page.page_name, self)
- 1009
- 1010 # 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'VB coding standards'
C:\Moin\Lib\site-packages\MoinMoin\wikiaction.py
in do_edit
(pagename=u'VB coding standards', request=<MoinMoin.request.RequestCGI object>)
- 577 if lasteditor == 'gui':
- 578 from MoinMoin.converter.text_html_text_x_moin import convert
- 579 savetext = convert(request, pagename, savetext) # XXX error handling
- 580
- 581 # IMPORTANT: normalize text from the form. This should be done in
- savetext
= u'<p>original document here <a class="badinterwiki..."3"> </font></p></p><p><strong></strong></p>'
- convert
= <function convert>
- request
= <MoinMoin.request.RequestCGI object>
- pagename
= u'VB coding standards'
C:\Moin\Lib\site-packages\MoinMoin\converter\text_html_text_x_moin.py
in convert
(request=<MoinMoin.request.RequestCGI object>, pagename=u'VB coding standards', text=u'<page><p>original document here <a class="badint...sp;</font></p></p><p><strong></strong></p></page>')
- 1139 text = u"<page>%s</page>" % text
- 1140 tree = parse(text)
- 1141 strip_whitespace().do(tree)
- 1142 return convert_tree(request, pagename).do(tree)
- 1143
- global
convert_tree
= <class 'MoinMoin.converter.text_html_text_x_moin.convert_tree'>
- request
= <MoinMoin.request.RequestCGI object>
- pagename
= u'VB coding standards'
- ).do undefined
- tree
= <xml.dom.minidom.Document instance>
C:\Moin\Lib\site-packages\MoinMoin\converter\text_html_text_x_moin.py
in do
(self=<MoinMoin.converter.text_html_text_x_moin.convert_tree object>, tree=<xml.dom.minidom.Document instance>)
- 463 self.text = []
- 464 self.process_page(tree.documentElement)
- 465 self.check_whitespace()
- 466 return ''.join(self.text)
- 467
- self
= <MoinMoin.converter.text_html_text_x_moin.convert_tree object>
- self.check_whitespace
= <bound method convert_tree.check_whitespace of <...erter.text_html_text_x_moin.convert_tree object>>
C:\Moin\Lib\site-packages\MoinMoin\converter\text_html_text_x_moin.py
in check_whitespace
(self=<MoinMoin.converter.text_html_text_x_moin.convert_tree object>)
- 493 text[i] = "\n"
- 494 i += 1
- 495 elif text[i-1][-1] == "\n" or (
- 496 isinstance(text[i+1], str) and text[i+1][0] == "\n"):
- 497 del text[i]
- text
= [u'original document here ', u'IMANAGE:93496', '\n\n', '', u' ', '', '\n\n', '\n\n', '', u' ', '', '\n\n', '\n\n', '', u' ', '', '\n\n', '\n\n', "'''", "'''", ...]
- i
= 286
- builtin
isinstance
= <built-in function isinstance>
- builtin
str
= <type 'str'>
IndexError
string index out of range
- args = ('string index out of range',)
System Details
- Date: Thu, 01 Dec 2005 10:35:25 +0000
- Platform: win32 (nt)
- Python: Python 2.4.2 (C:\Python24\python.exe)
- MoinMoin: Release 1.5.0beta4 (release)