<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">Le 6 avr. 2017 à 17:21, Ondra Machacek &lt;<a href="mailto:omachace@redhat.com" class="">omachace@redhat.com</a>&gt; a écrit :</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Apr 6, 2017 at 5:00 PM, Fabrice Bacchella <span dir="ltr" class="">&lt;<a href="mailto:fabrice.bacchella@orange.fr" target="_blank" class="">fabrice.bacchella@orange.fr</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Ho my good, in <a href="http://ovirtsdk.services.py/" target="_blank" class="">ovirtsdk.services.py</a>, for every service, there is a different method with a different name that return a associated service, so it's not possible to have a generic like:<div class=""><br class=""></div><div class="">def &nbsp;resolve(service, ...):</div><div class=""><span class="m_-4816859605268981919Apple-tab-span" style="white-space:pre-wrap">        </span>id = .....</div><div class=""><span class="m_-4816859605268981919Apple-tab-span" style="white-space:pre-wrap">        </span>return service.service(id)</div><div class=""><br class=""></div><div class="">because the generic call service is used by something that take a path argument. But why not a service_by_id(self, id) ?<br class=""></div></div></blockquote><div class=""><br class=""></div><div class="">I am not fully sure I understand what you are missing, but feel free to open<br class="">the bug on Python SDK in bugzilla, we will be happy to improve the SDK.<br class=""></div><div class="">&nbsp;</div></div></div></div></div></blockquote><br class=""></div><div>Done, with a first idea for what might be needed:</div><div><br class=""></div><div><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1439879" class="">https://bugzilla.redhat.com/show_bug.cgi?id=1439879</a></div><div><br class=""></div><div><br class=""></div><br class=""></body></html>