app/soc/views/helper/access.py
changeset 2850 c935cb48f757
parent 2836 0181649aa7b0
child 2918 d24b80677879
--- a/app/soc/views/helper/access.py	Sat Aug 29 14:32:14 2009 -0700
+++ b/app/soc/views/helper/access.py	Sat Aug 29 14:33:22 2009 -0700
@@ -279,7 +279,6 @@
     self.rights = base.rights if base else {}
     self.id = None
     self.user = None
-    self.core = callback.getCore()
 
   def normalizeChecker(self, checker):
     """Normalizes the checker to a pre-defined format.
@@ -321,14 +320,14 @@
     """
 
     cache_key = self.key(checker_name)
-    self.core.setRequestValue(cache_key, value)
+    callback.getCore().setRequestValue(cache_key, value)
 
   def get(self, checker_name):
     """Retrieves the result for the specified checker from cache.
     """
 
     cache_key = self.key(checker_name)
-    return self.core.getRequestValue(cache_key)
+    return callback.getCore().getRequestValue(cache_key)
 
   def doCheck(self, checker_name, django_args, args):
     """Runs the specified checker with the specified arguments.