[Moin-user] Illegal list element p
R.Bauer
R.Bauer at fz-juelich.de
Sun Jan 8 06:22:01 EST 2006
Hi Tom
it's aready known see at
MoinMoinBugs/IllegalListElementp
It depends on the GUI implementation.
cheers
Reimar
Tom Purl wrote:
> Forgive me if someone else has already mentioned this, but I'm having
> trouble making updates to the main MoinMoin web site
> (http://moinmoin.wikiwikiweb.de/MoinMoinWiki). Here's my error:
>
> Illegal list element p
>
> * exceptions = <bound method ConvertError.exceptions of
> <MoinMo...ter.text_html_text_x_moin.ConvertError instance>>
> * innerException = (None, None, None)
> * message = u'Illegal list element p'
> * name = 'MoinMoin Convert Error'
>
> Here's the 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.
>
> /org/moin_tw/moin-1.5/MoinMoin/request.py in run
> (self=<MoinMoin.request.RequestTwisted object>)
> 1. 1022 from MoinMoin.wikiaction import getHandler
> 2. 1023 handler = getHandler(self, action)
> 3. 1024 handler(self.page.page_name, self)
> 4. 1025
> 5. 1026 # 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'MoinMoinQuestions'
> 2.
>
> /org/moin_tw/moin-1.5/MoinMoin/wikiaction.py in do_edit
> (pagename=u'MoinMoinQuestions',
> request=<MoinMoin.request.RequestTwisted object>)
> 1. 572 if lasteditor == 'gui':
> 2. 573 from MoinMoin.converter.text_html_text_x_moin import convert
> 3. 574 savetext = convert(request, pagename, savetext) # XXX
> error handling
> 4. 575
> 5. 576 # IMPORTANT: normalize text from the form. This should be
> done in
> * savetext = u'<p><strong>Ask your questions about <a
> href="/Mo...or: rgb(255, 255, 17);">[[DateTime()]]</span></p>'
> * convert = <function convert>
> * request = <MoinMoin.request.RequestTwisted object>
> * pagename = u'MoinMoinQuestions'
> 3.
>
> /org/moin_tw/moin-1.5/MoinMoin/converter/text_html_text_x_moin.py in
> convert (request=<MoinMoin.request.RequestTwisted object>,
> pagename=u'MoinMoinQuestions', text=u'<page><p><strong>Ask your
> questions about <a hre...(255, 255,
> 17);">[[DateTime()]]</span></p></page>')
> 1. 1148 text = u"<page>%s</page>" % text
> 2. 1149 tree = parse(text)
> 3. 1150 strip_whitespace().do(tree)
> 4. 1151 return convert_tree(request, pagename).do(tree)
> 5. 1152
> * global convert_tree = <class
> 'MoinMoin.converter.text_html_text_x_moin.convert_tree'>
> * request = <MoinMoin.request.RequestTwisted object>
> * pagename = u'MoinMoinQuestions'
> * ).do undefined
> * tree = <xml.dom.minidom.Document instance>
> 4.
>
> /org/moin_tw/moin-1.5/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. 462 self.depth = 0
> 2. 463 self.text = []
> 3. 464 self.process_page(tree.documentElement)
> 4. 465 self.check_whitespace()
> 5. 466 return ''.join(self.text)
> * self = <MoinMoin.converter.text_html_text_x_moin.convert_tree
> object>
> * self.process_page = <bound method convert_tree.process_page of
> <Moin...erter.text_html_text_x_moin.convert_tree object>>
> * tree = <xml.dom.minidom.Document instance>
> * tree.documentElement = <DOM Element: page>
> 5.
>
> /org/moin_tw/moin-1.5/MoinMoin/converter/text_html_text_x_moin.py in
> process_page
> (self=<MoinMoin.converter.text_html_text_x_moin.convert_tree
> object>, node=<DOM Element: page>)
> 1. 662 for i in node.childNodes:
> 2. 663 if i.nodeType == Node.ELEMENT_NODE:
> 3. 664 self.visit_element(i)
> 4. 665 elif i.nodeType == Node.TEXT_NODE: # if this is missing,
> all std text under a headline is dropped!
> 5. 666 txt = i.data.strip()
> * self = <MoinMoin.converter.text_html_text_x_moin.convert_tree
> object>
> * self.visit_element = <bound method convert_tree.visit_element
> of <Moi...erter.text_html_text_x_moin.convert_tree object>>
> * i = <DOM Element: ul>
> 6.
>
> /org/moin_tw/moin-1.5/MoinMoin/converter/text_html_text_x_moin.py in
> visit_element
> (self=<MoinMoin.converter.text_html_text_x_moin.convert_tree
> object>, node=<DOM Element: ul>)
> 1. 513 self.process_heading(node)
> 2. 514 elif name in ('ol', 'ul',):
> 3. 515 self.process_list(node)
> 4. 516 else:
> 5. 517 self.process_inline(node)
> * self = <MoinMoin.converter.text_html_text_x_moin.convert_tree
> object>
> * self.process_list = <bound method convert_tree.process_list of
> <Moin...erter.text_html_text_x_moin.convert_tree object>>
> * node = <DOM Element: ul>
> 7.
>
> /org/moin_tw/moin-1.5/MoinMoin/converter/text_html_text_x_moin.py in
> process_list
> (self=<MoinMoin.converter.text_html_text_x_moin.convert_tree
> object>, node=<DOM Element: ul>)
> 1. 596 self.process_dl(i)
> 2. 597 else:
> 3. 598 raise ConvertError("Illegal list element %s" % i.localName)
> 4. 599 if self.depth == 1:
> 5. 600 self.text.append("\n")
> * global ConvertError = <class
> MoinMoin.converter.text_html_text_x_moin.ConvertError>
> * i = <DOM Element: p>
> * i.localName = u'p'
>
> I've been able to recreate this error twice on the MoinMoinQuestions
> page. Here's the content that I'm trying to append to that page:
>
> Are you running Moin on top of Apache? If so, then try dialing up the
> error log verbosity of Apache in the the main apache configuration file.
> Then restart Apache and see what's recorded to the log file when you
> click on the Edit button.
>
> If you're not using Apache, then tell us which OS you're using and how
> you're running Moin (standalong, twisted, etc.). -- TomPurl --
> [[DateTime()]]
>
> I thought you guys would like to know.
>
> Tom Purl
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
More information about the Moin-user
mailing list