Description
Pages that are linked (direct or indirect linkage between the pages) to other pages via the include macro, show up as orphaned. The same happens for pages that are linked via the TemplateList or PageList macros.
Steps to reproduce
- create an new page
- include it in another
it will show up as an orphan in OrphanedPages
Details
Python Version
- 2.3.5 (#2, Sep 4 2005, 22:01:42) [GCC 3.3.5 (Debian 1:3.3.5-13)]
MoinMoin Version
- Release 1.5.4 [Revision release]
Workaround
here is a patch to the include macro to fix the problem by adding the linkage to the cached info
Index: Include.py =================================================================== --- Include.py (revision 183) +++ Include.py (revision 202) @@ -114,6 +114,9 @@ continue inc_page._macroInclude_pagelist = this_page._macroInclude_pagelist + # store the included page as a page linkage + macro.formatter.pagelink(1, pagename=inc_page.page_name) + # check for "from" and "to" arguments (allowing partial includes) body = inc_page.get_raw_body() + '\n' from_pos = 0
Discussion
This looks like an incorrect fix. The problem is that include and other macros are not running in pagelink mode.
Plan
- Priority:
- Assigned to:
- Status: reproduced in 1.7