Include macro crashes if titlesonly used
The [[Include]] macro fails if the titlesonly parameter is used.
Example
This call [[Include(^MoinMoinBugs/.*,,3,titlesonly)]] will fail
An example of this has been added to the end of this entry because the dump takes up a lot of screen space
Details
This Wiki - vanilla MoinMoin 1.2.3, will work on any python/os combo by my reading.
Workaround
No workround I can see
Discussion
The problem is line 151 of Include.py
result.append(inc_page.link_to(title))
change it to
result.append(inc_page.link_to(macro.request, title))
Attached patch file moin-1.2.3-macroincludeheadersonly.patch
Correct. Test here: http://fp2.sky.rhein-zeitung.de/moin.cgi/IncludeFrom
-- OliverGraf 2004-10-21 13:46:45
Plan
- Priority: high
Assigned to: OliverGraf
- Status: confirmed
Example in Practice
[[Include(MoinMoinBugs,,3,titlesonly)]]