changeset 183:b4c7c65b6af0

PackagePages bugfix imported from: moin--main--1.5--patch-185
author Thomas Waldmann <tw@waldmann-edv.de>
date Tue, 01 Nov 2005 20:25:39 +0000
parents 10e033440008
children 56d74783ea93
files MoinMoin/action/PackagePages.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/PackagePages.py	Tue Nov 01 19:52:11 2005 +0000
+++ b/MoinMoin/action/PackagePages.py	Tue Nov 01 20:25:39 2005 +0000
@@ -30,7 +30,7 @@
     def allowed(self):
         """ Check if user is allowed to do this. """
         may = self.request.user.may
-        return (self.__class__.__name__ in self.request.cfg.allowed_actions and
+        return (not self.__class__.__name__ in self.request.cfg.actions_excluded and
                 may.write(self.pagename))
     
     def render(self):
@@ -88,7 +88,7 @@
         # get directory, and possibly create it
         attach_dir = Page(self.request, self.page.page_name).getPagePath("attachments", check_create=1)
         fpath = os.path.join(attach_dir, target).encode(config.charset)
-        print fpath
+        #print fpath
         if os.path.exists(fpath):
             raise ActionError(_("Attachment '%(target)s' (remote name '%(filename)s') already exists.") % {
                 'target': wikiutil.escape(target), 'filename': wikiutil.escape(target)})