[IMP] share: use **kwargs in dict.update call instead of creating a second dict within it

bzr revid: xmo@openerp.com-20101122121955-8b4b09m1xgzocjqx
This commit is contained in:
Xavier Morel
2010-11-22 13:19:55 +01:00
parent c8b4041d70
commit 0ad1fbaefb
+5 -6
View File
@@ -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