After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 581751 - empathy_contact_[gs]et_account isn't binded in python-empathy
empathy_contact_[gs]et_account isn't binded in python-empathy
Status: RESOLVED NOTABUG
Product: empathy
Classification: Core
Component: Python
2.25.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
Depends on:
Blocks:
 
 
Reported: 2009-05-07 14:34 UTC by Olivier Le Thanh Duong
Modified: 2009-05-09 14:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Olivier Le Thanh Duong 2009-05-07 14:34:57 UTC
Hello,

empathy_contact_[sg]et_account isn't available in the python bindings for libempathy.

AttributeError: 'empathy.Contact' object has no attribute 'get_account'
Same for set_account
Comment 1 Guillaume Desmottes 2009-05-07 15:05:06 UTC
This is because there is no Python binding of mission-control (and so of McAccount).
Comment 2 Olivier Le Thanh Duong 2009-05-07 20:20:57 UTC
it's also missing get_avatar and get_connection (and the correspongind set)
should I open separate bug?
Comment 3 Olivier Le Thanh Duong 2009-05-07 20:43:36 UTC
more generally it seem that any function which doesn't return a simple string, int or a Empathy* class isn't binded.
Comment 4 Xavier Claessens 2009-05-09 14:40:29 UTC
This is because there is no binding for tp-glib and mc API. I'm in favor of completely droping the python bindings because they are unusable. IMO the best way to do python programs for telepathy is using telepathy-python API directly and extend it to have high level objects, just like tp-qt4 does.