From 0ad1fbaefbc8e962597ba65f460becb05924424a Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 22 Nov 2010 13:19:55 +0100 Subject: [PATCH] [IMP] share: use **kwargs in dict.update call instead of creating a second dict within it bzr revid: xmo@openerp.com-20101122121955-8b4b09m1xgzocjqx --- addons/share/web/controllers.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/addons/share/web/controllers.py b/addons/share/web/controllers.py index b6ecb186758..b97c86799e2 100644 --- a/addons/share/web/controllers.py +++ b/addons/share/web/controllers.py @@ -30,12 +30,11 @@ class ShareWizardController(openerp.controllers.SecuredController): share_wiz_id = rpc.RPCProxy('ir.ui.menu').search( [('name','=', 'Share Wizard')]) - context.update({ - 'active_ids': share_wiz_id, - 'active_id': share_wiz_id[0], - '_terp_view_name': 'Share Wizard', - 'share_root_url': share_root_url - }) + context.update( + active_ids=share_wiz_id, + active_id=share_wiz_id[0], + _terp_view_name='Share Wizard', + share_root_url=share_root_url) sharing_view_id = rpc.RPCProxy(share_model).create({ 'domain': str(domain), 'action_id':action_id