X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/blobdiff_plain/feb12ae288263dbeb490147bbcd4e0a6d134da5f..refs/heads/zope-2.13:/catalog.py diff --git a/catalog.py b/catalog.py index 69bb701..7e49083 100644 --- a/catalog.py +++ b/catalog.py @@ -58,9 +58,10 @@ class CatalogTool(BaseCatalogTool) : """ read the method name """ return self.delegatedIndexes - security.declareProtected(ManagePortal, 'setDelegatedIndexes') - def setDelegatedIndexes(self, indexes, REQUEST=None) : - """setDelegatedIndexes documentation""" + security.declareProtected(ManagePortal, 'setSolrProperties') + def setSolrProperties(self, url, indexes, REQUEST=None) : + """ set Solr server url and delegated indexes """ + self.solr_url = url self.delegatedIndexes = tuple([i.strip() for i in indexes if i.strip()]) if REQUEST : REQUEST.RESPONSE.redirect(self.absolute_url() + '/manage_solr?manage_tabs_message=Saved changes.')