From: Benoît Pin Date: Mon, 15 Dec 2014 14:45:25 +0000 (+0100) Subject: Édition de l'url du serveur Solr. X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/commitdiff_plain/3c4367d8e03450e9a73e61f4247145d2b6c86a33 Édition de l'url du serveur Solr. --- 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.') diff --git a/locales/en/LC_MESSAGES/plinn.mo b/locales/en/LC_MESSAGES/plinn.mo index 867dfff..fa2a7df 100644 Binary files a/locales/en/LC_MESSAGES/plinn.mo and b/locales/en/LC_MESSAGES/plinn.mo differ diff --git a/locales/en/LC_MESSAGES/plinn.po b/locales/en/LC_MESSAGES/plinn.po index 6bf883f..18ef7b0 100644 --- a/locales/en/LC_MESSAGES/plinn.po +++ b/locales/en/LC_MESSAGES/plinn.po @@ -14,8 +14,8 @@ 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 \n" "Language-Team: Zope 3 Developers \n" "Language: \n" @@ -236,7 +236,7 @@ msgstr "Add" #: 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" @@ -2071,11 +2071,15 @@ msgstr "(No title)" 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." @@ -2933,5 +2937,8 @@ msgstr "Directory" 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}" diff --git a/locales/fr/LC_MESSAGES/plinn.mo b/locales/fr/LC_MESSAGES/plinn.mo index 9ec97d3..c99b2ea 100644 Binary files a/locales/fr/LC_MESSAGES/plinn.mo and b/locales/fr/LC_MESSAGES/plinn.mo differ diff --git a/locales/fr/LC_MESSAGES/plinn.po b/locales/fr/LC_MESSAGES/plinn.po index f7e3677..a6f7089 100644 --- a/locales/fr/LC_MESSAGES/plinn.po +++ b/locales/fr/LC_MESSAGES/plinn.po @@ -1,8 +1,8 @@ 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" @@ -229,7 +229,7 @@ msgstr "Ajouter" #: 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" @@ -2100,11 +2100,15 @@ msgstr "(Sans titre)" 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." @@ -2967,6 +2971,9 @@ msgstr "Annuaire" 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}" diff --git a/locales/plinn.pot b/locales/plinn.pot index 6334743..f288f5a 100644 --- a/locales/plinn.pot +++ b/locales/plinn.pot @@ -14,7 +14,7 @@ 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 \n" "Language-Team: Zope 3 Developers \n" @@ -238,7 +238,7 @@ msgstr "" #: 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 "" @@ -1921,11 +1921,15 @@ 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 "" diff --git a/www/manage_solr.pt b/www/manage_solr.pt index 3903698..48e669e 100644 --- a/www/manage_solr.pt +++ b/www/manage_solr.pt @@ -1,18 +1,23 @@ header tabs
-

Configure Solr delegated indexes

-

- Enter names of indexes to delegate to Solr. - One per line. -

-
- +
+

Solr server url

+ +
+
+

Solr delegated indexes

+

+ Enter names of indexes to delegate to Solr. + One per line. +

+
+
+
footer - -