From 6000b6b5c62181d25783b6d45adb2ed6f3928480 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Thu, 2 Oct 2008 17:02:24 -0600 Subject: Implemented basic Command.forward() method --- ipalib/frontend.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipalib/frontend.py') diff --git a/ipalib/frontend.py b/ipalib/frontend.py index 30f5942b..6decb17d 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -542,9 +542,9 @@ class Command(plugable.Plugin): print ' kw =', kw def forward(self, *args, **kw): - print '%s.execute():' % self.name - print ' args =', args - print ' kw =', kw + xmlrpc_client = self.api.Backend.xmlrpc.get_client() + return getattr(xmlrpc_client, self.name)(kw, *args) + def __call__(self, *args, **kw): if len(args) > 0: -- cgit