X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/feb12ae288263dbeb490147bbcd4e0a6d134da5f..3c4367d8e03450e9a73e61f4247145d2b6c86a33:/catalog.py?ds=inline 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.')