← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 743395] Re: [solved] [Trunk] custom_action() got an unexpected keyword argument '_'

 

The bug is still valid as the web client doesn't work if you use the
libraries versions of the populate.sh script.

The fix should be to get rid of the script or fir the script to get the
right versions of the libraries.

-- 
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/743395

Title:
  [solved] [Trunk] custom_action() got an unexpected keyword argument
  '_'

Status in OpenERP Web Client:
  Confirmed

Bug description:
  Using trunk for server, web client and addons on Debian testing, I
  have an encoding problem on the login page (see screenshot) and once I
  am logged in, I can't access any application. I have this error
  message :

  <type 'exceptions.TypeError'>	Python 2.6.6: /usr/bin/python
  Sat Mar 26 20:18:36 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.
   /home/max/openerp/web/lib/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/openerp/custom_action')
    643                     if self.handler:
    644                         self.stage = 'handler'
    645                         response.body = self.handler()
    646
    647                     # Finalize
  response = <cherrypy._cprequest.Response object>, response.body = [], self = <cherrypy._cprequest.Request object>, self.handler = <cherrypy.lib.encoding.ResponseEncoder instance>
   /home/max/openerp/web/lib/cherrypy/lib/encoding.py in __call__(self=<cherrypy.lib.encoding.ResponseEncoder instance>, *args=(), **kwargs={})
    186     def __call__(self, *args, **kwargs):
    187         response = cherrypy.serving.response
    188         self.body = self.oldhandler(*args, **kwargs)
    189
    190         if isinstance(self.body, basestring):
  self = <cherrypy.lib.encoding.ResponseEncoder instance>, self.body undefined, self.oldhandler = <cherrypy._cpdispatch.LateParamPageHandler object>, args = (), kwargs = {}
   /home/max/openerp/web/lib/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
     27     def __call__(self):
     28         try:
     29             return self.callable(*self.args, **self.kwargs)
     30         except TypeError:
     31             x = sys.exc_info()[1]
  self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable = <function custom_action>, self.args = (), self.kwargs = {'_': u'1301185116850', 'action': u'3'}
   /home/max/openerp/web/addons/openerp/controllers/utils.py in wrapper(*args=(), **kw={'_': u'1301185116850', 'action': u'3'})
    106             # User is logged in; allow access
    107             clear_login_fields(kw)
    108             return fn(*args, **kw)
    109         else:
    110             action = kw.get('login_action', '')
  fn = <bound method Root.custom_action of <openerp.controllers.root.Root object>>, args = (), kw = {'_': u'1301185116850', 'action': u'3'}
   /home/max/openerp/web/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.root.Root object>,), **kw={'_': u'1301185116850', 'action': u'3'})
    186                 raise cherrypy.HTTPError(405)
    187
    188             res = func(*args, **kw)
    189             if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
    190                 cherrypy.response.headers['Content-Type'] = 'text/javascript'
  global res = '/home/max/openerp/web/addons/openerp/controllers/templates/preferences/index.mako', func = <function custom_action>, args = (<openerp.controllers.root.Root object>,), kw = {'_': u'1301185116850', 'action': u'3'}
  <type 'exceptions.TypeError'>: custom_action() got an unexpected keyword argument '_'
        args = ("custom_action() got an unexpected keyword argument '_'",)
        message = "custom_action() got an unexpected keyword argument '_'"



References