Description
If I go to http://moinmaster.wikiwikiweb.de:9000/WikiSandBox and open that page by the gui editor and do select cancel afterwards I got this traceback -- ReimarBauer 2007-04-23 11:42:04
Traceback (most recent call last):
File "MoinMoin/script/../../MoinMoin/request/__init__.py", line 1180, in run
File "/srv/moin_tw/moin-1.6/MoinMoin/action/edit.py", line 97, in execute
convert = wikiutil.searchAndImportPlugin(request.cfg, "converter", converter_name)
File "MoinMoin/script/../../MoinMoin/wikiutil.py", line 1124, in searchAndImportPlugin
File "MoinMoin/script/../../MoinMoin/wikiutil.py", line 1030, in importPlugin
File "MoinMoin/script/../../MoinMoin/wikiutil.py", line 1040, in importWikiPlugin
File "MoinMoin/script/../../MoinMoin/wikiutil.py", line 1092, in wikiPlugins
File "MoinMoin/script/../../MoinMoin/util/pysupport.py", line 65, in importName
ImportError: No module named converter
Additionally cgitb raised this exception:
Traceback (most recent call last):
File "/srv/moin_tw/moin-1.6/MoinMoin/failure.py", line 147, in handle
handler.handle()
File "/srv/moin_tw/moin-1.6/MoinMoin/support/cgitb.py", line 576, in handle
doc = view.format(formatter, self.context)
File "/srv/moin_tw/moin-1.6/MoinMoin/support/cgitb.py", line 354, in format
return formatter.section(self.formatContent(), {'class': 'cgitb'})
File "/srv/moin_tw/moin-1.6/MoinMoin/failure.py", line 33, in formatContent
content = (
File "/srv/moin_tw/moin-1.6/MoinMoin/failure.py", line 83, in formatDebugInfo
info = [self.debugInfoHideScript(),
File "/srv/moin_tw/moin-1.6/MoinMoin/failure.py", line 97, in formatTraceback
return self.formatAllTracebacks(self.formatOneTraceback)
File "/srv/moin_tw/moin-1.6/MoinMoin/failure.py", line 109, in formatAllTracebacks
tracebacks.append(formatFuction((ttype, tvalue, tb)))
File "/srv/moin_tw/moin-1.6/MoinMoin/support/cgitb.py", line 432, in formatOneTraceback
output = [self.formatter.subTitle('Traceback'),
File "/srv/moin_tw/moin-1.6/MoinMoin/support/cgitb.py", line 443, in tracebackFrames
for record in inspect.getinnerframes(traceback, self.context):
File "inspect.py", line 804, in getinnerframes
framelist.append((tb.tb_frame,) + getframeinfo(tb, context))
File "inspect.py", line 768, in getframeinfo
lines, lnum = findsource(frame)
File "inspect.py", line 437, in findsource
if pat.match(lines[lnum]): break
IndexError: list index out of range
Steps to reproduce
- do this...
Example
Component selection
- general
Details
MoinMoin Version |
1.6dev |
OS and Version |
|
Python Version |
|
Server Setup |
|
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
Discussion
How does that fix/changeset work? I just added a converter/ dir under data/plugin and this fixed the problem (without patch).
- Hmm, thats interesting without that patch it searches for text_x_text_html_text_moin_wiki in wikiutil.searchAndImportPlugin and not for text_html_text_moin_wiki. The error I fixed was it can not import the module, because it does search for the wrong name. May be you are right in adding the dir but then the exception handler should be more precise and it should not go to wikiutil.searchAndImportPlugin. If there are reasons to load this routine then it needs to be added there too. I guess we have fixed two bugs.
The function changed by that changeset is to map parser names used by #format xxx to the correct mimetypes. The converter name has nothing to do with that as it is a converter, not a parser.
Plan
- Priority:
- Assigned to:
- Status: fixed for 1.6 changeset 2019:006fe3f373f4 (reverted later)
