changeset 3775:e458af23d64d

PackagePages.collectpackage: removed encoding from file name of zipfile
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 22 Jun 2008 17:27:51 +0200
parents 6879f85a6faa
children 4a2e168399ca e6de0a13519c
files MoinMoin/action/PackagePages.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/PackagePages.py	Sun Jun 22 16:35:00 2008 +0200
+++ b/MoinMoin/action/PackagePages.py	Sun Jun 22 17:27:51 2008 +0200
@@ -217,7 +217,7 @@
                     zipname = "%d_attachment" % cnt
                     script.append(packLine(["AddAttachment", zipname, attname, page.page_name, userid, "Created by the PackagePages action."]))
                     filename = AttachFile.getFilename(self.request, page.page_name, attname)
-                    zf.write(filename.encode("cp437"), zipname)
+                    zf.write(filename, zipname)
         script += [packLine(['Print', 'Thank you for using PackagePages!'])]
 
         zf.writestr(MOIN_PACKAGE_FILE, u"\n".join(script).encode("utf-8"))