# HG changeset patch # User Sverre Rabbelier # Date 1233156242 0 # Node ID f706ac5beccfe9d567704946254206fb5a619b14 # Parent b4e275e97c60cea45cff51fcf7e8386098961c43 Fix wrong order of decorators and some cleanup Patch by: Sverre Rabbelier diff -r b4e275e97c60 -r f706ac5beccf app/soc/views/helper/access.py --- a/app/soc/views/helper/access.py Wed Jan 28 15:22:34 2009 +0000 +++ b/app/soc/views/helper/access.py Wed Jan 28 15:24:02 2009 +0000 @@ -120,7 +120,6 @@ self.rights = base.rights if base else {} self.id = None self.user = None - self.cached_rights = {} def __setitem__(self, key, value): """Sets a value only if no old value exists. @@ -217,7 +216,6 @@ self.id = id self.user = user - self.cached_rights = {} def checkAccess(self, access_type, django_args): """Runs all the defined checks for the specified type. @@ -448,8 +446,8 @@ return + @allowDeveloper @denySidebar - @allowDeveloper def checkIsHost(self, django_args): """Raises an alternate HTTP response if Google Account has no Host entity.