Add a help_text to pattern of ServicePattern

This commit is contained in:
Valentin Samir 2015-12-12 18:21:10 +01:00
parent 51fa0861f5
commit bfad265299
6 changed files with 106 additions and 63 deletions

View File

@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: cas_server\n" "Project-Id-Version: cas_server\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-12-11 19:50+0100\n" "POT-Creation-Date: 2015-12-12 18:20+0100\n"
"PO-Revision-Date: 2015-12-12 11:44+0100\n" "PO-Revision-Date: 2015-12-12 18:20+0100\n"
"Last-Translator: Valentin Samir <valentin.samir@crans.org>\n" "Last-Translator: Valentin Samir <valentin.samir@crans.org>\n"
"Language-Team: django <LL@li.org>\n" "Language-Team: django <LL@li.org>\n"
"Language: en\n" "Language: en\n"
@ -45,94 +45,101 @@ msgstr "Clean deleted sessions"
msgid "Clean old trickets" msgid "Clean old trickets"
msgstr "Clean old trickets" msgstr "Clean old trickets"
#: models.py:88 #: models.py:90
#, python-format #, python-format
msgid "Error during service logout %s" msgid "Error during service logout %s"
msgstr "Error during service logout %s" msgstr "Error during service logout %s"
#: models.py:158 #: models.py:160
msgid "position" msgid "position"
msgstr "position" msgstr "position"
#: models.py:165 models.py:264 #: models.py:167 models.py:271
msgid "name" msgid "name"
msgstr "name" msgstr "name"
#: models.py:166 #: models.py:168
msgid "A name for the service" msgid "A name for the service"
msgstr "A name for the service" msgstr "A name for the service"
#: models.py:171 models.py:292 models.py:310 #: models.py:173 models.py:299 models.py:317
msgid "pattern" msgid "pattern"
msgstr "pattern" msgstr "pattern"
#: models.py:177 #: models.py:175
msgid ""
"A regular expression matching services. Will usually looks like '^https://"
"some\\.server\\.com/path/.*$'.As it is a regular expression, special "
"character must be escaped with a '\\'."
msgstr ""
#: models.py:184
msgid "user field" msgid "user field"
msgstr "" msgstr ""
#: models.py:178 #: models.py:185
msgid "Name of the attribut to transmit as username, empty = login" msgid "Name of the attribut to transmit as username, empty = login"
msgstr "Name of the attribut to transmit as username, empty = login" msgstr "Name of the attribut to transmit as username, empty = login"
#: models.py:182 #: models.py:189
msgid "restrict username" msgid "restrict username"
msgstr "" msgstr ""
#: models.py:183 #: models.py:190
msgid "Limit username allowed to connect to the list provided bellow" msgid "Limit username allowed to connect to the list provided bellow"
msgstr "Limit username allowed to connect to the list provided bellow" msgstr "Limit username allowed to connect to the list provided bellow"
#: models.py:187 #: models.py:194
msgid "proxy" msgid "proxy"
msgstr "proxy" msgstr "proxy"
#: models.py:188 #: models.py:195
msgid "Proxy tickets can be delivered to the service" msgid "Proxy tickets can be delivered to the service"
msgstr "Proxy tickets can be delivered to the service" msgstr "Proxy tickets can be delivered to the service"
#: models.py:192 #: models.py:199
msgid "proxy callback" msgid "proxy callback"
msgstr "proxy callback" msgstr "proxy callback"
#: models.py:193 #: models.py:200
msgid "can be used as a proxy callback to deliver PGT" msgid "can be used as a proxy callback to deliver PGT"
msgstr "can be used as a proxy callback to deliver PGT" msgstr "can be used as a proxy callback to deliver PGT"
#: models.py:197 #: models.py:204
msgid "single log out" msgid "single log out"
msgstr "" msgstr ""
#: models.py:198 #: models.py:205
msgid "Enable SLO for the service" msgid "Enable SLO for the service"
msgstr "Enable SLO for the service" msgstr "Enable SLO for the service"
#: models.py:205 #: models.py:212
msgid "single log out callback" msgid "single log out callback"
msgstr "" msgstr ""
#: models.py:206 #: models.py:213
msgid "" msgid ""
"URL where the SLO request will be POST. empty = service url\n" "URL where the SLO request will be POST. empty = service url\n"
"This is usefull for non HTTP proxied services." "This is usefull for non HTTP proxied services."
msgstr "" msgstr ""
#: models.py:249 #: models.py:256
msgid "username" msgid "username"
msgstr "" msgstr ""
#: models.py:250 #: models.py:257
msgid "username allowed to connect to the service" msgid "username allowed to connect to the service"
msgstr "username allowed to connect to the service" msgstr "username allowed to connect to the service"
#: models.py:265 #: models.py:272
msgid "name of an attribut to send to the service, use * for all attributes" msgid "name of an attribut to send to the service, use * for all attributes"
msgstr "name of an attribut to send to the service, use * for all attributes" msgstr "name of an attribut to send to the service, use * for all attributes"
#: models.py:270 models.py:316 #: models.py:277 models.py:323
msgid "replace" msgid "replace"
msgstr "replace" msgstr "replace"
#: models.py:271 #: models.py:278
msgid "" msgid ""
"name under which the attribut will be showto the service. empty = default " "name under which the attribut will be showto the service. empty = default "
"name of the attribut" "name of the attribut"
@ -140,31 +147,31 @@ msgstr ""
"name under which the attribut will be showto the service. empty = default " "name under which the attribut will be showto the service. empty = default "
"name of the attribut" "name of the attribut"
#: models.py:287 models.py:305 #: models.py:294 models.py:312
msgid "attribut" msgid "attribut"
msgstr "attribut" msgstr "attribut"
#: models.py:288 #: models.py:295
msgid "Name of the attribut which must verify pattern" msgid "Name of the attribut which must verify pattern"
msgstr "Name of the attribut which must verify pattern" msgstr "Name of the attribut which must verify pattern"
#: models.py:293 #: models.py:300
msgid "a regular expression" msgid "a regular expression"
msgstr "a regular expression" msgstr "a regular expression"
#: models.py:306 #: models.py:313
msgid "Name of the attribut for which the value must be replace" msgid "Name of the attribut for which the value must be replace"
msgstr "Name of the attribut for which the value must be replace" msgstr "Name of the attribut for which the value must be replace"
#: models.py:311 #: models.py:318
msgid "An regular expression maching whats need to be replaced" msgid "An regular expression maching whats need to be replaced"
msgstr "An regular expression maching whats need to be replaced" msgstr "An regular expression maching whats need to be replaced"
#: models.py:317 #: models.py:324
msgid "replace expression, groups are capture by \\1, \\2 …" msgid "replace expression, groups are capture by \\1, \\2 …"
msgstr "replace expression, groups are capture by \\1, \\2 …" msgstr "replace expression, groups are capture by \\1, \\2 …"
#: models.py:407 #: models.py:416
#, python-format #, python-format
msgid "" msgid ""
"Error during service logout %(service)s:\n" "Error during service logout %(service)s:\n"

View File

@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: cas_server\n" "Project-Id-Version: cas_server\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-12-11 19:50+0100\n" "POT-Creation-Date: 2015-12-12 18:18+0100\n"
"PO-Revision-Date: 2015-12-11 19:51+0100\n" "PO-Revision-Date: 2015-12-12 18:20+0100\n"
"Last-Translator: Valentin Samir <valentin.samir@crans.org>\n" "Last-Translator: Valentin Samir <valentin.samir@crans.org>\n"
"Language-Team: django <LL@li.org>\n" "Language-Team: django <LL@li.org>\n"
"Language: fr\n" "Language: fr\n"
@ -46,76 +46,87 @@ msgstr "Nettoyer les sessions supprimées"
msgid "Clean old trickets" msgid "Clean old trickets"
msgstr "Nettoyer les vieux tickets" msgstr "Nettoyer les vieux tickets"
#: models.py:88 #: models.py:90
#, python-format #, python-format
msgid "Error during service logout %s" msgid "Error during service logout %s"
msgstr "Une erreur est survenue durant la déconnexion du service %s" msgstr "Une erreur est survenue durant la déconnexion du service %s"
#: models.py:158 #: models.py:160
msgid "position" msgid "position"
msgstr "position" msgstr "position"
#: models.py:165 models.py:264 #: models.py:167 models.py:271
msgid "name" msgid "name"
msgstr "nom" msgstr "nom"
#: models.py:166 #: models.py:168
msgid "A name for the service" msgid "A name for the service"
msgstr "Un nom pour le service" msgstr "Un nom pour le service"
#: models.py:171 models.py:292 models.py:310 #: models.py:173 models.py:299 models.py:317
msgid "pattern" msgid "pattern"
msgstr "motif" msgstr "motif"
#: models.py:177 #: models.py:175
msgid ""
"A regular expression matching services. Will usually looks like '^https://"
"some\\.server\\.com/path/.*$'.As it is a regular expression, special "
"character must be escaped with a '\\'."
msgstr ""
"Une expression rationnelle reconnaissant un service. Devrait généralement "
"ressemblé à '^https://un\\.serveur\\.fr/chemin/.*$'. Comme il s'agit d'une "
"expression rationnelle, les caractères spéciaux doivent être échappés avec "
"un '\\'."
#: models.py:184
msgid "user field" msgid "user field"
msgstr "champ utilisateur" msgstr "champ utilisateur"
#: models.py:178 #: models.py:185
msgid "Name of the attribut to transmit as username, empty = login" msgid "Name of the attribut to transmit as username, empty = login"
msgstr "" msgstr ""
"Nom de l'attribut devant être transmis comme nom d'utilisateur au service. " "Nom de l'attribut devant être transmis comme nom d'utilisateur au service. "
"vide = nom de connection" "vide = nom de connection"
#: models.py:182 #: models.py:189
msgid "restrict username" msgid "restrict username"
msgstr "limiter les noms d'utilisateurs" msgstr "limiter les noms d'utilisateurs"
#: models.py:183 #: models.py:190
msgid "Limit username allowed to connect to the list provided bellow" msgid "Limit username allowed to connect to the list provided bellow"
msgstr "" msgstr ""
"Limiter les noms d'utilisateurs autorisé à se connecter à la liste fournie " "Limiter les noms d'utilisateurs autorisé à se connecter à la liste fournie "
"ci-dessous" "ci-dessous"
#: models.py:187 #: models.py:194
msgid "proxy" msgid "proxy"
msgstr "proxy" msgstr "proxy"
#: models.py:188 #: models.py:195
msgid "Proxy tickets can be delivered to the service" msgid "Proxy tickets can be delivered to the service"
msgstr "des proxy tickets peuvent être délivrés au service" msgstr "des proxy tickets peuvent être délivrés au service"
#: models.py:192 #: models.py:199
msgid "proxy callback" msgid "proxy callback"
msgstr "" msgstr ""
#: models.py:193 #: models.py:200
msgid "can be used as a proxy callback to deliver PGT" msgid "can be used as a proxy callback to deliver PGT"
msgstr "peut être utilisé comme un callback pour recevoir un PGT" msgstr "peut être utilisé comme un callback pour recevoir un PGT"
#: models.py:197 #: models.py:204
msgid "single log out" msgid "single log out"
msgstr "" msgstr ""
#: models.py:198 #: models.py:205
msgid "Enable SLO for the service" msgid "Enable SLO for the service"
msgstr "Active le SLO pour le service" msgstr "Active le SLO pour le service"
#: models.py:205 #: models.py:212
msgid "single log out callback" msgid "single log out callback"
msgstr "" msgstr ""
#: models.py:206 #: models.py:213
msgid "" msgid ""
"URL where the SLO request will be POST. empty = service url\n" "URL where the SLO request will be POST. empty = service url\n"
"This is usefull for non HTTP proxied services." "This is usefull for non HTTP proxied services."
@ -124,55 +135,55 @@ msgstr ""
"service\n" "service\n"
"Ceci n'est utilise que pour des services non HTTP proxifiés" "Ceci n'est utilise que pour des services non HTTP proxifiés"
#: models.py:249 #: models.py:256
msgid "username" msgid "username"
msgstr "nom d'utilisateur" msgstr "nom d'utilisateur"
#: models.py:250 #: models.py:257
msgid "username allowed to connect to the service" msgid "username allowed to connect to the service"
msgstr "noms d'utilisateurs autorisé à se connecter au service" msgstr "noms d'utilisateurs autorisé à se connecter au service"
#: models.py:265 #: models.py:272
msgid "name of an attribut to send to the service, use * for all attributes" msgid "name of an attribut to send to the service, use * for all attributes"
msgstr "" msgstr ""
"nom d'un attribut a envoyer au service, utiliser * pour tous les attributs" "nom d'un attribut a envoyer au service, utiliser * pour tous les attributs"
#: models.py:270 models.py:316 #: models.py:277 models.py:323
msgid "replace" msgid "replace"
msgstr "remplacement" msgstr "remplacement"
#: models.py:271 #: models.py:278
msgid "" msgid ""
"name under which the attribut will be showto the service. empty = default " "name under which the attribut will be showto the service. empty = default "
"name of the attribut" "name of the attribut"
msgstr "" msgstr ""
"nom sous lequel l'attribut sera rendu visible au service. vide = inchangé" "nom sous lequel l'attribut sera rendu visible au service. vide = inchangé"
#: models.py:287 models.py:305 #: models.py:294 models.py:312
msgid "attribut" msgid "attribut"
msgstr "attribut" msgstr "attribut"
#: models.py:288 #: models.py:295
msgid "Name of the attribut which must verify pattern" msgid "Name of the attribut which must verify pattern"
msgstr "Nom de l'attribut devant vérifier un motif" msgstr "Nom de l'attribut devant vérifier un motif"
#: models.py:293 #: models.py:300
msgid "a regular expression" msgid "a regular expression"
msgstr "une expression régulière" msgstr "une expression régulière"
#: models.py:306 #: models.py:313
msgid "Name of the attribut for which the value must be replace" msgid "Name of the attribut for which the value must be replace"
msgstr "nom de l'attribue pour lequel la valeur doit être remplacé" msgstr "nom de l'attribue pour lequel la valeur doit être remplacé"
#: models.py:311 #: models.py:318
msgid "An regular expression maching whats need to be replaced" msgid "An regular expression maching whats need to be replaced"
msgstr "une expression régulière reconnaissant ce qui doit être remplacé" msgstr "une expression régulière reconnaissant ce qui doit être remplacé"
#: models.py:317 #: models.py:324
msgid "replace expression, groups are capture by \\1, \\2 …" msgid "replace expression, groups are capture by \\1, \\2 …"
msgstr "expression de remplacement, les groupe sont capturé par \\1, \\2" msgstr "expression de remplacement, les groupe sont capturé par \\1, \\2"
#: models.py:407 #: models.py:416
#, python-format #, python-format
msgid "" msgid ""
"Error during service logout %(service)s:\n" "Error during service logout %(service)s:\n"

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cas_server', '0002_auto_20151212_1300'),
]
operations = [
migrations.AlterField(
model_name='servicepattern',
name='pattern',
field=models.CharField(help_text="A regular expression matching services. Will usually looks like '^https://some\\.server\\.com/path/.*$'.As it is a regular expression, special character must be escaped with a '\\'.", unique=True, max_length=255, verbose_name='pattern'),
preserve_default=True,
),
]

View File

@ -170,7 +170,12 @@ class ServicePattern(models.Model):
pattern = models.CharField( pattern = models.CharField(
max_length=255, max_length=255,
unique=True, unique=True,
verbose_name=_(u"pattern") verbose_name=_(u"pattern"),
help_text=_(
"A regular expression matching services. "
"Will usually looks like '^https://some\\.server\\.com/path/.*$'."
"As it is a regular expression, special character must be escaped with a '\\'."
)
) )
user_field = models.CharField( user_field = models.CharField(
max_length=255, max_length=255,