[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:
Christophe Matthieu 2013-05-02 14:28:06 +02:00
commit a31af55ef5
1 changed files with 1 additions and 1 deletions

View File

@ -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')