← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 664466] Re: [6.0 RC1] Clicking on Attachments in History on an Opportunity gives an error

 

** Changed in: openobject-client-web
   Importance: Undecided => Medium

-- 
[6.0 RC1] Clicking on Attachments in History on an Opportunity gives an error
https://bugs.launchpad.net/bugs/664466
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.

Status in OpenObject Web Client: New

Bug description:
Using 6.0 RC1, web client.
To Replicate:-

Click on Opportunities,
Click on Opportunity with an attachment from mailgate, mine was a pdf
Click on History, then click on one of the messages
Click on Attachments. Click on one of the attachments. Get error as below.

Works fine in GTK Client.

Error 

<class 'cPickle.PicklingError'>	Python 2.6.5: /usr/bin/python
Thu Oct 21 13:51:49 2010

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
 /usr/lib/pymodules/python2.6/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/openerp/openm2m/edit')
  607                     
  608                     self.stage = 'before_finalize'
  609                     self.hooks.run('before_finalize')
  610                     cherrypy.response.finalize()
  611                 except (cherrypy.HTTPRedirect, cherrypy.HTTPError), inst:
self = <cherrypy._cprequest.Request object>, self.hooks = cherrypy._cprequest.HookMap(points=['before_erro...se', 'on_start_resource', 'before_request_body']), self.hooks.run = <bound method HookMap.run of cherrypy._cprequest...e', 'on_start_resource', 'before_request_body'])>
 /usr/lib/pymodules/python2.6/cherrypy/_cprequest.py in run(self=cherrypy._cprequest.HookMap(points=['before_erro...se', 'on_start_resource', 'before_request_body']), point='before_finalize')
   96             if exc is None or hook.failsafe:
   97                 try:
   98                     hook()
   99                 except (KeyboardInterrupt, SystemExit):
  100                     raise
hook = cherrypy._cprequest.Hook(callback=<function save at 0x7f2ee3089578>, failsafe=True, priority=50, )
 /usr/lib/pymodules/python2.6/cherrypy/_cprequest.py in __call__(self=cherrypy._cprequest.Hook(callback=<function save at 0x7f2ee3089578>, failsafe=True, priority=50, ))
   56     def __call__(self):
   57         """Run self.callback(**self.kwargs)."""
   58         return self.callback(**self.kwargs)
   59     
   60     def __repr__(self):
self = cherrypy._cprequest.Hook(callback=<function save at 0x7f2ee3089578>, failsafe=True, priority=50, ), self.callback = <function save>, self.kwargs = {}
 /usr/lib/pymodules/python2.6/cherrypy/lib/sessions.py in save()
  574         if isinstance(cherrypy.response.body, types.GeneratorType):
  575             cherrypy.response.collapse_body()
  576         cherrypy.session.save()
  577 save.failsafe = True
  578 
global cherrypy = <module 'cherrypy' from '/usr/lib/pymodules/python2.6/cherrypy/__init__.pyc'>, cherrypy.session = <cherrypy._ThreadLocalProxy object>, cherrypy.session.save = <bound method FileSession.save of <cherrypy.lib.sessions.FileSession object>>
 /usr/lib/pymodules/python2.6/cherrypy/lib/sessions.py in save(self=<cherrypy.lib.sessions.FileSession object>)
  129                 t = datetime.timedelta(seconds = self.timeout * 60)
  130                 expiration_time = datetime.datetime.now() + t
  131                 self._save(expiration_time)
  132             
  133         finally:
self = <cherrypy.lib.sessions.FileSession object>, self._save = <bound method FileSession._save of <cherrypy.lib.sessions.FileSession object>>, expiration_time = datetime.datetime(2010, 10, 21, 14, 51, 49, 597751)
 /usr/lib/pymodules/python2.6/cherrypy/lib/sessions.py in _save(self=<cherrypy.lib.sessions.FileSession object>, expiration_time=datetime.datetime(2010, 10, 21, 14, 51, 49, 597751))
  343         f = open(self._get_file_path(), "wb")
  344         try:
  345             pickle.dump((self._data, expiration_time), f)
  346         finally:
  347             f.close()
global pickle = <module 'cPickle' (built-in)>, pickle.dump = <built-in function dump>, self = <cherrypy.lib.sessions.FileSession object>, self._data = {'_context': {'client': 'web', 'lang': u'en_GB', 'section_id': 1, 'tz': u'Europe/London'}, 'client_timezone': u'Europe/London', 'company_id': True, 'params': {'_terp_view_type': 'form', '_terp_offset': 0, '..._ids': [False, False], '_terp_filter_domain': []}, 'remote_timezone': u'GMT', ...}, expiration_time = datetime.datetime(2010, 10, 21, 14, 51, 49, 597751), f = <closed file '/var/lib/openerp-web/sessions/sess...43f9fbf733a77850d150d14f83ffa762b412', mode 'wb'>

<class 'cPickle.PicklingError'>: Can't pickle <class 'openobject.widgets._meta.Sidebar'>: attribute lookup openobject.widgets._meta.Sidebar failed
      args = ("Can't pickle <class 'openobject.widgets._meta.Si...te lookup openobject.widgets._meta.Sidebar failed",)
      message = "Can't pickle <class 'openobject.widgets._meta.Si...te lookup openobject.widgets._meta.Sidebar failed"





References