""" 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.')
msgid ""
msgstr ""
"Project-Id-Version: 2.0 beta 1\n"
-"POT-Creation-Date: Tue Oct 14 15:55:50 2014\n"
-"PO-Revision-Date: 2014-10-14 15:56+0200\n"
+"POT-Creation-Date: Mon Dec 15 15:35:05 2014\n"
+"PO-Revision-Date: 2014-12-15 15:41+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Zope 3 Developers <zope-dev@zope.org>\n"
"Language: \n"
#: n/skins/content/topic_edit_template.pt:26
#: n/skins/custom_content/document_edit_template.pt:23
#: n/skins/custom_content/event_edit_template.pt:135
-#: n/skins/generic/search_results_template.pt:87 n/www/manage_solr.pt:13
+#: n/skins/generic/search_results_template.pt:87 n/www/manage_solr.pt:20
msgid "Save"
msgstr "Save"
msgid "(No description)"
msgstr "(No description)"
-#: n/www/manage_solr.pt:4
-msgid "Configure Solr delegated indexes"
-msgstr "Configure Solr delegated indexes"
+#: n/www/manage_solr.pt:6
+msgid "Solr server url"
+msgstr "Solr server url"
-#: n/www/manage_solr.pt:5
+#: n/www/manage_solr.pt:11
+msgid "Solr delegated indexes"
+msgstr "Solr delegated indexes"
+
+#: n/www/manage_solr.pt:12
msgid "Enter names of indexes to delegate to Solr. One per line."
msgstr "Enter names of indexes to delegate to Solr. One per line."
msgid "Configure portal"
msgstr "Configure portal"
+#~ msgid "Configure Solr delegated indexes"
+#~ msgstr "Configure Solr delegated indexes"
+
#~ msgid "Modified on ${date} at ${time} – creator: ${creator}"
#~ msgstr "Modified on ${date} at ${time} – creator: ${creator}"
msgid ""
msgstr ""
"Project-Id-Version: Plinn 2.0\n"
-"POT-Creation-Date: Tue Oct 14 15:55:50 2014\n"
-"PO-Revision-Date: 2014-10-14 15:57+0200\n"
+"POT-Creation-Date: Mon Dec 15 15:35:05 2014\n"
+"PO-Revision-Date: 2014-12-15 15:42+0100\n"
"Last-Translator: Benoît PIN\n"
"Language-Team: CRI http://cri.ensmp.fr\n"
"Language: \n"
#: n/skins/content/topic_edit_template.pt:26
#: n/skins/custom_content/document_edit_template.pt:23
#: n/skins/custom_content/event_edit_template.pt:135
-#: n/skins/generic/search_results_template.pt:87 n/www/manage_solr.pt:13
+#: n/skins/generic/search_results_template.pt:87 n/www/manage_solr.pt:20
msgid "Save"
msgstr "Enregistrer"
msgid "(No description)"
msgstr "(Sans description)"
-#: n/www/manage_solr.pt:4
-msgid "Configure Solr delegated indexes"
-msgstr "Configurer les index délégués à Solr"
+#: n/www/manage_solr.pt:6
+msgid "Solr server url"
+msgstr "Url du serveur Solr"
-#: n/www/manage_solr.pt:5
+#: n/www/manage_solr.pt:11
+msgid "Solr delegated indexes"
+msgstr "Index délégués à Solr"
+
+#: n/www/manage_solr.pt:12
msgid "Enter names of indexes to delegate to Solr. One per line."
msgstr "Entrer les noms des index à déléguer à Solr. Un par ligne."
msgid "Configure portal"
msgstr "Configurer portail"
+#~ msgid "Configure Solr delegated indexes"
+#~ msgstr "Configurer les index délégués à Solr"
+
#~ msgid "Modified on ${date} at ${time} – creator: ${creator}"
#~ msgstr "Modifié le ${date} à ${time} – créateur : ${creator}"
msgid ""
msgstr ""
"Project-Id-Version: 2.0 beta 1\n"
-"POT-Creation-Date: Tue Oct 14 15:55:50 2014\n"
+"POT-Creation-Date: Mon Dec 15 15:39:47 2014\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Zope 3 Developers <zope-dev@zope.org>\n"
#: n/skins/custom_content/document_edit_template.pt:23
#: n/skins/custom_content/event_edit_template.pt:135
#: n/skins/generic/search_results_template.pt:87
-#: n/www/manage_solr.pt:13
+#: n/www/manage_solr.pt:20
msgid "Save"
msgstr ""
msgid "(No description)"
msgstr ""
-#: n/www/manage_solr.pt:4
-msgid "Configure Solr delegated indexes"
+#: n/www/manage_solr.pt:6
+msgid "Solr server url"
msgstr ""
-#: n/www/manage_solr.pt:5
+#: n/www/manage_solr.pt:11
+msgid "Solr delegated indexes"
+msgstr ""
+
+#: n/www/manage_solr.pt:12
msgid "Enter names of indexes to delegate to Solr. One per line."
msgstr ""
<tal:header tal:replace="structure here/manage_page_header">header</tal:header>
<tal:tabs tal:replace="structure here/manage_tabs">tabs</tal:tabs>
<div i18n:domain="plinn">
- <h3 i18n:translate="">Configure Solr delegated indexes</h3>
- <p class="form-help" i18n:translate="">
- Enter names of indexes to delegate to Solr.
- One per line.
- </p>
<form action="." method="post" tal:attributes="action here/absolute_url">
- <textarea name="indexes:lines" cols="40" rows="24"
- tal:content="python:'\n'.join(here.getDelegatedIndexes())">
- </textarea><br/>
- <input type="submit" name="setDelegatedIndexes:method" value="Save" i18n:attributes="value" />
+ <div>
+ <h3 i18n:translate="">Solr server url</h3>
+ <input type="text" name="url" size="60"
+ tal:attributes="value here/solr_url"/>
+ </div>
+ <div>
+ <h3 i18n:translate="">Solr delegated indexes</h3>
+ <p class="form-help" i18n:translate="">
+ Enter names of indexes to delegate to Solr.
+ One per line.
+ </p>
+ <textarea name="indexes:lines" cols="40" rows="24"
+ tal:content="python:'\n'.join(here.getDelegatedIndexes())">
+ </textarea><br/>
+ </div>
+ <input type="submit" name="setSolrProperties:method" value="Save" i18n:attributes="value" />
</form>
</div>
<tal:footer tal:replace="structure here/manage_page_footer">footer</tal:footer>
-
-