changeset 1744:f4ead22f4a0e

PackagePages: minor optimizations
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 14 Jan 2007 00:50:52 +0100
parents 00ffe1ab1c8b
children 58a70ba872d6
files MoinMoin/action/PackagePages.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/PackagePages.py	Sun Jan 14 00:49:54 2007 +0100
+++ b/MoinMoin/action/PackagePages.py	Sun Jan 14 00:50:52 2007 +0100
@@ -113,7 +113,7 @@
             for attname in files:
                 if attname != packagename:
                     cnt += 1
-                    zipname = "%s_attachment" % str(cnt)
+                    zipname = "%d_attachment" % cnt
                     script.append(packLine(["AddAttachment", zipname, attname, page.page_name, user.getUserIdentification(self.request), "Created by the PackagePages action."]))
                     filename = AttachFile.getFilename(self.request, page.page_name, attname)
                     zf.write(filename.encode("cp437"), zipname)