Comment 8 for bug 611934

Revision history for this message
digitalsatori(Shine IT) (digitalsatori) wrote :

Thank you for providing the patch code. The code can be written concisely as following:

for key in rpc.session.context:
  if key not in context:
    contex[key] = rpc.session.context[key]

However, I doubt that 'context.update(rpc.session.context)' in the original code base or the above patching code is really needed.
I found that at revision 1417, you yourself introduce the line "context.update(rpc.session.context)", but I don't get what the purpose of it.