Commit d0c4f12e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use PersistentMapping as selection storage if the site is configured as using...

use PersistentMapping as selection storage if the site is configured as using memcached but no memcached plugin found. this workaround is required for updating sites where memcached storage are already used.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27762 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bf117862
......@@ -149,7 +149,10 @@ class SelectionTool( BaseTool, UniqueObject, SimpleItem ):
storage = 'selection_data'
elif storage == 'Memcached Tool':
memcached_plugin_list = self.portal_memcached.contentValues(portal_type='Memcached Plugin', sort_on='int_index')
if len(memcached_plugin_list):
storage = memcached_plugin_list[0].getRelativeUrl()
else:
storage = 'selection_data'
return storage
def isMemcachedUsed(self):
......
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