diff MoinMoin/config/multiconfig.py @ 1276:7c29a18a7e26

more memory efficient and faster ACL processing, do not have before/after/default acl in ACL object, but only once in cfg
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 15 Aug 2006 11:20:21 +0200
parents 84f94820d612
children 760002b5ffa3
line wrap: on
line diff
--- a/MoinMoin/config/multiconfig.py	Mon Aug 14 18:04:10 2006 +0200
+++ b/MoinMoin/config/multiconfig.py	Tue Aug 15 11:20:21 2006 +0200
@@ -15,6 +15,7 @@
 from MoinMoin import error, util, wikiutil
 import MoinMoin.auth as authmodule
 from MoinMoin.packages import packLine
+from MoinMoin.security import AccessControlList
 
 _url_re_cache = None
 _farmconfig_mtime = None
@@ -557,6 +558,10 @@
         # Cache variables for the properties below
         self._iwid = self._iwid_full = self._meta_dict = None
 
+        self._acl_rights_before = AccessControlList(self, [self.acl_rights_before])
+        self._acl_rights_default = AccessControlList(self, [self.acl_rights_default])
+        self._acl_rights_after = AccessControlList(self, [self.acl_rights_after])
+
     def load_meta_dict(self):
         """ The meta_dict contains meta data about the wiki instance. """
         if getattr(self, "_meta_dict", None) is None: