The most common question I get from newcomers in TP is generally "how can I start a chat/call from a Python script and let Empathy handles it". It's now pretty simple to do but it would be nice to have a proper example we could refer to. I'll cook one.
Here we go: http://git.collabora.co.uk/?p=user/cassidy/telepathy-glib;a=shortlog;h=refs/heads/python-request-32986 but it's kinda blocked by this pygi bug: https://bugzilla.gnome.org/show_bug.cgi?id=639205
The pygi bug seems to be fixed in master. The last issue is the lack of USER_ACTION_TIME_CURRENT_TIME but I don't think that's a blocker. I opened https://bugzilla.gnome.org/show_bug.cgi?id=639206 for it.
> +def create_request(action, contact_id): Was surprised to see that it didn't returned some kind of Request object, I would rename it to create_request_dict() or something similar. > + # FIXME: for some reason TelepathyGLib.USER_ACTION_TIME_CURRENT_TIME is I would add a link to the bug to increase the chances that someone will remove the FIXME once it gets fixed. For extra readability, consider removing all abbreviations.
(In reply to comment #3) > > +def create_request(action, contact_id): > > Was surprised to see that it didn't returned some kind of Request object, I > would rename it to create_request_dict() or something similar. done. > > + # FIXME: for some reason TelepathyGLib.USER_ACTION_TIME_CURRENT_TIME is > > I would add a link to the bug to increase the chances that someone will remove > the FIXME once it gets fixed. done. > For extra readability, consider removing all abbreviations. Good idea; I've done that.
Merged to master; will be in 0.13.12
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.