Commit 5f4b4caf authored by Stefan H. Holek's avatar Stefan H. Holek

Provide missing security declarations for 'ZCacheable_isAMethod'

and 'ZCacheable_getManagerURL'.
parent b7c9dfc7
......@@ -146,6 +146,8 @@ class Cacheable:
'''
return self.__enabled and self.ZCacheable_getCache()
security.declareProtected(ViewManagementScreensPermission,
'ZCacheable_isAMethod')
def ZCacheable_isAMethod(self):
'''
Returns 1 when this object is a ZClass method.
......@@ -274,6 +276,8 @@ class Cacheable:
'''Returns the id of the current ZCacheManager.'''
return self.__manager_id
security.declareProtected(ViewManagementScreensPermission,
'ZCacheable_getManagerURL')
def ZCacheable_getManagerURL(self):
'''Returns the URL of the current ZCacheManager.'''
manager = self.ZCacheable_getManager()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment