Bug 27329

Summary: creating a Channel in ObserveChannels is harder than it needs to be
Product: Telepathy Reporter: Simon McVittie <smcv>
Component: tp-pythonAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: enhancement    
Priority: medium    
Version: git master   
Hardware: Other   
OS: All   
Whiteboard: easy?
i915 platform: i915 features:

Description Simon McVittie 2010-03-26 08:33:18 UTC
15:29 < smcv> sjokkis: def ObserveChannels(self, account, connection, channels, 
              blah, blah, blah)
15:30 < smcv> sjokkis: @connection is the object path of the connection - 
              connection[1:].replace('/', '.') is the bus name
15:30 < smcv> sjokkis: (yeah that's harder than it needs to be)
15:30 < sjokkis> there should be a convenience function for that, at least. but 
                 no big
15:31 < smcv> I think Channel.__init__ should accept either a Connection, a 
              connection bus name or a connection object path as its first 
              argument, and translate to a bus name internally
15:32 * tomeu likes that
Comment 1 GitLab Migration User 2019-12-03 20:14:29 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/14.

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.