|
@ -20,10 +20,16 @@ |
|
|
############################################################################## |
|
|
############################################################################## |
|
|
|
|
|
|
|
|
import re |
|
|
import re |
|
|
from ldap.filter import filter_format |
|
|
|
|
|
from openerp.osv import orm |
|
|
from openerp.osv import orm |
|
|
import logging |
|
|
import logging |
|
|
|
|
|
|
|
|
|
|
|
_logger = logging.getLogger(__name__) |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
|
|
from ldap.filter import filter_format |
|
|
|
|
|
except ImportError: |
|
|
|
|
|
_logger.debug('Can not `from ldap.filter import filter_format`.') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CompanyLDAP(orm.Model): |
|
|
class CompanyLDAP(orm.Model): |
|
|
_inherit = 'res.company.ldap' |
|
|
_inherit = 'res.company.ldap' |
|
|