yo at jacky.wtf
Tue Aug 18 22:49:42 PDT 2015
On Tuesday, August 18, 2015 04:59:12 PM Diane Trout wrote:
> I know Gnome deprecated telepathy-python, but after needing to write a quick
> connection manager and really liking python I decided to try and update it
> for the current telepathy sepc.
> My current progress is at:
> Mostly I've made sure it works with python3, though there have been a few
> other minor updates.
> Some of the changes I've thought about doing more long term:
> python3 has abstract base classes, perhaps the interface classes should use
> that instead of just running "raise NotImplemented" in all the _generated
> I'm pretty sure I can replace the implementation of
> telepathy.server.Connection.GetInterfaces with introspecting on
> .__class__.__bases__ and thus remove the need for the generated code to
> have an __init__ function. (Which will hopefully make it safer to use
> Also I really want to change the API to look more like this:
> from telepathy.Connection.Interface import Contacts
> class MyContacts(Contacts):
> def GetContactAttribute(self, handles, interfaces, hold, sender):
> instead of
> import telepathy
> class MyContacts(telepathy.server.ConnectionInterfaceContacts):
> def GetContactAttributes(self, handles,interfaces, hold, sender)
> Though it might need to be
> from telepathy.connection.interface.contacts import Contacts
> and I'm not completely sure if hiding the dbus type signature is a good
> Also I'd like to modify the setup.py script to use lxml to do the xslt
> transformation instead of using autotools & xsltproc.
> I was thinking of trying to make this version of telepathy-python more
> closely track the TelepathyQt version (since the official glib way is to
> use gi.repository version)
> And lastly python has some really nice documentation tools so it might be
> generally useful to try and create documentation
> telepathy mailing list
> telepathy at lists.freedesktop.org
This is awesome. I’ve been looking for an easier way to add more messaging
platforms for Telepathy (like Slack and GroupMe).
Jacky Alciné - https://jacky.wtf
They can READ + SEE everything in this email. In your texts.
The NSA's been spying on US citizens for too long.
Read more: https://www.eff.org/nsa-spying
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: This is a digitally signed message part.
More information about the telepathy