changeset 4899:d11540d1c5a0

Page.clean_acl_cache() was killed.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Fri, 24 Jul 2009 14:17:47 +0200
parents c299e8ece712
children 19e9f1edb2f1
files MoinMoin/Page.py MoinMoin/PageEditor.py MoinMoin/packages.py
diffstat 3 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/Page.py	Fri Jul 24 14:17:44 2009 +0200
+++ b/MoinMoin/Page.py	Fri Jul 24 14:17:47 2009 +0200
@@ -1599,12 +1599,6 @@
 
         return Page(self.request, self.page_name, rev=lastRevision).parseACL()
 
-    def clean_acl_cache(self):
-        """
-        Clean ACL cache entry of this page (used by PageEditor on save)
-        """
-        pass # should not be necessary any more as the new cache watches edit-log for changes
-
     # Text format -------------------------------------------------------
 
     def encodeTextMimeType(self, text):
--- a/MoinMoin/PageEditor.py	Fri Jul 24 14:17:44 2009 +0200
+++ b/MoinMoin/PageEditor.py	Fri Jul 24 14:17:47 2009 +0200
@@ -1120,7 +1120,6 @@
             trivial = kw.get('trivial', 0)
             # write the page file
             mtime_usecs, rev = self._write_file(newtext, action, comment, extra, deleted=deleted)
-            self.clean_acl_cache()
             self._save_draft(None, None) # everything fine, kill the draft for this page
 
             if notify:
--- a/MoinMoin/packages.py	Fri Jul 24 14:17:44 2009 +0200
+++ b/MoinMoin/packages.py	Fri Jul 24 14:17:47 2009 +0200
@@ -304,7 +304,6 @@
                 pass
             else:
                 self.msg += u"%(pagename)s added \n" % {"pagename": pagename}
-                page.clean_acl_cache()
         else:
             self.msg += u"action add revision: not enough rights - nothing done \n"
 
@@ -372,7 +371,6 @@
 
         # Clear caches
         # TODO Code from MoinMoin/script/maint/cleancache.py may be used
-        page.clean_acl_cache() # It is not necessary should be removed.
 
     def runScript(self, commands):
         """ Runs the commands.