Bug 14946 - telepathy-python should have an example connection manager
Summary: telepathy-python should have an example connection manager
Status: RESOLVED MOVED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-python (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-10 14:46 UTC by Dafydd Harries
Modified: 2019-12-03 19:35 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Dafydd Harries 2008-03-10 14:46:39 UTC
What the summary says.
Comment 1 Ed Page 2010-01-27 19:21:12 UTC
For me, I've used Butterfly as an example.  The downside is it doesn't exercise all of telepathy-python and it shows.  I think a mock connection manager would serve well as an example and help in automated tests.  I've found the coverage from butterfly and hand tests to be ... lacking as I've developed my CM (See 26059 and 26289)

Also I think would be important is to make clear the various coupling points.  Friend (access of _channel_manager) and inheritance (the whole design) are dangerous ways to couple and their use within telepathy-python have bitten me.  I made abstract properties in each mixin that expressed a contract of what the mixin expected from other classes to help understand the coupling points when mimicing Butterfly.  This would be beneficial for both an example CM and TP-P

On a related note to that related note (ok, so I really should file a separate bug at this point) except for the fact that I randomly need a parent's "_*" variable to work around some issue, it would be good if TP-P used "__*" because I've run into name clashes causing mysterious bugs.
Comment 2 GitLab Migration User 2019-12-03 19:35:46 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-python/issues/2.


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.