[PEP8] users_ldap_mail
parent
50af2cc47e
commit
a2b37d8d2e
|
@ -37,4 +37,3 @@ AD also supports the "mail" attribute, so it can be mapped into OpenERP.
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': True,
|
||||||
}
|
}
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
||||||
|
|
|
@ -24,13 +24,16 @@ from openerp.osv import fields, orm
|
||||||
import logging
|
import logging
|
||||||
_log = logging.getLogger(__name__)
|
_log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class CompanyLDAP(orm.Model):
|
class CompanyLDAP(orm.Model):
|
||||||
_inherit = 'res.company.ldap'
|
_inherit = 'res.company.ldap'
|
||||||
_columns = {
|
_columns = {
|
||||||
'name_attribute': fields.char('Name Attribute', size=64,
|
'name_attribute': fields.char(
|
||||||
|
'Name Attribute', size=64,
|
||||||
help="By default 'cn' is used. "
|
help="By default 'cn' is used. "
|
||||||
"For ActiveDirectory you might use 'displayName' instead."),
|
"For ActiveDirectory you might use 'displayName' instead."),
|
||||||
'mail_attribute': fields.char('E-mail attribute', size=64,
|
'mail_attribute': fields.char(
|
||||||
|
'E-mail attribute', size=64,
|
||||||
help="LDAP attribute to use to retrieve em-mail address."),
|
help="LDAP attribute to use to retrieve em-mail address."),
|
||||||
}
|
}
|
||||||
_defaults = {
|
_defaults = {
|
||||||
|
@ -71,4 +74,3 @@ class CompanyLDAP(orm.Model):
|
||||||
_log.warning('No LDAP attribute "%s" found for login "%s"' % (
|
_log.warning('No LDAP attribute "%s" found for login "%s"' % (
|
||||||
conf.get(conf_name), values.get('login')))
|
conf.get(conf_name), values.get('login')))
|
||||||
return values
|
return values
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue