[trunk] show workflow crashes

Bug #624124 reported by Ferdinand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Undecided
Unassigned

Bug Description

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/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/view_diagram/workflow')
  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/lib/python2.6/site.../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/lib/python2.6/site-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 = ('view_diagram', 'workflow'), self.kwargs = {'rec_id': '1'}
 /home2/gass/OpenERP/trunk/openobject-client-web/openobject/tools/_expose.py in func_wrapper(*args=(<openobject.controllers._root.Root object>, 'view_diagram', 'workflow'), **kw={'rec_id': '1'})
  200 def func_wrapper(*args, **kw):
  201
  202 res = func(*args, **kw)
  203
  204 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
global res = '/home2/gass/OpenERP/trunk/openobject-client-web/config/prod.cfg', func = <function default>, args = (<openobject.controllers._root.Root object>, 'view_diagram', 'workflow'), kw = {'rec_id': '1'}
 /home2/gass/OpenERP/trunk/openobject-client-web/openobject/controllers/_root.py in default(self=<openobject.controllers._root.Root object>, *args=('view_diagram', 'workflow'), **kw={'rec_id': '1'})
   35 request.handler = cherrypy.NotFound()
   36
   37 return request.handler()
   38
   39 def find_handler(self):
request = <cherrypy._ThreadLocalProxy object>, request.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
 /usr/lib/python2.6/site-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 index>, self.args = (), self.kwargs = {'rec_id': '1'}
 /home2/gass/OpenERP/trunk/openobject-client-web/addons/openerp/controllers/utils.py in wrapper(*args=(), **kw={'rec_id': '1'})
  122 # User is logged in; allow access
  123 clear_login_fields(kw)
  124 return fn(*args, **kw)
  125 else:
  126 # User isn't logged in yet.
fn = <bound method Workflow.index of <view_diagram.controllers._diagram.Workflow object>>, args = (), kw = {'rec_id': '1'}
 /home2/gass/OpenERP/trunk/openobject-client-web/openobject/tools/_expose.py in func_wrapper(*args=(<view_diagram.controllers._diagram.Workflow object>,), **kw={'rec_id': '1'})
  200 def func_wrapper(*args, **kw):
  201
  202 res = func(*args, **kw)
  203
  204 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
global res = '/home2/gass/OpenERP/trunk/openobject-client-web/config/prod.cfg', func = <function index>, args = (<view_diagram.controllers._diagram.Workflow object>,), kw = {'rec_id': '1'}

<type 'exceptions.TypeError'>: index() takes at least 2 non-keyword arguments (1 given)
      args = ('index() takes at least 2 non-keyword arguments (1 given)',)
      message = 'index() takes at least 2 non-keyword arguments (1 given)'

Navrang Oza (noz-tiny)
Changed in openobject-client-web:
status: New → In Progress
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Should be fixed as of revision 3132, can you check?

Changed in openobject-client-web:
status: In Progress → Fix Committed
Navrang Oza (noz-tiny)
Changed in openobject-client-web:
milestone: none → 6.0
Revision history for this message
Ferdinand (office-chricar) wrote :

thanks works

Changed in openobject-client-web:
status: Fix Committed → Fix Released
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.