self._manager = manager
self._props = props
- telepathy.server.ChannelTypeStreamedMedia.__init__(self, connection, None)
+ try:
+ # Older python-telepathy way
+ telepathy.server.ChannelTypeStreamedMedia.__init__(self, connection, None)
+ except TypeError:
+ # Newer python-telepathy way
+ telepathy.server.ChannelTypeStreamedMedia.__init__(self, connection, manager, props)
telepathy.server.ChannelInterfaceCallState.__init__(self)
telepathy.server.ChannelInterfaceGroup.__init__(self)
self._contactHandle = contactHandle
self._manager = manager
self._props = props
- telepathy.server.ChannelTypeContactList.__init__(self, connection, h)
+ try:
+ # Older python-telepathy way
+ telepathy.server.ChannelTypeContactList.__init__(self, connection, h)
+ except TypeError:
+ # Newer python-telepathy way
+ telepathy.server.ChannelTypeContactList.__init__(self, connection, manager, props)
telepathy.server.ChannelInterfaceGroup.__init__(self)
self._session = connection.session
self._manager = manager
self._props = props
- telepathy.server.ChannelTypeText.__init__(self, connection, contactHandle)
+ try:
+ # Older python-telepathy way
+ telepathy.server.ChannelTypeText.__init__(self, connection, contactHandle)
+ except TypeError:
+ # Newer python-telepathy way
+ telepathy.server.ChannelTypeText.__init__(self, connection, manager, props)
self._nextRecievedId = 0
self._lastMessageTimestamp = datetime.datetime(1, 1, 1)