Modify

Opened 17 years ago

Last modified 4 years ago

#2941 new defect

TypeError in nextItem()

Reported by: anonymous Owned by:
Priority: normal Component: MediaWikiPluginMacro
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

Trac 0.10.4 / TracMediaWikiMacro 1.0

When trying out a MediWiki page in Trac, we get this error message:

Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 406, in dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch

resp = chosen_handler.process_request(req)

File "/usr/lib/python2.4/site-packages/trac/wiki/web_ui.py", line 135, in process_request

self._render_view(req, db, page)

File "/usr/lib/python2.4/site-packages/trac/wiki/web_ui.py", line 443, in _render_view

req.hdfwiki? = {

File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 1001, in wiki_to_html

Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)

File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 795, in format

self.handle_code_block(line)

File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 734, in handle_code_block

self.out.write(to_unicode(self.code_processor.process(

File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 114, in process

text = self.processor(req, text)

File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 102, in _macro_processor

return self.macro_provider.render_macro(req, self.name, text)

File "build/bdist.linux-x86_64/egg/mediawiki/mediawiki.py", line 32, in render_macro File "build/bdist.linux-x86_64/egg/mediawiki/mediawiki.py", line 28, in expand_macro File "build/bdist.linux-x86_64/egg/mediawiki/parser.py", line 2464, in parse File "build/bdist.linux-x86_64/egg/mediawiki/parser.py", line 2340, in doBlockLevels

TypeError: nextItem() takes exactly 2 arguments (1 given)

Attachments (1)

parser.py (104.2 KB) - added by simon 16 years ago.

Download all attachments as: .zip

Change History (3)

Changed 16 years ago by simon

Attachment: parser.py added

comment:1 Changed 16 years ago by anonymous

thanks, that attachment fixed the same issue for me

comment:2 Changed 4 years ago by Ryan J Ollos

Owner: permon deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.