changeset 3073:78c516164e01

attachment links now require double brackets
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 22 Feb 2008 22:11:51 +0100
parents 103fd9035d50
children 18cba7defa5a
files MoinMoin/action/AttachFile.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Fri Feb 22 22:03:12 2008 +0100
+++ b/MoinMoin/action/AttachFile.py	Fri Feb 22 22:11:51 2008 +0100
@@ -15,7 +15,8 @@
     4. /pathname/fname, do=view[&mimetype=type]:create a page
        to view the content of the file
 
-    To insert an attachment into the page, use the "attachment:" pseudo schema.
+    To link to an attachment, use [[attachment:file.txt]],
+    to embed an attachment, use {{attachment:file.png}}.
 
     @copyright: 2001 by Ken Sugino (sugino@mediaone.net),
                 2001-2004 by Juergen Hermann <jh@web.de>,
@@ -304,7 +305,7 @@
     if files:
         if showheader:
             html += _(
-                "To refer to attachments on a page, use '''{{{attachment:filename}}}''', \n"
+                "To refer to attachments on a page, use '''{{{[[attachment:filename]]}}}''', \n"
                 "as shown below in the list of files. \n"
                 "Do '''NOT''' use the URL of the {{{[get]}}} link, \n"
                 "since this is subject to change and can break easily."