Hi,<div><br></div><div>Using F12 with the alpha version of ipa, I want to know if there is some ways to call implemented methods like  user_show() with my own script python. My goal is to call these methods with a client xml-rpc that I will to developpe later.</div>

<div><br></div><div>On my client, I tried this but it does not work :(</div><div><br></div><div>----------------------------------------------------------------------------</div><div><div><div>>>> from ipalib import api</div>

<div>>>> api.bootstrap_with_global_options()</div><div>(<Values at 0xb74f556c: {'debug': None, 'conf': None, 'env': None, 'verbose': None}>, [])</div><div>>>> api.load_plugins()</div>

<div>>>> api.finalize()</div><div>>>> api.Method.user_show.__doc__</div><div>'\n    Display user.\n    '</div><div>>>> api.Method.user_show(u'raca')</div><div>Traceback (most recent call last):</div>

<div>  File "<stdin>", line 1, in <module></div><div>  File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 398, in __call__</div><div>    ret = self.run(*args, **options)</div>

<div>  File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 667, in run</div><div>    return self.forward(*args, **options)</div><div>  File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 688, in forward</div>

<div>    return self.Backend.xmlclient.forward(<a href="http://self.name">self.name</a>, *args, **kw)</div><div>  File "/usr/lib/python2.6/site-packages/ipalib/rpc.py", line 403, in forward</div><div>    command = getattr(self.conn, name)</div>

<div>  File "/usr/lib/python2.6/site-packages/ipalib/backend.py", line 96, in __get_conn</div><div>    <a href="http://self.id">self.id</a>, threading.currentThread().getName())</div><div>AttributeError: no context.xmlclient in thread 'MainThread'</div>

</div></div><div><br></div><div><div>----------------------------------------------------------------------------</div><div><br></div><div>Have you any idea ? or some pertinent docs</div><div><br></div><div>Sorry for my bad English :)</div>

<div><br></div>-- <br>Meilleures salutations / Best Regards<br><br>Rachid ALAHYANE<br><br>
</div>