try:
# HACK Older python-telepathy way
- telepathy.server.ChannelTypeStreamedMedia.__init__(self, connection, None)
+ telepathy.server.ChannelTypeStreamedMedia.__init__(self, connection, contactHandle)
self._requested = props[telepathy.interfaces.CHANNEL_INTERFACE + '.Requested']
self._implement_property_get(
telepathy.interfaces.CHANNEL_INTERFACE,
},
)
+ # HACK Older python-telepathy doesn't provide this
+ self._immutable_properties = {
+ 'ChannelType': telepathy.server.interfaces.CHANNEL_INTERFACE,
+ 'TargetHandle': telepathy.server.interfaces.CHANNEL_INTERFACE,
+ 'Interfaces': telepathy.server.interfaces.CHANNEL_INTERFACE,
+ 'TargetHandleType': telepathy.server.interfaces.CHANNEL_INTERFACE,
+ 'TargetID': telepathy.server.interfaces.CHANNEL_INTERFACE,
+ 'Requested': telepathy.server.interfaces.CHANNEL_INTERFACE
+ }
+
self.GroupFlagsChanged(0, 0)
self.MembersChanged(
- '', [self._conn.GetSetHandle()], [], [], [contactHandle],
+ '', [self._conn.GetSelfHandle()], [], [], [contactHandle],
0, telepathy.CHANNEL_GROUP_CHANGE_REASON_NONE
)
def get_props(self):
# HACK Older python-telepathy doesn't provide this
- _immutable_properties = {
- 'ChannelType': telepathy.server.interfaces.CHANNEL_INTERFACE,
- 'TargetHandle': telepathy.server.interfaces.CHANNEL_INTERFACE,
- 'Interfaces': telepathy.server.interfaces.CHANNEL_INTERFACE,
- 'TargetHandleType': telepathy.server.interfaces.CHANNEL_INTERFACE,
- 'TargetID': telepathy.server.interfaces.CHANNEL_INTERFACE,
- 'Requested': telepathy.server.interfaces.CHANNEL_INTERFACE
- }
props = dict()
- for prop, iface in _immutable_properties.items():
+ for prop, iface in self._immutable_properties.items():
props[iface + '.' + prop] = \
self._prop_getters[iface][prop]()
return props
self.__props = props
self.__session = connection.session
+ # HACK Older python-telepathy doesn't provide this
+ self._immutable_properties = {
+ 'ChannelType': telepathy.server.interfaces.CHANNEL_INTERFACE,
+ 'TargetHandle': telepathy.server.interfaces.CHANNEL_INTERFACE,
+ 'Interfaces': telepathy.server.interfaces.CHANNEL_INTERFACE,
+ 'TargetHandleType': telepathy.server.interfaces.CHANNEL_INTERFACE,
+ 'TargetID': telepathy.server.interfaces.CHANNEL_INTERFACE,
+ 'Requested': telepathy.server.interfaces.CHANNEL_INTERFACE
+ }
+
self._callback = coroutines.func_sink(
coroutines.expand_positional(
self._on_contacts_refreshed
def get_props(self):
# HACK Older python-telepathy doesn't provide this
- _immutable_properties = {
- 'ChannelType': telepathy.server.interfaces.CHANNEL_INTERFACE,
- 'TargetHandle': telepathy.server.interfaces.CHANNEL_INTERFACE,
- 'Interfaces': telepathy.server.interfaces.CHANNEL_INTERFACE,
- 'TargetHandleType': telepathy.server.interfaces.CHANNEL_INTERFACE,
- 'TargetID': telepathy.server.interfaces.CHANNEL_INTERFACE,
- 'Requested': telepathy.server.interfaces.CHANNEL_INTERFACE
- }
props = dict()
- for prop, iface in _immutable_properties.items():
+ for prop, iface in self._immutable_properties.items():
props[iface + '.' + prop] = \
self._prop_getters[iface][prop]()
return props
self.__otherHandle = contactHandle
- def get_props(self):
# HACK Older python-telepathy doesn't provide this
- _immutable_properties = {
+ self._immutable_properties = {
'ChannelType': telepathy.server.interfaces.CHANNEL_INTERFACE,
'TargetHandle': telepathy.server.interfaces.CHANNEL_INTERFACE,
'Interfaces': telepathy.server.interfaces.CHANNEL_INTERFACE,
'TargetID': telepathy.server.interfaces.CHANNEL_INTERFACE,
'Requested': telepathy.server.interfaces.CHANNEL_INTERFACE
}
+
+ def get_props(self):
+ # HACK Older python-telepathy doesn't provide this
props = dict()
- for prop, iface in _immutable_properties.items():
+ for prop, iface in self._immutable_properties.items():
props[iface + '.' + prop] = \
self._prop_getters[iface][prop]()
return props
self.__otherHandle = contactHandle
+ # HACK Older python-telepathy doesn't provide this
+ self._immutable_properties = {
+ 'ChannelType': telepathy.server.interfaces.CHANNEL_INTERFACE,
+ 'TargetHandle': telepathy.server.interfaces.CHANNEL_INTERFACE,
+ 'Interfaces': telepathy.server.interfaces.CHANNEL_INTERFACE,
+ 'TargetHandleType': telepathy.server.interfaces.CHANNEL_INTERFACE,
+ 'TargetID': telepathy.server.interfaces.CHANNEL_INTERFACE,
+ 'Requested': telepathy.server.interfaces.CHANNEL_INTERFACE
+ }
+
self.__callback = coroutines.func_sink(
coroutines.expand_positional(
self._on_conversations_updated
def get_props(self):
# HACK Older python-telepathy doesn't provide this
- _immutable_properties = {
- 'ChannelType': telepathy.server.interfaces.CHANNEL_INTERFACE,
- 'TargetHandle': telepathy.server.interfaces.CHANNEL_INTERFACE,
- 'Interfaces': telepathy.server.interfaces.CHANNEL_INTERFACE,
- 'TargetHandleType': telepathy.server.interfaces.CHANNEL_INTERFACE,
- 'TargetID': telepathy.server.interfaces.CHANNEL_INTERFACE,
- 'Requested': telepathy.server.interfaces.CHANNEL_INTERFACE
- }
props = dict()
- for prop, iface in _immutable_properties.items():
+ for prop, iface in self._immutable_properties.items():
props[iface + '.' + prop] = \
self._prop_getters[iface][prop]()
return props
__pretty_app_name__ = "Telepathy-TheOneRing"
__app_name__ = "telepathy-theonering"
__version__ = "0.1.0"
-__build__ = 12
+__build__ = 13
__app_magic__ = 0xdeadbeef
_data_path_ = os.path.join(os.path.expanduser("~"), ".telepathy-theonering")
_user_settings_ = "%s/settings.ini" % _data_path_
nextTimeout = self._strategy.timeout
if nextTimeout != self.INFINITE_PERIOD:
self._timeoutId = gobject.timeout_add(nextTimeout, self._on_timeout)
- _moduleLogger.info("%s Next update in %s ms" % (self._name, nextTimeout, ))
+ _moduleLogger.debug("%s Next update in %s ms" % (self._name, nextTimeout, ))
def _stop_update(self):
if self._timeoutId is None:
@gtk_toolbox.log_exception(_moduleLogger)
def _on_timeout(self):
- _moduleLogger.debug("%s Update" % (self._name))
+ _moduleLogger.info("%s Update" % (self._name))
self._timeoutId = None
self._schedule_update()
for item in self._updateItems: