← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 701914] Re: AttributeError: 'str' object has no attribute 'get'

 

Hrm, this is very strange indeed. So you're saying that when this error occurs it affects all users currently connected to the system via web client, but not anyone who is using the GTK client?
That would mean that the context is being corrupted for all uses of the web client, and that is very hard to understand, as the context is stored per-session. On the other hand if the issue was server-side, GTK clients would be affected too.

To narrow down the issue, does the problem disappear if you only restart
the web client service (and have users login again of course, since
their session is lost)? Or else, does it perhaps disappear if you only
restart the server (but not the web client), and ask users to logout to
cleanup their session and start again?

Something else I noticed is that you are apparently using both the
audit_trail and base_module_record modules, which can both listen to all
transactions being processed at server-side...  i.e. they have a global
effect. Perhaps this is related to your issue in some way... even though
I don't see any obvious connection.

Do you perhaps remember when the problem started to occur, if it was not
always there? Was it after an update of the server, web client, both? Or
perhaps after you installed some module(s)?

Does any of the above seem to ring a bell?

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

Title:
  AttributeError: 'str' object has no attribute 'get'

Status in OpenERP Server:
  Triaged

Bug description:
  Hi!

  I'm using openerp server v5.0.14 and i sometimes get an error when I select something on the main menu of the web-client:
  Traceback (most recent call last):
    File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 299, in dispatch
      result = LocalService(service_name)(method, *params)
    File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 77, in __call__
      return getattr(self, method)(*params)
    File "/usr/lib/python2.5/site-packages/openerp-server/addons/audittrail/audittrail.py", line 341, in execute
      return fct_src(db, uid, passwd, model, method, *args)
    File "/usr/lib/python2.5/site-packages/openerp-server/addons/base_module_record/base_module_record.py", line 38, in execute
      res = super(recording_objects_proxy, self).execute(*args, **argv)
    File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 577, in execute
      res = service.execute(db, uid, object, method, *args)
    File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 58, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 119, in execute
      res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 111, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 1291, in fields_view_get
      view_ref = context.get(view_type + '_view_ref', False)
  AttributeError: 'str' object has no attribute 'get'

  It happens randomly and without any cause. I don't know if it happens
  in the gtk client too but I could check the next time it happens.
  After I restart the server everything works fine. Anyone any idea?





References