[IMP] loading.py: be a bit more explicit about valid/invalid data/test files.

bzr revid: vmt@openerp.com-20121114103140-y0k40eb525ak99v1
This commit is contained in:
Vo Minh Thu 2012-11-14 11:31:40 +01:00
parent daa026f3af
commit 45f8c4adb7
1 changed files with 3 additions and 1 deletions

View File

@ -124,8 +124,10 @@ def load_module_graph(cr, graph, status=None, perform_checks=True, skip_modules=
tools.convert_yaml_import(cr, module_name, fp, kind, idref, mode, noupdate, report)
elif ext == '.xml':
tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
elif ext == '.js':
pass # .js files are valid but ignored here.
else:
_logger.debug("Ignoring %s due to unknown type", filename)
_logger.warning("Can't load unknown file type %s.", filename)
finally:
fp.close()