[RC1] NameError: global name 'zipfile' is not defined

Bug #695366 reported by Laurent Urbain (Realdolmen)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Low
OpenERP R&D Web Team

Bug Description

Last trunk version, with python 2.6.6

On a windows server, with web client, I have this error when I log in :

Unrecoverable error in the server.
Traceback (most recent call last):
  File "e:\OpenERP\Python2.6\lib\site-packages\cherrypy\_cprequest.py", line 541, in run
    self.respond(pi)
  File "e:\OpenERP\Python2.6\lib\site-packages\cherrypy\_cprequest.py", line 624, in respond
    self.handle_error()
  File "e:\OpenERP\Python2.6\lib\site-packages\cherrypy\_cprequest.py", line 746, in handle_error
    self.error_response()
  File "E:\OpenERP\trunk\web\addons\openerp\controllers\root.py", line 40, in _cp_on_error
    cherrypy.request.pool = openobject.pooler.get_pool()
  File "E:\OpenERP\trunk\web\openobject\pooler.py", line 97, in get_pool
    addons.load_addons(db_name, config)
  File "E:\OpenERP\trunk\web\openobject\addons.py", line 214, in load_addons
    new_modules = obj.get_new_modules()
  File "E:\OpenERP\trunk\web\addons\openerp\controllers\modules.py", line 46, in get_new_modules
    extract_zip_file(StringIO(module['content'].decode('base64')), temp_dir)
  File "E:\OpenERP\trunk\web\openobject\tools\zip.py", line 6, in extract_zip_file
    zf = zipfile.ZipFile(zip_file)
NameError: global name 'zipfile' is not defined

On ubuntu, it's working

Revision history for this message
Laurent Urbain (Realdolmen) (laurent-urbain) wrote :

Ok with the revision 4206
thx

Changed in openobject-client-web:
status: New → Fix Released
importance: Undecided → Low
assignee: nobody → OpenERP SA's Web Client R&D (openerp-dev-web)
milestone: none → 6.0-rc2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.