Commit 4889d523 authored by Vincent Pelletier's avatar Vincent Pelletier

Define property's default value at class level.

parent 2834ff70
......@@ -308,6 +308,7 @@ if memcache is not None:
},) + BaseTool.manage_options
memcached_tool_configure = DTMLFile('memcached_tool_configure', _dtmldir)
erp5_site_global_id = ''
def _getMemcachedDict(self, plugin_path):
"""
......@@ -344,7 +345,7 @@ if memcache is not None:
plugin_path
relative_url of dedicated Memcached Plugin
"""
global_prefix = getattr(self, 'erp5_site_global_id', '')
global_prefix = self.erp5_site_global_id
if global_prefix:
key_prefix = '%s_%s' % (global_prefix, key_prefix)
return SharedDict(self._getMemcachedDict(plugin_path), prefix=key_prefix)
......
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