[IMP] remove yield easier debug

bzr revid: al@openerp.com-20111207140644-5e60tbovfhxdx4r9
This commit is contained in:
Antony Lesuisse 2011-12-07 15:06:44 +01:00
parent bbf46ca288
commit 78d3e74263
1 changed files with 3 additions and 1 deletions

View File

@ -103,6 +103,7 @@ class WebClient(openerpweb.Controller):
addons = self.server_wide_modules(req)
else:
addons = addons.split(',')
r = []
for addon in addons:
manifest = openerpweb.addons_manifest.get(addon, None)
if not manifest:
@ -112,7 +113,8 @@ class WebClient(openerpweb.Controller):
globlist = manifest.get(key, [])
for pattern in globlist:
for path in glob.glob(os.path.normpath(os.path.join(addons_path, addon, pattern))):
yield path, path[len(addons_path):]
r.append( (path, path[len(addons_path):]))
return r
def manifest_list(self, req, mods, extension):
if not req.debug: