← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 701846] Re: editable list inbound call crash

 

Hello tfr (Openerp),

Its fixed in trunk web-client. Please update your code.

Revision-info:
4317 sma@xxxxxxxxxxx-20110112130224-9dzi0m23suc32yj9

Thanks.

** Changed in: openobject-client-web
       Status: In Progress => Fix Released

** Changed in: openobject-client-web
    Milestone: None => 6.0

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/701846

Title:
  editable list inbound call crash

Status in OpenObject Web Client:
  Fix Released

Bug description:
  => Create an inbound call 
    => then click on the pen to edit the call 

  <type 'exceptions.KeyError'>	Python 2.6.6: /usr/bin/python
  Wed Jan 12 11:16:20 2011
  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/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/openerp/listgrid/get')
    604                     if self.handler:
    605                         self.stage = 'handler'
    606                         cherrypy.response.body = self.handler()
    607                     
    608                     self.stage = 'before_finalize'
  global cherrypy = <module 'cherrypy' from '/usr/local/lib/python2..../CherryPy-3.1.2-py2.6.egg/cherrypy/__init__.pyc'>, cherrypy.response = <cherrypy._ThreadLocalProxy object>, cherrypy.response.body = [], self = <cherrypy._cprequest.Request object>, self.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
   /usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
     23     def __call__(self):
     24         try:
     25             return self.callable(*self.args, **self.kwargs)
     26         except TypeError, x:
     27             test_callable_spec(self.callable, self.args, self.kwargs)
  self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable = <bound method Root.default of <openobject.controllers._root.Root object>>, self.args = ('openerp', 'listgrid', 'get'), self.kwargs = {'_terp_concurrency_info': 'null', '_terp_context': "{'lang': 'en_US', 'active_ids': [269], 'tz': Fal...en', 'project_id': False, 'department_id': False}", '_terp_count': '4', '_terp_domain': "[('categ_id', '=', 12)]", '_terp_edit_inline': '10', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...}
   /home/openerp/trunk/web/openobject/tools/_expose.py in func_wrapper(*args=(<openobject.controllers._root.Root object>, 'openerp', 'listgrid', 'get'), **kw={'_terp_concurrency_info': 'null', '_terp_context': "{'lang': 'en_US', 'active_ids': [269], 'tz': Fal...en', 'project_id': False, 'department_id': False}", '_terp_count': '4', '_terp_domain': "[('categ_id', '=', 12)]", '_terp_edit_inline': '10', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...})
    188                 raise cherrypy.HTTPError(405)
    189 
    190             res = func(*args, **kw)
    191             if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
    192                 cherrypy.response.headers['Content-Type'] = 'text/javascript'
  global res = '/home/openerp/trunk/web/addons/view_calendar/controllers/templates/calpopup.mako', func = <function default>, args = (<openobject.controllers._root.Root object>, 'openerp', 'listgrid', 'get'), kw = {'_terp_concurrency_info': 'null', '_terp_context': "{'lang': 'en_US', 'active_ids': [269], 'tz': Fal...en', 'project_id': False, 'department_id': False}", '_terp_count': '4', '_terp_domain': "[('categ_id', '=', 12)]", '_terp_edit_inline': '10', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...}
   /home/openerp/trunk/web/openobject/controllers/_root.py in default(self=<openobject.controllers._root.Root object>, *args=('openerp', 'listgrid', 'get'), **kw={'_terp_concurrency_info': 'null', '_terp_context': "{'lang': 'en_US', 'active_ids': [269], 'tz': Fal...en', 'project_id': False, 'department_id': False}", '_terp_count': '4', '_terp_domain': "[('categ_id', '=', 12)]", '_terp_edit_inline': '10', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...})
     85             request.handler = cherrypy.NotFound()
     86 
     87         return request.handler()
     88 
     89     def find_handler(self):
  request = <cherrypy._ThreadLocalProxy object>, request.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
   /usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
     23     def __call__(self):
     24         try:
     25             return self.callable(*self.args, **self.kwargs)
     26         except TypeError, x:
     27             test_callable_spec(self.callable, self.args, self.kwargs)
  self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable = <function get>, self.args = (), self.kwargs = {'_terp_concurrency_info': 'null', '_terp_context': "{'lang': 'en_US', 'active_ids': [269], 'tz': Fal...en', 'project_id': False, 'department_id': False}", '_terp_count': '4', '_terp_domain': "[('categ_id', '=', 12)]", '_terp_edit_inline': '10', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...}
   /home/openerp/trunk/web/addons/openerp/controllers/utils.py in wrapper(*args=(), **kw={'_terp_concurrency_info': 'null', '_terp_context': "{'lang': 'en_US', 'active_ids': [269], 'tz': Fal...en', 'project_id': False, 'department_id': False}", '_terp_count': '4', '_terp_domain': "[('categ_id', '=', 12)]", '_terp_edit_inline': '10', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...})
    118             # User is logged in; allow access
    119             clear_login_fields(kw)
    120             return fn(*args, **kw)
    121         else:
    122             action = kw.get('login_action', '')
  fn = <bound method List.get of <openerp.controllers.listgrid.List object>>, args = (), kw = {'_terp_concurrency_info': 'null', '_terp_context': "{'lang': 'en_US', 'active_ids': [269], 'tz': Fal...en', 'project_id': False, 'department_id': False}", '_terp_count': '4', '_terp_domain': "[('categ_id', '=', 12)]", '_terp_edit_inline': '10', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...}
   /home/openerp/trunk/web/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.listgrid.List object>,), **kw={'_terp_concurrency_info': 'null', '_terp_context': "{'lang': 'en_US', 'active_ids': [269], 'tz': Fal...en', 'project_id': False, 'department_id': False}", '_terp_count': '4', '_terp_domain': "[('categ_id', '=', 12)]", '_terp_edit_inline': '10', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...})
    188                 raise cherrypy.HTTPError(405)
    189 
    190             res = func(*args, **kw)
    191             if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
    192                 cherrypy.response.headers['Content-Type'] = 'text/javascript'
  global res = '/home/openerp/trunk/web/addons/view_calendar/controllers/templates/calpopup.mako', func = <function get>, args = (<openerp.controllers.listgrid.List object>,), kw = {'_terp_concurrency_info': 'null', '_terp_context': "{'lang': 'en_US', 'active_ids': [269], 'tz': Fal...en', 'project_id': False, 'department_id': False}", '_terp_count': '4', '_terp_domain': "[('categ_id', '=', 12)]", '_terp_edit_inline': '10', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...}
   /home/openerp/trunk/web/addons/openerp/controllers/listgrid.py in get(self=<openerp.controllers.listgrid.List object>, **kw={'_terp_concurrency_info': 'null', '_terp_context': "{'lang': 'en_US', 'active_ids': [269], 'tz': Fal...en', 'project_id': False, 'department_id': False}", '_terp_count': '4', '_terp_domain': "[('categ_id', '=', 12)]", '_terp_edit_inline': '10', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...})
    304             view=ustr(frm.render())
    305         else:
    306             view=ustr(wid.render())
    307 
    308         server_logs = ''
  view undefined, builtin ustr = <function ustr>, wid = List, wid.render = <bound method List.render of List>
   /home/openerp/trunk/web/openobject/widgets/_base.py in render(self=List, value=None, **params={})
    213 
    214     def render(self, value=None, **params):
    215         return self.display(value, **params)
    216 
    217     def retrieve_css(self):
  self = List, self.display = <bound method List.display of List>, value = None, params = {}
   /home/openerp/trunk/web/addons/openerp/widgets/listgrid.py in display(self=List, value=None, **params={})
    272         proxy = rpc.RPCProxy(self.model)
    273         if self.edit_inline > 0 and isinstance(self.edit_inline, int):
    274             values = self.data_dict[self.edit_inline]
    275         else:
    276             values = dict(proxy.default_get(fields, ctx))
  values undefined, self = List, self.data_dict = {}, self.edit_inline = 10
  <type 'exceptions.KeyError'>: 10 
        args = (10,) 
        message = 10

  have fun !





References