Fix pep8 and pyflakes
This commit is contained in:
1 parent
05350d89d0
commit
cc62c95656
4 files changed
+8
-6
No files matched your search
+3
-3
@@ -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.',
|
||||
|
||||
@@ -29,4 +29,3 @@ class Connection(ModelSingleton, ModelSQL, ModelView):
|
||||
return False
|
||||
|
||||
Connection()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user