Commit 6a986882 authored by Nicolas Delaby's avatar Nicolas Delaby

get server_address_list from Memcached Plugins

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27495 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 78a86a33
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# Copyright (c) 2006 Nexedi SARL and Contributors. All Rights Reserved. # Copyright (c) 2006 Nexedi SARL and Contributors. All Rights Reserved.
...@@ -307,7 +308,10 @@ if memcache is not None: ...@@ -307,7 +308,10 @@ if memcache is not None:
Get the list of memcached servers to use. Get the list of memcached servers to use.
Defaults to ['127.0.0.1:11211', ]. Defaults to ['127.0.0.1:11211', ].
""" """
return getattr(self, 'server_address_list', ['127.0.0.1:11211', ]) server_address_list = []
for memcached_plugin in self.contentValues(portal_type='Memcached Plugin', sort_on='int_index'):
server_address_list.append(memcached_plugin.getUrlString())
return server_address_list
def setServerAddressList(self, value): def setServerAddressList(self, value):
""" """
......
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