comparison MoinMoin/action/AttachFile.py @ 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 8608b258f8e6
children a6aaae4bded0
comparison
equal deleted inserted replaced
3072:103fd9035d50 3073:78c516164e01
13 3. /pagename/fname?action=Attachment&do=get[&mimetype=type]: 13 3. /pagename/fname?action=Attachment&do=get[&mimetype=type]:
14 return contents of the attachment file with the name fname. 14 return contents of the attachment file with the name fname.
15 4. /pathname/fname, do=view[&mimetype=type]:create a page 15 4. /pathname/fname, do=view[&mimetype=type]:create a page
16 to view the content of the file 16 to view the content of the file
17 17
18 To insert an attachment into the page, use the "attachment:" pseudo schema. 18 To link to an attachment, use [[attachment:file.txt]],
19 to embed an attachment, use {{attachment:file.png}}.
19 20
20 @copyright: 2001 by Ken Sugino (sugino@mediaone.net), 21 @copyright: 2001 by Ken Sugino (sugino@mediaone.net),
21 2001-2004 by Juergen Hermann <jh@web.de>, 22 2001-2004 by Juergen Hermann <jh@web.de>,
22 2005 MoinMoin:AlexanderSchremmer, 23 2005 MoinMoin:AlexanderSchremmer,
23 2005 DiegoOngaro at ETSZONE (diego@etszone.com), 24 2005 DiegoOngaro at ETSZONE (diego@etszone.com),
302 303
303 html = "" 304 html = ""
304 if files: 305 if files:
305 if showheader: 306 if showheader:
306 html += _( 307 html += _(
307 "To refer to attachments on a page, use '''{{{attachment:filename}}}''', \n" 308 "To refer to attachments on a page, use '''{{{[[attachment:filename]]}}}''', \n"
308 "as shown below in the list of files. \n" 309 "as shown below in the list of files. \n"
309 "Do '''NOT''' use the URL of the {{{[get]}}} link, \n" 310 "Do '''NOT''' use the URL of the {{{[get]}}} link, \n"
310 "since this is subject to change and can break easily." 311 "since this is subject to change and can break easily."
311 ) 312 )
312 html += "<ul>" 313 html += "<ul>"