[MERGE] forward port branch 8.0 up to 295f627
This commit is contained in:
@@ -102,7 +102,7 @@ class CompanyLDAP(osv.osv):
|
|||||||
_logger.warning('Could not format LDAP filter. Your filter should contain one \'%s\'.')
|
_logger.warning('Could not format LDAP filter. Your filter should contain one \'%s\'.')
|
||||||
return False
|
return False
|
||||||
try:
|
try:
|
||||||
results = self.query(conf, filter)
|
results = self.query(conf, filter.encode('utf-8'))
|
||||||
|
|
||||||
# Get rid of (None, attrs) for searchResultReference replies
|
# Get rid of (None, attrs) for searchResultReference replies
|
||||||
results = [i for i in results if i[0]]
|
results = [i for i in results if i[0]]
|
||||||
|
|||||||
@@ -859,8 +859,9 @@ def trans_generate(lang, modules, cr):
|
|||||||
|
|
||||||
def get_module_from_path(path):
|
def get_module_from_path(path):
|
||||||
for (mp, rec) in path_list:
|
for (mp, rec) in path_list:
|
||||||
|
mp = os.path.join(mp, '')
|
||||||
if rec and path.startswith(mp) and os.path.dirname(path) != mp:
|
if rec and path.startswith(mp) and os.path.dirname(path) != mp:
|
||||||
path = path[len(mp)+1:]
|
path = path[len(mp):]
|
||||||
return path.split(os.path.sep)[0]
|
return path.split(os.path.sep)[0]
|
||||||
return 'base' # files that are not in a module are considered as being in 'base' module
|
return 'base' # files that are not in a module are considered as being in 'base' module
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user