summaryrefslogtreecommitdiff
path: root/addons/share/web/controllers.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-01-21 21:03:48 +0100
committerXavier Morel <xmo@openerp.com>2011-01-21 21:03:48 +0100
commit90fdc7244df68154f4e3a60fbbb7d7bb7047d3b2 (patch)
tree8d8ab94d1dc15ff36ed0f8c265ef0a3b357973b6 /addons/share/web/controllers.py
parent916b46ec41b9dda546b8154e3017038fe6a1b7ce (diff)
[IMP] share: go through RPCProxy instead of raw rpc.session.execute
bzr revid: xmo@openerp.com-20110121200348-9hardo2hog798ck7
Diffstat (limited to 'addons/share/web/controllers.py')
-rw-r--r--addons/share/web/controllers.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/addons/share/web/controllers.py b/addons/share/web/controllers.py
index b64d86c8c65..0859c370d79 100644
--- a/addons/share/web/controllers.py
+++ b/addons/share/web/controllers.py
@@ -24,7 +24,6 @@ class ShareWizardController(openerp.controllers.SecuredController):
domain.extend(ast.literal_eval(search_domain))
action_id = action_id[0]
- share_model = 'share.wizard'
scheme, netloc, _, _, _ = urlparse.urlsplit(cherrypy.request.base)
share_root_url = urlparse.urlunsplit((
@@ -38,11 +37,11 @@ class ShareWizardController(openerp.controllers.SecuredController):
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({
+ Share = rpc.RPCProxy('share.wizard')
+ sharing_view_id = Share.create({
'domain': str(domain),
'action_id':action_id
}, context)
return actions.execute(
- rpc.session.execute('object', 'execute', share_model, 'go_step_1',
- [sharing_view_id], context),
+ Share.go_step_1([sharing_view_id], context),
ids=[sharing_view_id], context=context)