changeset 1411:2dcaba71f555

added @SELF to NewPage to autocreate subpages of page where it is called from
author ReimarBauer <R.Bauer@fz-juelich.de>
date Wed, 23 Aug 2006 23:28:57 +0200
parents c65bff91b9e6
children 07e331b171dc
files MoinMoin/macro/NewPage.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/NewPage.py	Tue Aug 22 01:02:09 2006 +0200
+++ b/MoinMoin/macro/NewPage.py	Wed Aug 23 23:28:57 2006 +0200
@@ -78,6 +78,8 @@
 
         if parent == '@ME' and self.request.user.valid:
             parent = self.request.user.name
+        if parent == '@SELF':
+            parent = f.page.page_name
 
         requires_input = '%s' in nametemplate