changeset 5323:6525ddcac8cd

fix mkpagepacks, fix attr name collision
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 29 Nov 2009 01:55:16 +0100
parents 62689b2cc821
children 92b69df8a374
files MoinMoin/script/maint/mkpagepacks.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/maint/mkpagepacks.py	Sun Nov 29 01:21:16 2009 +0100
+++ b/MoinMoin/script/maint/mkpagepacks.py	Sun Nov 29 01:55:16 2009 +0100
@@ -108,8 +108,8 @@
                 cnt += 1
                 zipname = "%d" % cnt
                 script.append(packLine(["ReplaceUnderlayAttachment", zipname, attname, pagename]))
-                filename = AttachFile.getFilename(request, pagename, attname)
-                zf.write(filename, zipname)
+                attpath = AttachFile.getFilename(request, pagename, attname)
+                zf.write(attpath, zipname)
 
             cnt += 1
             zipname = "%d" % cnt