Description

After an upgrade from 1.3.5 to 1.5.2, i get errors when calling the Include() macro.

Steps to reproduce

[[Include(Meetings, "RĂ©unions", 1, to="= Anciens meetings =")]]

Example

URL: http://wiki.koumbit.net/

Although now I have patched the macro to fix the problem, so the bug is not visible there anymore. I can re-enable it on demand.

Details

traceback.html

Workaround

Apply the include.patch

Or replace apply this patch:

--- old/Include.py  2006-02-13 12:58:32.000000000 +0100
+++ Include.py  2006-02-13 12:58:57.000000000 +0100
@@ -204,7 +204,7 @@
                 result.append(
                     #macro.formatter.heading(1, level, hid,
                     #    icons=edit_icon.replace('<img ', '<img align="right" ')) +
-                    macro.formatter.heading(1, level, hid) +
+                    macro.formatter.heading(1, level, id=hid) +
                     inc_page.link_to(request, heading, css_class="include-heading-link") +
                     macro.formatter.heading(0, level)
                 )

Discussion

The bug exists in DesktopEdition 1.5.2-1 too, and can be eliminated with above patch.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/IncludeMacroBroken (last edited 2007-10-29 19:08:01 by localhost)