On Mon, Jun 22, 2009 at 11:03 AM, Guillaume Desmottes<[email protected]> wrote: > Le samedi 20 juin 2009 à 15:54 +0100, Alban Crequy a écrit : >> Should someone do a proper Python module, and reuse >> it? Or is there a big picture I missed? > > I see some options here: > > A) Integrate it in telepathy-python. Probably not because it doesn't > depend on GTK+ and that's probably a sane choice. I think telepathy-python don't even depends directly on glib only indirectly via d-bus for the mainloop but you could theoretically ship it with qt mainloop only. So it's probably not a good idea.
> > B) Make Empathy's contact chooser bindable and use it from Python. Good > from a good reuse pov but depend on libempathy(-gtk) sucks. The contact chooser IS binded in Python, the problem is that tp-glib isn't, so that once we have selected a contact you can't completely retrieve it in python. See the bug I opened about that http://bugzilla.gnome.org/show_bug.cgi?id=581751 I don't know much about the way python bindings works but I'm wondering, since these are all d-bus objects wouldn't it be possible to recreate tp-python objects from the d-bus path and return that? > C) Give born to telepathy-gtk and bind it in Python. Probably the best > choice but no one is working on it atm (and that probably means we'll > need Python bindings of telepathy-glib as well). That sounds good as a long term plan but not really something we could use right now. Also would that mean we would drop the current telepathy-python? > D) Create yet another library. Doesn't sound like a good idea to me. Yes that look like a lot of extra works for just a class maybe that would be justified if we had a bunch of other widgets but right now I don't see anything really interesting apart from the contact selector. On the other hand if we all have a hard copy of Zhang's contact selector in each of our project and others projects start doing the same it may get messy. Take for example the EggTrayIcon which got copied around in a lot of gtk programs and the mess it was to get every program to update each time there was a bug fix. -- Olivier Lê Thanh Duong <[email protected]> Phone : +32485608639 Jabber: [email protected] _______________________________________________ telepathy mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/telepathy
