[tryton-debian-vcs] tryton-modules-ldap-authentication branch upstream updated. upstream/2.8.0-1-g62cb6e0

git repository hosting tryton-debian-vcs at m9s.biz
Mon Nov 25 19:35:04 UTC 2013


The following commit has been merged in the upstream branch:
http://debian.tryton.org/gitweb/?p=packages/tryton-modules-ldap-authentication.git;a=commitdiff;h=upstream/2.8.0-1-g62cb6e0

commit 62cb6e0263de6a500b543a07515b27f2281d3799
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Sun Nov 24 17:27:20 2013 +0100

    Adding upstream version 3.0.0.

diff --git a/CHANGELOG b/CHANGELOG
index 831ac3d..b661834 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.0.0 - 2013-10-21
+* Bug fixes (see mercurial logs for details)
+
 Version 2.8.0 - 2013-04-22
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index d30bcae..961beed 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond_ldap_authentication
-Version: 2.8.0
+Version: 3.0.0
 Summary: Tryton module to authenticate users through LDAP
 Home-page: http://www.tryton.org/
 Author: Tryton
 Author-email: UNKNOWN
 License: GPL-3
-Download-URL: http://downloads.tryton.org/2.8/
+Download-URL: http://downloads.tryton.org/3.0/
 Description: trytond_ldap_authentication
         ===========================
         
@@ -59,6 +59,7 @@ Classifier: Natural Language :: English
 Classifier: Natural Language :: French
 Classifier: Natural Language :: German
 Classifier: Natural Language :: Russian
+Classifier: Natural Language :: Slovenian
 Classifier: Natural Language :: Spanish
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python :: 2.6
diff --git a/locale/ca_ES.po b/locale/ca_ES.po
index 312c0cb..8783db4 100644
--- a/locale/ca_ES.po
+++ b/locale/ca_ES.po
@@ -2,7 +2,6 @@
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
-#, fuzzy
 msgctxt "error:res.user:"
 msgid "You can not set the password of ldap user \"%s\"."
 msgstr "No podeu establir la contrasenya de l'usuari \"%s\" d'ldap."
diff --git a/locale/es_ES.po b/locale/es_ES.po
index 79e2b7c..726478c 100644
--- a/locale/es_ES.po
+++ b/locale/es_ES.po
@@ -2,7 +2,6 @@
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
-#, fuzzy
 msgctxt "error:res.user:"
 msgid "You can not set the password of ldap user \"%s\"."
 msgstr "No puede establecer la contraseña del usuario \"%s\" de ldap."
diff --git a/locale/fr_FR.po b/locale/fr_FR.po
index 5a75798..d43b296 100644
--- a/locale/fr_FR.po
+++ b/locale/fr_FR.po
@@ -4,7 +4,7 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
 
 msgctxt "error:res.user:"
 msgid "You can not set the password of ldap user \"%s\"."
-msgstr ""
+msgstr "Vous ne pouvez pas définir le mot de passe de l'utilisateur LDAP \"%s\"."
 
 msgctxt "field:ldap.connection,auth_base_dn:"
 msgid "Base DN"
@@ -43,14 +43,6 @@ msgid "Base"
 msgstr "Base"
 
 msgctxt "selection:ldap.connection,auth_scope:"
-msgid "Base"
-msgstr "Base"
-
-msgctxt "selection:ldap.connection,auth_scope:"
-msgid "OneLevel"
-msgstr "Un niveau"
-
-msgctxt "selection:ldap.connection,auth_scope:"
 msgid "OneLevel"
 msgstr "Un niveau"
 
@@ -58,14 +50,6 @@ msgctxt "selection:ldap.connection,auth_scope:"
 msgid "Subtree"
 msgstr "Sous-arbre"
 
-msgctxt "selection:ldap.connection,auth_scope:"
-msgid "Subtree"
-msgstr "Sous-arbre"
-
-msgctxt "view:ldap.connection:"
-msgid "Authentication"
-msgstr "Authentification"
-
 msgctxt "view:ldap.connection:"
 msgid "Authentication"
 msgstr "Authentification"
diff --git a/locale/ca_ES.po b/locale/sl_SI.po
similarity index 72%
copy from locale/ca_ES.po
copy to locale/sl_SI.po
index 312c0cb..65cc365 100644
--- a/locale/ca_ES.po
+++ b/locale/sl_SI.po
@@ -2,26 +2,25 @@
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
-#, fuzzy
 msgctxt "error:res.user:"
 msgid "You can not set the password of ldap user \"%s\"."
-msgstr "No podeu establir la contrasenya de l'usuari \"%s\" d'ldap."
+msgstr "Za LDAP uporabnika \"%s\" ni možno nastaviti gesla."
 
 msgctxt "field:ldap.connection,auth_base_dn:"
 msgid "Base DN"
-msgstr "DN base"
+msgstr "Osnovni DN"
 
 msgctxt "field:ldap.connection,auth_create_user:"
 msgid "Create User"
-msgstr "Crea usuari"
+msgstr "Ustvari uporabnika"
 
 msgctxt "field:ldap.connection,auth_require_filter:"
 msgid "Require Filter"
-msgstr "Filtre requerit"
+msgstr "Zahtevan filter"
 
 msgctxt "field:ldap.connection,auth_scope:"
 msgid "Scope"
-msgstr "Àmbit"
+msgstr "Pristojnost"
 
 msgctxt "field:ldap.connection,auth_uid:"
 msgid "UID"
@@ -29,28 +28,28 @@ msgstr "UID"
 
 msgctxt "help:ldap.connection,auth_base_dn:"
 msgid "Base DN for authentication"
-msgstr "DN base per a l'autenticació"
+msgstr "Osnovni DN za avtentifikacijo"
 
 msgctxt "help:ldap.connection,auth_create_user:"
 msgid "Create user if not in database"
-msgstr "Crea l'usuari si no existeix a la base de dades"
+msgstr "Ustvari uporabnik, če ga ni v bazi podatkov"
 
 msgctxt "help:ldap.connection,auth_uid:"
 msgid "UID Attribute for authentication"
-msgstr "Atribut UID per a l'autenticació"
+msgstr "Atribut UID za avtentifikacijo"
 
 msgctxt "selection:ldap.connection,auth_scope:"
 msgid "Base"
-msgstr "Base"
+msgstr "Osnova"
 
 msgctxt "selection:ldap.connection,auth_scope:"
 msgid "OneLevel"
-msgstr "UnNivell"
+msgstr "Ena raven"
 
 msgctxt "selection:ldap.connection,auth_scope:"
 msgid "Subtree"
-msgstr "Subarbre"
+msgstr "Poddrevo"
 
 msgctxt "view:ldap.connection:"
 msgid "Authentication"
-msgstr "Autenticació"
+msgstr "Avtentifikacija"
diff --git a/res.py b/res.py
index bb196b2..a9131c8 100644
--- a/res.py
+++ b/res.py
@@ -15,8 +15,8 @@ class User:
     def __setup__(cls):
         super(User, cls).__setup__()
         cls._error_messages.update({
-                'set_passwd_ldap_user': ('You can not set the password of ldap '
-                    'user "%s".'),
+                'set_passwd_ldap_user': (
+                    'You can not set the password of ldap user "%s".'),
                 })
 
     @staticmethod
@@ -113,7 +113,9 @@ class User:
 
     @classmethod
     def get_login(cls, login, password):
-        Connection = Pool().get('ldap.connection')
+        pool = Pool()
+        Connection = pool.get('ldap.connection')
+        LoginAttempt = pool.get('res.user.login.attempt')
         with Transaction().set_user(0):
             connection, = Connection.search([], limit=1)
         try:
@@ -129,6 +131,7 @@ class User:
             if password and con.simple_bind_s(dn, password):
                 user_id, _, _ = cls._get_login(login)
                 if user_id:
+                    LoginAttempt.remove(login)
                     return user_id
                 elif connection.auth_create_user:
                     user, = cls.create([{
diff --git a/setup.py b/setup.py
index fa334b2..d1e9b98 100644
--- a/setup.py
+++ b/setup.py
@@ -63,6 +63,7 @@ setup(name='trytond_ldap_authentication',
         'Natural Language :: French',
         'Natural Language :: German',
         'Natural Language :: Russian',
+        'Natural Language :: Slovenian',
         'Natural Language :: Spanish',
         'Operating System :: OS Independent',
         'Programming Language :: Python :: 2.6',
diff --git a/tests/__init__.py b/tests/__init__.py
index 3670e97..a33f381 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -2,3 +2,5 @@
 #this repository contains the full copyright notices and license terms.
 
 from .test_ldap_authentication import suite
+
+__all__ = ['suite']
diff --git a/tryton.cfg b/tryton.cfg
index faf13d5..1f8c8ad 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=2.8.0
+version=3.0.0
 depends:
     ir
     ldap_connection
diff --git a/trytond_ldap_authentication.egg-info/PKG-INFO b/trytond_ldap_authentication.egg-info/PKG-INFO
index 751999d..ad11540 100644
--- a/trytond_ldap_authentication.egg-info/PKG-INFO
+++ b/trytond_ldap_authentication.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond-ldap-authentication
-Version: 2.8.0
+Version: 3.0.0
 Summary: Tryton module to authenticate users through LDAP
 Home-page: http://www.tryton.org/
 Author: Tryton
 Author-email: UNKNOWN
 License: GPL-3
-Download-URL: http://downloads.tryton.org/2.8/
+Download-URL: http://downloads.tryton.org/3.0/
 Description: trytond_ldap_authentication
         ===========================
         
@@ -59,6 +59,7 @@ Classifier: Natural Language :: English
 Classifier: Natural Language :: French
 Classifier: Natural Language :: German
 Classifier: Natural Language :: Russian
+Classifier: Natural Language :: Slovenian
 Classifier: Natural Language :: Spanish
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python :: 2.6
diff --git a/trytond_ldap_authentication.egg-info/SOURCES.txt b/trytond_ldap_authentication.egg-info/SOURCES.txt
index a54a7ad..f366a96 100644
--- a/trytond_ldap_authentication.egg-info/SOURCES.txt
+++ b/trytond_ldap_authentication.egg-info/SOURCES.txt
@@ -22,6 +22,7 @@ locale/es_ES.po
 locale/fr_FR.po
 locale/nl_NL.po
 locale/ru_RU.po
+locale/sl_SI.po
 trytond_ldap_authentication.egg-info/PKG-INFO
 trytond_ldap_authentication.egg-info/SOURCES.txt
 trytond_ldap_authentication.egg-info/dependency_links.txt
diff --git a/trytond_ldap_authentication.egg-info/requires.txt b/trytond_ldap_authentication.egg-info/requires.txt
index a7e3c14..fa0fbc9 100644
--- a/trytond_ldap_authentication.egg-info/requires.txt
+++ b/trytond_ldap_authentication.egg-info/requires.txt
@@ -1,3 +1,3 @@
 python-ldap
-trytond_ldap_connection >= 2.8, < 2.9
-trytond >= 2.8, < 2.9
\ No newline at end of file
+trytond_ldap_connection >= 3.0, < 3.1
+trytond >= 3.0, < 3.1
\ No newline at end of file
-- 
tryton-modules-ldap-authentication



More information about the tryton-debian-vcs mailing list