[security view] slight changes to make things clearer
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 19 Sep 2011 14:22:28 +0200
changeset 7808 d90338624ea0
parent 7807 f2a5805615f8
child 7809 f17440081914
[security view] slight changes to make things clearer
i18n/de.po
i18n/en.po
i18n/es.po
i18n/fr.po
web/views/management.py
--- a/i18n/de.po	Fri Sep 16 17:30:26 2011 +0200
+++ b/i18n/de.po	Mon Sep 19 14:22:28 2011 +0200
@@ -549,6 +549,9 @@
 msgid "Manage"
 msgstr ""
 
+msgid "Manage security"
+msgstr "Sicherheitsverwaltung"
+
 msgid "Most referenced classes"
 msgstr "meist-referenzierte Klassen"
 
@@ -645,6 +648,9 @@
 msgid "OR"
 msgstr "oder"
 
+msgid "Ownership"
+msgstr "Eigentum"
+
 msgid "Parent class:"
 msgstr "Elternklasse"
 
@@ -697,6 +703,9 @@
 msgid "Schema of the data model"
 msgstr "Schema des Datenmodells"
 
+msgid "Schema's permissions definitions"
+msgstr "Im Schema definierte Rechte"
+
 msgid "Search for"
 msgstr "Suchen"
 
@@ -3036,9 +3045,6 @@
 msgid "manage permissions"
 msgstr "Rechte verwalten"
 
-msgid "manage security"
-msgstr "Sicherheitsverwaltung"
-
 msgid "managers"
 msgstr "Administratoren"
 
@@ -3326,9 +3332,6 @@
 msgid "owners"
 msgstr "Besitzer"
 
-msgid "ownership"
-msgstr "Eigentum"
-
 msgid "ownerships have been changed"
 msgstr "Die Eigentumsrechte sind geändert worden."
 
@@ -3646,9 +3649,6 @@
 msgid "saturday"
 msgstr "Samstag"
 
-msgid "schema's permissions definitions"
-msgstr "Im Schema definierte Rechte"
-
 msgid "schema-diagram"
 msgstr "Diagramm"
 
--- a/i18n/en.po	Fri Sep 16 17:30:26 2011 +0200
+++ b/i18n/en.po	Mon Sep 19 14:22:28 2011 +0200
@@ -525,6 +525,9 @@
 msgid "Manage"
 msgstr ""
 
+msgid "Manage security"
+msgstr ""
+
 msgid "Most referenced classes"
 msgstr ""
 
@@ -619,6 +622,9 @@
 msgid "OR"
 msgstr ""
 
+msgid "Ownership"
+msgstr ""
+
 msgid "Parent class:"
 msgstr ""
 
@@ -671,6 +677,9 @@
 msgid "Schema of the data model"
 msgstr ""
 
+msgid "Schema's permissions definitions"
+msgstr ""
+
 msgid "Search for"
 msgstr ""
 
@@ -2949,9 +2958,6 @@
 msgid "manage permissions"
 msgstr ""
 
-msgid "manage security"
-msgstr ""
-
 msgid "managers"
 msgstr ""
 
@@ -3237,9 +3243,6 @@
 msgid "owners"
 msgstr ""
 
-msgid "ownership"
-msgstr ""
-
 msgid "ownerships have been changed"
 msgstr ""
 
@@ -3553,9 +3556,6 @@
 msgid "saturday"
 msgstr ""
 
-msgid "schema's permissions definitions"
-msgstr ""
-
 msgid "schema-diagram"
 msgstr "diagram"
 
--- a/i18n/es.po	Fri Sep 16 17:30:26 2011 +0200
+++ b/i18n/es.po	Mon Sep 19 14:22:28 2011 +0200
@@ -549,6 +549,9 @@
 msgid "Manage"
 msgstr "Administración"
 
+msgid "Manage security"
+msgstr "Gestión de seguridad"
+
 msgid "Most referenced classes"
 msgstr "Clases más referenciadas"
 
@@ -643,6 +646,9 @@
 msgid "OR"
 msgstr "O"
 
+msgid "Ownership"
+msgstr "Propiedad"
+
 msgid "Parent class:"
 msgstr "Clase padre:"
 
@@ -695,6 +701,9 @@
 msgid "Schema of the data model"
 msgstr "Esquema del modelo de datos"
 
+msgid "Schema's permissions definitions"
+msgstr "Definiciones de permisos del esquema"
+
 msgid "Search for"
 msgstr "Buscar"
 
@@ -3077,9 +3086,6 @@
 msgid "manage permissions"
 msgstr "Gestión de permisos"
 
-msgid "manage security"
-msgstr "Gestión de seguridad"
-
 msgid "managers"
 msgstr "Administradores"
 
@@ -3367,9 +3373,6 @@
 msgid "owners"
 msgstr "Proprietarios"
 
-msgid "ownership"
-msgstr "Propiedad"
-
 msgid "ownerships have been changed"
 msgstr "Derechos de propiedad modificados"
 
@@ -3696,9 +3699,6 @@
 msgid "saturday"
 msgstr "Sábado"
 
-msgid "schema's permissions definitions"
-msgstr "Definiciones de permisos del esquema"
-
 msgid "schema-diagram"
 msgstr "Gráfica"
 
--- a/i18n/fr.po	Fri Sep 16 17:30:26 2011 +0200
+++ b/i18n/fr.po	Mon Sep 19 14:22:28 2011 +0200
@@ -549,6 +549,9 @@
 msgid "Manage"
 msgstr "Administration"
 
+msgid "Manage security"
+msgstr "Gestion de la sécurité"
+
 msgid "Most referenced classes"
 msgstr "Classes les plus référencées"
 
@@ -643,6 +646,9 @@
 msgid "OR"
 msgstr "OU"
 
+msgid "Ownership"
+msgstr "Propriété"
+
 msgid "Parent class:"
 msgstr "Classe parente"
 
@@ -695,6 +701,9 @@
 msgid "Schema of the data model"
 msgstr "Schéma du modèle de données"
 
+msgid "Schema's permissions definitions"
+msgstr "Permissions définies dans le schéma"
+
 msgid "Search for"
 msgstr "Rechercher"
 
@@ -3079,9 +3088,6 @@
 msgid "manage permissions"
 msgstr "gestion des permissions"
 
-msgid "manage security"
-msgstr "gestion de la sécurité"
-
 msgid "managers"
 msgstr "administrateurs"
 
@@ -3369,9 +3375,6 @@
 msgid "owners"
 msgstr "propriétaires"
 
-msgid "ownership"
-msgstr "propriété"
-
 msgid "ownerships have been changed"
 msgstr "les droits de propriété ont été modifiés"
 
@@ -3701,9 +3704,6 @@
 msgid "saturday"
 msgstr "samedi"
 
-msgid "schema's permissions definitions"
-msgstr "permissions définies dans le schéma"
-
 msgid "schema-diagram"
 msgstr "diagramme"
 
--- a/web/views/management.py	Fri Sep 16 17:30:26 2011 +0200
+++ b/web/views/management.py	Mon Sep 19 14:22:28 2011 +0200
@@ -55,9 +55,9 @@
              xml_escape(entity.absolute_url()),
              xml_escape(entity.dc_title())))
         # first show permissions defined by the schema
-        self.w('<h2>%s</h2>' % _('schema\'s permissions definitions'))
+        self.w('<h2>%s</h2>' % _('Schema\'s permissions definitions'))
         self.permissions_table(entity.e_schema)
-        self.w('<h2>%s</h2>' % _('manage security'))
+        self.w('<h2>%s</h2>' % _('Manage security'))
         # ownership information
         if self._cw.vreg.schema.rschema('owned_by').has_perm(self._cw, 'add',
                                                     fromeid=entity.eid):
@@ -66,10 +66,10 @@
             self.owned_by_information(entity)
 
     def owned_by_edit_form(self, entity):
-        self.w('<h3>%s</h3>' % self._cw._('ownership'))
+        self.w('<h3>%s</h3>' % self._cw._('Ownership'))
         msg = self._cw._('ownerships have been changed')
         form = self._cw.vreg['forms'].select('base', self._cw, entity=entity,
-                                         form_renderer_id='base', submitmsg=msg,
+                                         form_renderer_id='onerowtable', submitmsg=msg,
                                          form_buttons=[wdgs.SubmitButton()],
                                          domid='ownership%s' % entity.eid,
                                          __redirectvid='security',
@@ -81,7 +81,7 @@
     def owned_by_information(self, entity):
         ownersrset = entity.related('owned_by')
         if ownersrset:
-            self.w('<h3>%s</h3>' % self._cw._('ownership'))
+            self.w('<h3>%s</h3>' % self._cw._('Ownership'))
             self.w(u'<div class="ownerInfo">')
             self.w(self._cw._('this entity is currently owned by') + ' ')
             self.wview('csv', entity.related('owned_by'), 'null')