changeset 2885:48a1f6b6b6c5

AttachFile.getFilename: creates attachment dir on requesting filename
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 03 Oct 2007 10:46:10 +0200
parents 5e18b0808ab0
children dbd445620f9d
files MoinMoin/action/AttachFile.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Tue Oct 02 18:37:55 2007 +0200
+++ b/MoinMoin/action/AttachFile.py	Wed Oct 03 10:46:10 2007 +0200
@@ -167,7 +167,7 @@
     """
     if isinstance(filename, unicode):
         filename = filename.encode(config.charset)
-    return os.path.join(getAttachDir(request, pagename), filename)
+    return os.path.join(getAttachDir(request, pagename, create=1), filename)
 
 def exists(request, pagename, filename):
     """ check if page <pagename> has a file <filename> attached """