diff --git a/__tryton__.py b/__tryton__.py index 701c584e81..f0079f54c9 100644 --- a/__tryton__.py +++ b/__tryton__.py @@ -2,9 +2,9 @@ #this repository contains the full copyright notices and license terms. { 'name': 'LDAP Authentication', - 'name_bg_BG' : 'LDAP Проверка', + 'name_bg_BG': 'LDAP Проверка', 'name_ca_ES': 'Autenticació LDAP', - 'name_de_DE' : 'LDAP Authentifizierung', + 'name_de_DE': 'LDAP Authentifizierung', 'name_es_CO': 'Autentificación LDAP', 'name_es_ES': 'Autentificación LDAP', 'name_fr_FR': 'Authentification LDAP', @@ -15,7 +15,7 @@ 'description': '''Authenticate users with LDAP server.''', 'description_bg_BG': 'Проверка на потребители чрез LDAP сървър.', 'description_ca_ES': '''Autentica els usuaris contra un servidor LDAP.''', - 'description_de_DE' : '''Authentifizierung über LDAP + 'description_de_DE': '''Authentifizierung über LDAP - Fügt Unterstützung für Authentifizierung über einen LDAP-Server hinzu. ''', 'description_es_CO': 'Autentica usuarios frente a un servidor LDAP.', diff --git a/connection.py b/connection.py index 9bbdfdf8a8..2bf209bec3 100644 --- a/connection.py +++ b/connection.py @@ -29,4 +29,3 @@ class Connection(ModelSingleton, ModelSQL, ModelView): return False Connection() - diff --git a/res.py b/res.py index 65b07f260b..d8d7a0018a 100644 --- a/res.py +++ b/res.py @@ -130,7 +130,8 @@ class User(ModelSQL, ModelView): return user_id elif connection.auth_create_user: user_id = self.create({ - 'name': attrs.get(str(connection.auth_uid), [login])[0], + 'name': attrs.get(str(connection.auth_uid), + [login])[0], 'login': login, }) return user_id diff --git a/tests/test_ldap_authentication.py b/tests/test_ldap_authentication.py index 7dcfd65ff0..34a15575c0 100644 --- a/tests/test_ldap_authentication.py +++ b/tests/test_ldap_authentication.py @@ -2,7 +2,8 @@ #This file is part of Tryton. The COPYRIGHT file at the top level of #this repository contains the full copyright notices and license terms. -import sys, os +import sys +import os DIR = os.path.abspath(os.path.normpath(os.path.join(__file__, '..', '..', '..', '..', '..', 'trytond'))) if os.path.isdir(DIR): @@ -33,6 +34,7 @@ class LDAPAuthenticationTestCase(unittest.TestCase): ''' test_depends() + def suite(): suite = trytond.tests.test_tryton.suite() suite.addTests(unittest.TestLoader().loadTestsFromTestCase(