Skip to content
Snippets Groups Projects
Commit 9b903321 authored by Vo Minh Thu's avatar Vo Minh Thu
Browse files

[MERGE] base: rename zipfile variable into zip_content (because zipname is an imported module).

lp bug: https://launchpad.net/bugs/795452 fixed

bzr revid: vmt@openerp.com-20110915102117-sep3t0itkjjmertz
parents 8d6f3158 b9d6c895
Branches
Tags
No related merge requests found
......@@ -437,11 +437,11 @@ class module(osv.osv):
res.append(mod.url)
if not download:
continue
zipfile = urllib.urlopen(mod.url).read()
zip_content = urllib.urlopen(mod.url).read()
fname = addons.get_module_path(str(mod.name)+'.zip', downloaded=True)
try:
fp = file(fname, 'wb')
fp.write(zipfile)
fp.write(zip_content)
fp.close()
except Exception:
self.__logger.exception('Error when trying to create module '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment