Attachment 'traceback2.html'

Download

--> -->

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.

  1. C:\Moin\Lib\site-packages\MoinMoin\request.py in run (self=<MoinMoin.request.RequestCGI object>)

    1. 1006 from MoinMoin.wikiaction import getHandler
    2. 1007 handler = getHandler(self, action)
    3. 1008 handler(self.page.page_name, self)
    4. 1009
    5. 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'
  2. C:\Moin\Lib\site-packages\MoinMoin\wikiaction.py in do_edit (pagename=u'VB coding standards', request=<MoinMoin.request.RequestCGI object>)

    1. 577 if lasteditor == 'gui':
    2. 578 from MoinMoin.converter.text_html_text_x_moin import convert
    3. 579 savetext = convert(request, pagename, savetext) # XXX error handling
    4. 580
    5. 581 # IMPORTANT: normalize text from the form. This should be done in
    • savetext = u'<p>original document here <a class="badinterwiki..."3">&nbsp;</font></p></p><p><strong></strong></p>'
    • convert = <function convert>
    • request = <MoinMoin.request.RequestCGI object>
    • pagename = u'VB coding standards'
  3. 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>')

    1. 1139 text = u"<page>%s</page>" % text
    2. 1140 tree = parse(text)
    3. 1141 strip_whitespace().do(tree)
    4. 1142 return convert_tree(request, pagename).do(tree)
    5. 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>
  4. 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>)

    1. 463 self.text = []
    2. 464 self.process_page(tree.documentElement)
    3. 465 self.check_whitespace()
    4. 466 return ''.join(self.text)
    5. 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>>
  5. 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>)

    1. 493 text[i] = "\n"
    2. 494 i += 1
    3. 495 elif text[i-1][-1] == "\n" or (
    4. 496 isinstance(text[i+1], str) and text[i+1][0] == "\n"):
    5. 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)

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] (2005-12-05 20:24:15, 23.5 KB) [[attachment:CausesConvertError.doc]]
  • [get | view] (2005-12-06 16:55:00, 23.5 KB) [[attachment:NewYork.doc]]
  • [get | view] (2005-12-05 10:22:45, 184.5 KB) [[attachment:page.mht]]
  • [get | view] (2005-12-05 10:21:05, 291.5 KB) [[attachment:test.doc]]
  • [get | view] (2005-11-30 15:02:56, 18.5 KB) [[attachment:traceback.html]]
  • [get | view] (2005-12-01 10:37:02, 9.1 KB) [[attachment:traceback2.html]]
  • [get | view] (2005-12-05 10:44:53, 13.4 KB) [[attachment:traceback3.html]]
  • [get | view] (2005-12-06 16:54:07, 14.6 KB) [[attachment:tracebackPlaceElement.html]]
  • [get | view] (2005-12-05 20:24:42, 17.0 KB) [[attachment:traceback_beta5.html]]
  • [get | view] (2005-12-05 10:42:27, 111.9 KB) [[attachment:wikitext.txt]]
 All files | Selected Files: delete move to page copy to page

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