Fix pep8 and pyflakes

This commit is contained in:
Cédric Krier committed 2012-04-03 20:07:06 +02:00
1 parent 05350d89d0
commit cc62c95656
4 files changed
+8 -6

No files matched your search

+3 -3
View File
@@ -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.',
-1
View File
@@ -29,4 +29,3 @@ class Connection(ModelSingleton, ModelSQL, ModelView):
return False
Connection()
+2 -1
View File
@@ -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
+3 -1
View File
@@ -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(