--Apple-Mail=_E71938C9-E743-4136-A405-57ECD65F94EE
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
Le 6 avr. 2017 =C3=A0 17:21, Ondra Machacek
<omachace(a)redhat.com> a =
=C3=A9crit :
=20
=20
=20
On Thu, Apr 6, 2017 at 5:00 PM, Fabrice Bacchella =
<fabrice.bacchella(a)orange.fr
<mailto:fabrice.bacchella@orange.fr>> =
wrote:
Ho my good, in ovirtsdk.services.py
<
http://ovirtsdk.services.py/>, =
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:
=20
def resolve(service, ...):
id =3D .....
return service.service(id)
=20
because the generic call service is used by something that take a path =
argument.
But why not a service_by_id(self, id) ?
=20
I am not fully sure I understand what you are missing, but feel free =
to open
the bug on Python SDK in bugzilla, we will be happy to improve the =
SDK.
I tried :
https://bugzilla.redhat.com/show_bug.cgi?id=3D1439879 =
<
https://bugzilla.redhat.com/show_bug.cgi?id=3D1439879>
I hit a wall. it seems that some of you are not willing to improve the =
SDK.
--Apple-Mail=_E71938C9-E743-4136-A405-57ECD65F94EE
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html><head><meta http-equiv=3D"Content-Type"
content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote
type=3D"cite" class=3D""><div =
class=3D"">Le 6 avr. 2017 =C3=A0 17:21, Ondra Machacek <<a =
href=3D"mailto:omachace@redhat.com"
class=3D"">omachace(a)redhat.com</a>&gt;=
a =C3=A9crit :</div><br class=3D"Apple-interchange-newline"><div
=
class=3D""><div dir=3D"ltr" class=3D""><br
class=3D""><div =
class=3D"gmail_extra"><br class=3D""><div
class=3D"gmail_quote">On Thu, =
Apr 6, 2017 at 5:00 PM, Fabrice Bacchella <span dir=3D"ltr" =
class=3D""><<a
href=3D"mailto:fabrice.bacchella@orange.fr" =
target=3D"_blank"
class=3D"">fabrice.bacchella(a)orange.fr</a>&gt;</span> =
wrote:<br class=3D""><blockquote class=3D"gmail_quote"
style=3D"margin:0 =
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div =
style=3D"word-wrap:break-word" class=3D"">Ho my good, in <a =
href=3D"http://ovirtsdk.services.py/" target=3D"_blank" =
class=3D"">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=3D""><br =
class=3D""></div><div class=3D"">def
resolve(service, =
...):</div><div class=3D""><span =
class=3D"m_-4816859605268981919Apple-tab-span" =
style=3D"white-space:pre-wrap"> </span>id =3D .....</div><div
=
class=3D""><span class=3D"m_-4816859605268981919Apple-tab-span"
=
style=3D"white-space:pre-wrap"> </span>return =
service.service(id)</div><div class=3D""><br
class=3D""></div><div =
class=3D"">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=3D""></div></div></blockquote><div
class=3D""><br =
class=3D""></div><div class=3D"">I am not fully sure I
understand what =
you are missing, but feel free to open<br class=3D"">the bug on Python =
SDK in bugzilla, we will be happy to improve the SDK.<br =
class=3D""></div></div></div></div></div></blockquote><br
=
class=3D""></div><div>I tried :</div><div><a =
href=3D"https://bugzilla.redhat.com/show_bug.cgi?id=3D1439879" =
class=3D"">https://bugzilla.redhat.com/show_bug.cgi?id=3D143...
<div><br class=3D""></div><div>I hit a wall. it seems
that some of you =
are not willing to improve the SDK.</div><br
class=3D""></body></html>=
--Apple-Mail=_E71938C9-E743-4136-A405-57ECD65F94EE--