[MERGE] force module paths to be bytestrings
The http controllers handler crashes when there are non-ascii chars in the url path. `openerp.modules.module.ad_paths` containing unicode strings, werkzeug fail to compare the path `module` which is converted to ascii. force `module` to be bytestrings bzr revid: chm@openerp.com-20130502122806-1i9h8v0cvhb6p63q
This commit is contained in:
commit
a31af55ef5
|
@ -563,7 +563,7 @@ class Root(object):
|
|||
controllers and configure them. """
|
||||
|
||||
for addons_path in openerp.modules.module.ad_paths:
|
||||
for module in sorted(os.listdir(addons_path)):
|
||||
for module in sorted(os.listdir(str(addons_path))):
|
||||
if module not in addons_module:
|
||||
manifest_path = os.path.join(addons_path, module, '__openerp__.py')
|
||||
path_static = os.path.join(addons_path, module, 'static')
|
||||
|
|
Loading…
Reference in New Issue