changeset 3780:1190e9351eea

merged main
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 22 Jun 2008 20:09:26 +0200
parents 9aad6c344482 (current diff) 7ce6ee352251 (diff)
children a637edbeb5fa
files
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_packages.py	Sun Jun 22 20:08:53 2008 +0200
+++ b/MoinMoin/_tests/test_packages.py	Sun Jun 22 20:09:26 2008 +0200
@@ -103,7 +103,7 @@
                                 include_underlay=False,
                                 filter=lambda name: not wikiutil.isSystemPage(self.request, name)),
                                 temp)
-        if package:
+        if not package:
             py.test.skip("No user created pages in wiki!")
         assert zipfile.is_zipfile(temp.name)
 
--- a/MoinMoin/action/PackagePages.py	Sun Jun 22 20:08:53 2008 +0200
+++ b/MoinMoin/action/PackagePages.py	Sun Jun 22 20:09:26 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"))
--- a/MoinMoin/auth/ldap_login.py	Sun Jun 22 20:08:53 2008 +0200
+++ b/MoinMoin/auth/ldap_login.py	Sun Jun 22 20:09:26 2008 +0200
@@ -242,7 +242,7 @@
             # method).
             logging.error("LDAP server %s failed (%s). "
                           "Trying to authenticate with next auth list entry." % (server, str(err)))
-            return ContinueLogin(user_obj, _("LDAP server %(server)s failed." % {'server': server}))
+            return ContinueLogin(user_obj, _("LDAP server %(server)s failed.") % {'server': server})
 
         except:
             logging.exception("caught an exception, traceback follows...")