changeset 4808:c54a1ba60873

Groups2009: GroupManager update/load_cache stuff was killed.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Sat, 13 Jun 2009 21:11:38 +0200
parents ca8fcf330aa8
children 415338464695
files MoinMoin/events/wikidictsrescan.py MoinMoin/groups/__init__.py
diffstat 2 files changed, 0 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/events/wikidictsrescan.py	Sat Jun 13 20:44:06 2009 +0200
+++ b/MoinMoin/events/wikidictsrescan.py	Sat Jun 13 21:11:38 2009 +0200
@@ -40,7 +40,3 @@
     gd.scan_dicts()
     logging.debug("groupsdicts changed: scan_dicts finished")
 
-    logging.debug("groups changed: %r, update_cache started", page.page_name)
-    request.groups.update_cache()
-    logging.debug("groups changed: update_cache finished")
-
--- a/MoinMoin/groups/__init__.py	Sat Jun 13 20:44:06 2009 +0200
+++ b/MoinMoin/groups/__init__.py	Sat Jun 13 21:11:38 2009 +0200
@@ -65,18 +65,6 @@
         return [group_name for group_name in self
                 if member in self[group_name]]
 
-    def update_cache(self):
-        for backend in self._backends:
-            update_cache = getattr(backend, 'update_cache', None)
-            if callable(update_cache):
-                update_cache()
-
-    def load_cache(self):
-        for backend in self._backends:
-            load_cache = getattr(backend, 'load_cache', None)
-            if callable(load_cache):
-                load_cache()
-
     def __repr__(self):
         return "<%s backends=%s>" % (self.__class__, self._backends)