Version 0.1.3 0.1.3
authorThierry Florac <thierry.florac@onf.fr>
Mon, 18 Jan 2016 18:34:11 +0100
changeset 59 45ce94599ba1
parent 58 5085503b72c2
child 60 188ce5a5851e
Version 0.1.3
buildout.cfg
docs/HISTORY.txt
setup.py
src/pyams_security.egg-info/PKG-INFO
src/pyams_security.egg-info/SOURCES.txt
src/pyams_security/locales/fr/LC_MESSAGES/pyams_security.mo
src/pyams_security/locales/fr/LC_MESSAGES/pyams_security.po
src/pyams_security/locales/pyams_security.pot
src/pyams_security/principal.py
src/pyams_security/zmi/templates/user-login.pt
--- a/buildout.cfg	Mon Jan 18 18:31:24 2016 +0100
+++ b/buildout.cfg	Mon Jan 18 18:34:11 2016 +0100
@@ -62,4 +62,4 @@
 eggs = pyams_security [test]
 
 [versions]
-pyams_security = 0.1.2
+pyams_security = 0.1.3
--- a/docs/HISTORY.txt	Mon Jan 18 18:31:24 2016 +0100
+++ b/docs/HISTORY.txt	Mon Jan 18 18:34:11 2016 +0100
@@ -1,6 +1,11 @@
 History
 =======
 
+0.1.3
+-----
+ - added profile to user's menu
+ - added ACL on user profile
+
 0.1.2
 -----
  - changed menus icon class
--- a/setup.py	Mon Jan 18 18:31:24 2016 +0100
+++ b/setup.py	Mon Jan 18 18:34:11 2016 +0100
@@ -22,7 +22,7 @@
 README = os.path.join(DOCS, 'README.txt')
 HISTORY = os.path.join(DOCS, 'HISTORY.txt')
 
-version = '0.1.2'
+version = '0.1.3'
 long_description = open(README).read() + '\n\n' + open(HISTORY).read()
 
 tests_require = []
--- a/src/pyams_security.egg-info/PKG-INFO	Mon Jan 18 18:31:24 2016 +0100
+++ b/src/pyams_security.egg-info/PKG-INFO	Mon Jan 18 18:34:11 2016 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pyams-security
-Version: 0.1.2
+Version: 0.1.3
 Summary: PyAMS security interfaces and classes
 Home-page: http://hg.ztfy.org/pyams/pyams_security
 Author: Thierry Florac
@@ -106,6 +106,9 @@
         History
         =======
         
+        0.1.3
+        -----
+         -
         0.1.2
         -----
          - changed menus icon class
--- a/src/pyams_security.egg-info/SOURCES.txt	Mon Jan 18 18:31:24 2016 +0100
+++ b/src/pyams_security.egg-info/SOURCES.txt	Mon Jan 18 18:34:11 2016 +0100
@@ -106,6 +106,7 @@
 src/pyams_security/zmi/plugin/group.py
 src/pyams_security/zmi/plugin/social.py
 src/pyams_security/zmi/plugin/userfolder.py
+src/pyams_security/zmi/templates/user-login.pt
 src/pyams_security/zmi/widget/__init__.py
 src/pyams_security/zmi/widget/templates/ordered-list-display.pt
 src/pyams_security/zmi/widget/templates/ordered-list-input.pt
\ No newline at end of file
Binary file src/pyams_security/locales/fr/LC_MESSAGES/pyams_security.mo has changed
--- a/src/pyams_security/locales/fr/LC_MESSAGES/pyams_security.po	Mon Jan 18 18:31:24 2016 +0100
+++ b/src/pyams_security/locales/fr/LC_MESSAGES/pyams_security.po	Mon Jan 18 18:34:11 2016 +0100
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2015-09-25 16:58+0200\n"
+"POT-Creation-Date: 2016-01-18 16:24+0100\n"
 "PO-Revision-Date: 2015-02-18 22:19+0100\n"
 "Last-Translator: Thierry Florac <tflorac@ulthar.net>\n"
 "Language-Team: French\n"
@@ -45,8 +45,8 @@
 msgstr "Gérer l'attribution des rôles"
 
 #: src/pyams_security/principal.py:57
-msgid "Not logged in"
-msgstr "Non connecté"
+msgid "<missing principal ID>"
+msgstr "< utilisateur non défini >"
 
 #: src/pyams_security/widget/templates/principals-set-input.pt:4
 #: src/pyams_security/widget/templates/principal-input.pt:4
@@ -55,7 +55,7 @@
 msgid "Clear selected values"
 msgstr "Effacer les valeurs sélectionnées"
 
-#: src/pyams_security/widget/templates/permissions-set-input.pt:11
+#: src/pyams_security/widget/templates/permissions-set-input.pt:12
 msgid "Select permissions..."
 msgstr "Sélectionner des permissions..."
 
@@ -144,18 +144,22 @@
 msgid "Notifications properties"
 msgstr "Paramétrage des notifications"
 
-#: src/pyams_security/zmi/profile.py:42
+#: src/pyams_security/zmi/profile.py:49
 msgid "User profile"
 msgstr "Profil utilisateur"
 
-#: src/pyams_security/zmi/profile.py:54
+#: src/pyams_security/zmi/profile.py:59
 msgid "Edit user profile"
 msgstr "Modification du profil utilisateur"
 
-#: src/pyams_security/zmi/profile.py:78
+#: src/pyams_security/zmi/profile.py:83
 msgid "Public profile"
 msgstr "Profil public"
 
+#: src/pyams_security/zmi/profile.py:107
+msgid "Logout"
+msgstr "Déconnexion"
+
 #: src/pyams_security/zmi/security.py:58
 msgid "Access rules"
 msgstr "Droits d'accès"
@@ -292,7 +296,7 @@
 msgstr "Modification d'un dossier d'utilisateurs locaux"
 
 #: src/pyams_security/zmi/plugin/userfolder.py:183
-#: src/pyams_security/views/login.py:56
+#: src/pyams_security/views/login.py:64
 msgid "Login"
 msgstr "Code utilisateur"
 
@@ -405,7 +409,7 @@
 msgstr "Veuillez confirmer les paramètres de votre compte"
 
 #: src/pyams_security/views/userfolder.py:65
-#: src/pyams_security/views/login.py:142
+#: src/pyams_security/views/login.py:194
 msgid "Cancel"
 msgstr "Annuler"
 
@@ -446,32 +450,32 @@
 msgid "Can't retrieve user profile!"
 msgstr "Impossible d'accéder à votre compte utilisateur !"
 
-#: src/pyams_security/views/login.py:90 src/pyams_security/views/login.py:151
+#: src/pyams_security/views/login.py:98 src/pyams_security/views/login.py:203
 msgid "Please enter valid credentials to log-in"
 msgstr "Veuillez indiquer vos paramètres de connexion"
 
-#: src/pyams_security/views/login.py:57
+#: src/pyams_security/views/login.py:65
 #: src/pyams_security/interfaces/__init__.py:357
 #: src/pyams_security/interfaces/__init__.py:383
 #: src/pyams_security/interfaces/__init__.py:435
 msgid "Password"
 msgstr "Mot de passe"
 
-#: src/pyams_security/views/login.py:63
+#: src/pyams_security/views/login.py:71
 msgid "Reset"
 msgstr "Annuler"
 
-#: src/pyams_security/views/login.py:64 src/pyams_security/views/login.py:143
+#: src/pyams_security/views/login.py:72 src/pyams_security/views/login.py:195
 msgid "Connect"
 msgstr "Connexion"
 
-#: src/pyams_security/views/login.py:82
+#: src/pyams_security/views/login.py:90
 msgid "Missing security manager utility. Please contact administrator!"
 msgstr ""
 "Pas de gestionnaire de sécurité. Veuillez contacter l'administrateur du "
 "site !"
 
-#: src/pyams_security/views/login.py:78
+#: src/pyams_security/views/login.py:86
 msgid "Invalid credentials!"
 msgstr "Paramètres de connexion incorrects !"
 
@@ -1032,6 +1036,9 @@
 "Vous avez créé un nouveau compte que vous devez confirmer avant de pouvoir "
 "utiliser ce service."
 
+#~ msgid "Not logged in"
+#~ msgstr "Non connecté"
+
 #~ msgid "Security management"
 #~ msgstr "Paramètres de sécurité"
 
--- a/src/pyams_security/locales/pyams_security.pot	Mon Jan 18 18:31:24 2016 +0100
+++ b/src/pyams_security/locales/pyams_security.pot	Mon Jan 18 18:34:11 2016 +0100
@@ -1,12 +1,12 @@
 # 
 # SOME DESCRIPTIVE TITLE
 # This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2015.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
 #, fuzzy
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2015-09-25 16:58+0200\n"
+"POT-Creation-Date: 2016-01-18 16:24+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -45,7 +45,7 @@
 msgstr ""
 
 #: ./src/pyams_security/principal.py:57
-msgid "Not logged in"
+msgid "<missing principal ID>"
 msgstr ""
 
 #: ./src/pyams_security/widget/templates/principals-set-input.pt:4
@@ -55,7 +55,7 @@
 msgid "Clear selected values"
 msgstr ""
 
-#: ./src/pyams_security/widget/templates/permissions-set-input.pt:11
+#: ./src/pyams_security/widget/templates/permissions-set-input.pt:12
 msgid "Select permissions..."
 msgstr ""
 
@@ -144,18 +144,22 @@
 msgid "Notifications properties"
 msgstr ""
 
-#: ./src/pyams_security/zmi/profile.py:42
+#: ./src/pyams_security/zmi/profile.py:49
 msgid "User profile"
 msgstr ""
 
-#: ./src/pyams_security/zmi/profile.py:54
+#: ./src/pyams_security/zmi/profile.py:59
 msgid "Edit user profile"
 msgstr ""
 
-#: ./src/pyams_security/zmi/profile.py:78
+#: ./src/pyams_security/zmi/profile.py:83
 msgid "Public profile"
 msgstr ""
 
+#: ./src/pyams_security/zmi/profile.py:107
+msgid "Logout"
+msgstr ""
+
 #: ./src/pyams_security/zmi/security.py:58
 msgid "Access rules"
 msgstr ""
@@ -292,7 +296,7 @@
 msgstr ""
 
 #: ./src/pyams_security/zmi/plugin/userfolder.py:183
-#: ./src/pyams_security/views/login.py:56
+#: ./src/pyams_security/views/login.py:64
 msgid "Login"
 msgstr ""
 
@@ -403,7 +407,7 @@
 msgstr ""
 
 #: ./src/pyams_security/views/userfolder.py:65
-#: ./src/pyams_security/views/login.py:142
+#: ./src/pyams_security/views/login.py:194
 msgid "Cancel"
 msgstr ""
 
@@ -437,32 +441,32 @@
 msgid "Can't retrieve user profile!"
 msgstr ""
 
-#: ./src/pyams_security/views/login.py:90
-#: ./src/pyams_security/views/login.py:151
+#: ./src/pyams_security/views/login.py:98
+#: ./src/pyams_security/views/login.py:203
 msgid "Please enter valid credentials to log-in"
 msgstr ""
 
-#: ./src/pyams_security/views/login.py:57
+#: ./src/pyams_security/views/login.py:65
 #: ./src/pyams_security/interfaces/__init__.py:357
 #: ./src/pyams_security/interfaces/__init__.py:383
 #: ./src/pyams_security/interfaces/__init__.py:435
 msgid "Password"
 msgstr ""
 
-#: ./src/pyams_security/views/login.py:63
+#: ./src/pyams_security/views/login.py:71
 msgid "Reset"
 msgstr ""
 
-#: ./src/pyams_security/views/login.py:64
-#: ./src/pyams_security/views/login.py:143
+#: ./src/pyams_security/views/login.py:72
+#: ./src/pyams_security/views/login.py:195
 msgid "Connect"
 msgstr ""
 
-#: ./src/pyams_security/views/login.py:82
+#: ./src/pyams_security/views/login.py:90
 msgid "Missing security manager utility. Please contact administrator!"
 msgstr ""
 
-#: ./src/pyams_security/views/login.py:78
+#: ./src/pyams_security/views/login.py:86
 msgid "Invalid credentials!"
 msgstr ""
 
--- a/src/pyams_security/principal.py	Mon Jan 18 18:31:24 2016 +0100
+++ b/src/pyams_security/principal.py	Mon Jan 18 18:34:11 2016 +0100
@@ -54,7 +54,7 @@
     """Unknown principal info"""
 
     id = None
-    title = _("Not logged in")
+    title = _("<missing principal ID>")
 
 UnknownPrincipal = UnknownPrincipal()
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_security/zmi/templates/user-login.pt	Mon Jan 18 18:34:11 2016 +0100
@@ -0,0 +1,4 @@
+<li class="btn-success padding-left-10 padding-y-5">
+	<i class="fa fa-caret-right padding-right-5"></i>
+	<strong tal:content="request.principal.title">Principal</strong>
+</li>
\ No newline at end of file