Commit ee10fae2 authored by Łukasz Nowak's avatar Łukasz Nowak

YAH: Yet another hack.

parent 24986ef9
......@@ -178,6 +178,7 @@ class SlapTool(BaseTool):
def _fillComputerInformationCache(self, computer_id, user, full):
key = '%s_%s_%s' % (full, computer_id, user)
try:
self._getCachePlugin().set(key, DEFAULT_CACHE_SCOPE,
dict (
time=time.time(),
......@@ -187,6 +188,11 @@ class SlapTool(BaseTool):
.getRamCacheRoot().get('computer_information_cache_factory'\
).cache_duration
)
except Unauthorized:
# XXX: Hack. Race condition of not ready setup delivery which provides
# security information shall not make this method fail, as it will be
# called later anyway
pass
def _storeLastData(self, key, value):
cache_plugin = self.getPortalObject().portal_caches\
......
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