← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 682688] [NEW] [6.0 RC1] Error on login

 

Public bug reported:

When I try to login, sometimes, a Python Error occurs with next
traceback.

Other time, I close my browser window and when I try to come back with
this address http://localhost/openerp/home, the error occurs.

Traceback :

 Python 
                                                    2.6.5: /usr/bin/python 
 <type 'exceptions.TypeError'>                    Mon Nov 29 15:37:33 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/home')     
                                                                            
   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/pymodules/python2.6/cherrypy/__init__.pyc'>, cherrypy.response = 
 <cherrypy._ThreadLocalProxy object>, cherrypy.response.body = [], self =   
 <cherrypy._cprequest.Request object>, self.handler =                       
 <cherrypy._cpdispatch.LateParamPageHandler object>                         
                                                                            


                                                                            
  /usr/lib/pymodules/python2.6/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', 'home'), self.kwargs = {}                          
                                                                            


                                                                            
                                                                            
 /opt/OpenERP/MSF_Roadshow/openerp-web-6.0.0-rc1/openobject/tools/_expose.p 
 y in func_wrapper(*args=(<openobject.controllers._root.Root object>,       
 'openerp', 'home'), **kw={})                                               
                                                                            
   198                 raise cherrypy.HTTPError(405)                        
                                                                            
   199                                                                      
                                                                            
   200             res = func(*args, **kw)                                  
                                                                            
   201                                                                      
                                                                            
   202                                                                      
 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.pa 
 rams):                                                                     
                                                                            
 global res =                                                               
 '/opt/OpenERP/MSF_Roadshow/openerp-web-6.0.0-rc1/addons/view_graph/widgets 
 /templates/graph.mako', func = <function default>, args =                  
 (<openobject.controllers._root.Root object>, 'openerp', 'home'), kw = {}   
                                                                            


                                                                            
                                                                            
 /opt/OpenERP/MSF_Roadshow/openerp-web-6.0.0-rc1/openobject/controllers/_ro 
 ot.py in default(self=<openobject.controllers._root.Root object>, *args=   
 ('openerp', 'home'), **kw={})                                              
                                                                            
    65             request.handler = cherrypy.NotFound()                    
                                                                            
    66                                                                      
                                                                            
    67         return request.handler()                                     
                                                                            
    68                                                                      
                                                                            
    69     def find_handler(self):                                          
                                                                            
 request = <cherrypy._ThreadLocalProxy object>, request.handler =           
 <cherrypy._cpdispatch.LateParamPageHandler object>                         
                                                                            


                                                                            
  /usr/lib/pymodules/python2.6/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 home>, self.args = (), self.kwargs = {}                          
                                                                            


                                                                            
                                                                            
 /opt/OpenERP/MSF_Roadshow/openerp-web-6.0.0-rc1/addons/openerp/controllers 
 /utils.py in wrapper(*args=(), **kw={})                                    
                                                                            
   122             # User is logged in; allow access                        
                                                                            
   123             clear_login_fields(kw)                                   
                                                                            
   124             return fn(*args, **kw)                                   
                                                                            
   125         else:                                                        
                                                                            
   126             action = kw.get('login_action', '')                      
                                                                            
 fn = <bound method Root.home of <openerp.controllers.root.Root object>>,   
 args = (), kw = {}                                                         
                                                                            


                                                                            
                                                                            
 /opt/OpenERP/MSF_Roadshow/openerp-web-6.0.0-rc1/openobject/tools/_expose.p 
 y in func_wrapper(*args=(<openerp.controllers.root.Root object>,), **kw=   
 {})                                                                        
                                                                            
   198                 raise cherrypy.HTTPError(405)                        
                                                                            
   199                                                                      
                                                                            
   200             res = func(*args, **kw)                                  
                                                                            
   201                                                                      
                                                                            
   202                                                                      
 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.pa 
 rams):                                                                     
                                                                            
 global res =                                                               
 '/opt/OpenERP/MSF_Roadshow/openerp-web-6.0.0-rc1/addons/view_graph/widgets 
 /templates/graph.mako', func = <function home>, args =                     
 (<openerp.controllers.root.Root object>,), kw = {}                         
                                                                            


                                                                            
                                                                            
 /opt/OpenERP/MSF_Roadshow/openerp-web-6.0.0-rc1/addons/openerp/controllers 
 /root.py in home(self=<openerp.controllers.root.Root object>)              
                                                                            
    64         print user_action_id                                         
                                                                            
    65         from openerp import controllers                              
                                                                            
    66         return controllers.actions.execute_by_id(user_action_id[0])  
                                                                            
    67                                                                      
                                                                            
    68     @expose(content_type='application/octet-stream')                 
                                                                            
 controllers = <module 'openerp.controllers' from                           
 '/opt/OpenERP...0.0-rc1/addons/openerp/controllers/__init__.pyc'>,         
 controllers.actions = <module 'openerp.controllers.actions' from           
 '/opt....0.0-rc1/addons/openerp/controllers/actions.pyc'>,                 
 controllers.actions.execute_by_id = <function execute_by_id>,              
 user_action_id = False                                                     
                                                                           

<type 'exceptions.TypeError'>: 'bool' object is unsubscriptable
      args = ("'bool' object is unsubscriptable",)
      message = "'bool' object is unsubscriptable"

** Affects: openobject-client-web
     Importance: Undecided
         Status: Invalid

** Changed in: openobject-client-web
       Status: New => Incomplete

** Changed in: openobject-client-web
       Status: Incomplete => Invalid

-- 
[6.0 RC1] Error on login
https://bugs.launchpad.net/bugs/682688
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Web Client: Invalid

Bug description:
When I try to login, sometimes, a Python Error occurs with next traceback.

Other time, I close my browser window and when I try to come back with this address http://localhost/openerp/home, the error occurs.

Traceback :

 Python 
                                                    2.6.5: /usr/bin/python 
 <type 'exceptions.TypeError'>                    Mon Nov 29 15:37:33 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/home')     
                                                                            
   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/pymodules/python2.6/cherrypy/__init__.pyc'>, cherrypy.response = 
 <cherrypy._ThreadLocalProxy object>, cherrypy.response.body = [], self =   
 <cherrypy._cprequest.Request object>, self.handler =                       
 <cherrypy._cpdispatch.LateParamPageHandler object>                         
                                                                            


                                                                            
  /usr/lib/pymodules/python2.6/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', 'home'), self.kwargs = {}                          
                                                                            


                                                                            
                                                                            
 /opt/OpenERP/MSF_Roadshow/openerp-web-6.0.0-rc1/openobject/tools/_expose.p 
 y in func_wrapper(*args=(<openobject.controllers._root.Root object>,       
 'openerp', 'home'), **kw={})                                               
                                                                            
   198                 raise cherrypy.HTTPError(405)                        
                                                                            
   199                                                                      
                                                                            
   200             res = func(*args, **kw)                                  
                                                                            
   201                                                                      
                                                                            
   202                                                                      
 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.pa 
 rams):                                                                     
                                                                            
 global res =                                                               
 '/opt/OpenERP/MSF_Roadshow/openerp-web-6.0.0-rc1/addons/view_graph/widgets 
 /templates/graph.mako', func = <function default>, args =                  
 (<openobject.controllers._root.Root object>, 'openerp', 'home'), kw = {}   
                                                                            


                                                                            
                                                                            
 /opt/OpenERP/MSF_Roadshow/openerp-web-6.0.0-rc1/openobject/controllers/_ro 
 ot.py in default(self=<openobject.controllers._root.Root object>, *args=   
 ('openerp', 'home'), **kw={})                                              
                                                                            
    65             request.handler = cherrypy.NotFound()                    
                                                                            
    66                                                                      
                                                                            
    67         return request.handler()                                     
                                                                            
    68                                                                      
                                                                            
    69     def find_handler(self):                                          
                                                                            
 request = <cherrypy._ThreadLocalProxy object>, request.handler =           
 <cherrypy._cpdispatch.LateParamPageHandler object>                         
                                                                            


                                                                            
  /usr/lib/pymodules/python2.6/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 home>, self.args = (), self.kwargs = {}                          
                                                                            


                                                                            
                                                                            
 /opt/OpenERP/MSF_Roadshow/openerp-web-6.0.0-rc1/addons/openerp/controllers 
 /utils.py in wrapper(*args=(), **kw={})                                    
                                                                            
   122             # User is logged in; allow access                        
                                                                            
   123             clear_login_fields(kw)                                   
                                                                            
   124             return fn(*args, **kw)                                   
                                                                            
   125         else:                                                        
                                                                            
   126             action = kw.get('login_action', '')                      
                                                                            
 fn = <bound method Root.home of <openerp.controllers.root.Root object>>,   
 args = (), kw = {}                                                         
                                                                            


                                                                            
                                                                            
 /opt/OpenERP/MSF_Roadshow/openerp-web-6.0.0-rc1/openobject/tools/_expose.p 
 y in func_wrapper(*args=(<openerp.controllers.root.Root object>,), **kw=   
 {})                                                                        
                                                                            
   198                 raise cherrypy.HTTPError(405)                        
                                                                            
   199                                                                      
                                                                            
   200             res = func(*args, **kw)                                  
                                                                            
   201                                                                      
                                                                            
   202                                                                      
 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.pa 
 rams):                                                                     
                                                                            
 global res =                                                               
 '/opt/OpenERP/MSF_Roadshow/openerp-web-6.0.0-rc1/addons/view_graph/widgets 
 /templates/graph.mako', func = <function home>, args =                     
 (<openerp.controllers.root.Root object>,), kw = {}                         
                                                                            


                                                                            
                                                                            
 /opt/OpenERP/MSF_Roadshow/openerp-web-6.0.0-rc1/addons/openerp/controllers 
 /root.py in home(self=<openerp.controllers.root.Root object>)              
                                                                            
    64         print user_action_id                                         
                                                                            
    65         from openerp import controllers                              
                                                                            
    66         return controllers.actions.execute_by_id(user_action_id[0])  
                                                                            
    67                                                                      
                                                                            
    68     @expose(content_type='application/octet-stream')                 
                                                                            
 controllers = <module 'openerp.controllers' from                           
 '/opt/OpenERP...0.0-rc1/addons/openerp/controllers/__init__.pyc'>,         
 controllers.actions = <module 'openerp.controllers.actions' from           
 '/opt....0.0-rc1/addons/openerp/controllers/actions.pyc'>,                 
 controllers.actions.execute_by_id = <function execute_by_id>,              
 user_action_id = False                                                     
                                                                           

<type 'exceptions.TypeError'>: 'bool' object is unsubscriptable
      args = ("'bool' object is unsubscriptable",)
      message = "'bool' object is unsubscriptable"





Follow ups

References