<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Aug 4, 2015 at 8:01 AM, Diane Trout <span dir="ltr"><<a href="mailto:diane@ghic.org" target="_blank">diane@ghic.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
</span>I've been wondering how useful an updated telepathy-python binding would be?<br>
It's technically been deprecated by the gnome people.<br></blockquote><div><br></div><div>I cannot say. But I would strongly suggest you make some noise about</div><div>your changes, like emailing <a href="mailto:telepathy@lists.freedesktop.org">telepathy@lists.freedesktop.org</a> and blogging,</div><div>hopefully that could get you some traction and perhaps some users/devs</div><div>too.</div><div><br></div><div>So be sure to do all that ;)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
But, some of the changes I've thought about doing:<br>
<br>
python3 has abstract base classes, perhaps the interface classes should use<br>
that instead of just running "raise NotImplemented".<br>
<br>
I'm pretty sure I can replace the implementation of<br>
telepathy.server.Connection.GetInterfaces to not need the interface classes to<br>
have an __init__ function. (Which should make it safer to use super())<br></blockquote><div><br></div><div>I know no pyhton, so cannot really comment on that.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Also I really want to change the API to look more like this:<br>
<br>
from telepathy.Connection.Interface import Contacts<br>
<br>
class MyContacts(Contacts):<br>
        @Contacts.method<br>
    def GetContactAttribute(self, handles, interfaces, hold, sender):<br>
        pass<br>
<br>
<br>
instead of<br>
<br>
import telepathy<br>
<br>
class MyContacts(telepathy.server.ConnectionInterfaceContacts):<br>
    @dbus.service.method(<br>
        dbus_interface=telepathy.CONNECTION_INTERFACE_CONTACT_CAPABILITIES,<br>
        in_signature="au"<br>
        out_signature="a{ua(a({sv}as)}")<br>
    def GetContactAttributes(self, handles,interfaces, hold, sender)<br>
<br>
(Though right now I'm not sure I can hide the in_/out_ signature part.<br>
<br>
Also I'd like to modify the setup.py script to use lxml to do the xslt<br>
transformation instead of using autotools & xsltproc.<br></blockquote><div><br></div><div>Lxml sounds good, so go for it.</div><div><br></div><div>Cheers<br></div></div>-- <br><div class="gmail_signature"><div><span style="color:rgb(102,102,102)">Martin Klapetek | KDE Developer</span></div></div>
</div></div>