Attachment 'NewPage_patch.txt'

Download

   1 # HG changeset patch
   2 # User ReimarBauer <R.Bauer@fz-juelich.de>
   3 # Node ID ee9495472b6eb1c9f9e4c65df1834f323beb98eb
   4 # Parent  107ca03adb3cb596454dc8e44fdd996d94b26b30
   5 added @SELF to NewPage to autocreate subpages of page where it is called from
   6 
   7 diff -r 107ca03adb3c -r ee9495472b6e MoinMoin/macro/NewPage.py
   8 --- a/MoinMoin/macro/NewPage.py	Wed Aug 23 22:35:01 2006 +0200
   9 +++ b/MoinMoin/macro/NewPage.py	Wed Aug 23 23:19:21 2006 +0200
  10 @@ -78,6 +78,8 @@ class NewPage:
  11  
  12          if parent == '@ME' and self.request.user.valid:
  13              parent = self.request.user.name
  14 +        if parent == '@SELF':
  15 +            parent = f.page.page_name
  16  
  17          requires_input = '%s' in nametemplate
  18  

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2006-08-23 21:16:54, 0.7 KB) [[attachment:NewPage_patch.txt]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.