Mercurial > moin > 1.9
changeset 100:9aa2836c997b
fixed MoinMoinBugs/IncludeMacroChecksIfPageExists
imported from: moin--main--1.5--patch-102
author | Florian Festi <Florian.Festi@trick.informatik.uni-stuttgart.de> |
---|---|
date | Sat, 15 Oct 2005 14:55:25 +0000 |
parents | ce657f0e577b |
children | 2202f548cbb0 |
files | MoinMoin/macro/Include.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/macro/Include.py Sat Oct 15 13:56:10 2005 +0000 +++ b/MoinMoin/macro/Include.py Sat Oct 15 14:55:25 2005 +0000 @@ -110,6 +110,8 @@ fmt = macro.formatter.__class__(request, is_included=True) fmt._base_depth = macro.formatter._base_depth inc_page = Page(request, inc_name, formatter=fmt) + if not inc_page.exists(): + continue inc_page._macroInclude_pagelist = this_page._macroInclude_pagelist # check for "from" and "to" arguments (allowing partial includes)