Attachment 'makedirbug.diff'
Download 1 * looking for arch@arch.thinkmo.de--2003-archives/moin--main--1.2--patch-319 to compare with
2 * comparing to arch@arch.thinkmo.de--2003-archives/moin--main--1.2--patch-319
3 M MoinMoin/action/AttachFile.py
4
5 * modified files
6
7 --- orig/MoinMoin/action/AttachFile.py
8 +++ mod/MoinMoin/action/AttachFile.py
9 @@ -54,7 +54,7 @@
10 attach_dir = os.path.join(config.attachments['dir'], pagename, "attachments")
11 else:
12 # send file via CGI, from page storage area
13 - attach_dir = wikiutil.getPagePath(pagename, "attachments")
14 + attach_dir = wikiutil.getPagePath(pagename, "attachments", check_create=create)
15
16 if create and not os.path.isdir(attach_dir):
17 filesys.makeDirs(attach_dir)
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.You are not allowed to attach a file to this page.