def __init__(self, conn, manager, conversation, props, object_path=None): GlitterTextChannel.__init__(self, conn, manager, conversation, props, object_path) _, _, handle = manager._get_type_requested_handle(props) if handle.contact is None: raise telepathy.NotAvailable('Contact not available') self._pending_offline_messages = {} contact = handle.contact if conversation is None: if contact.presence != papyon.Presence.OFFLINE: client = conn.msn_client conversation = papyon.Conversation(client, [contact]) self._conversation = conversation if self._conversation: self._offline_contact = None self._offline_handle = None papyon.event.ConversationEventInterface.__init__(self, self._conversation) else: self._offline_handle = handle self._offline_contact = contact self._initial_handle = handle self._oim_box_ref = weakref.ref(conn.msn_client.oim_box)
def __init__(self, conn, manager, room, props, object_path=None): GlitterTextChannel.__init__(self, conn, manager, room, props, object_path) telepathy.server.ChannelInterfaceGroup.__init__(self) self.GroupFlagsChanged( telepathy.CHANNEL_GROUP_FLAG_CHANNEL_SPECIFIC_HANDLES | telepathy.CHANNEL_GROUP_FLAG_HANDLE_OWNERS_NOT_AVAILABLE, 0) # This is done in an idle so that classes which subclass this one # can do stuff in their __init__ but will still benefit from this method # being called. self.__add_initial_participants()
def __init__(self, conn, manager, room, props, object_path=None): GlitterTextChannel.__init__(self, conn, manager, room, props, object_path) telepathy.server.ChannelInterfaceGroup.__init__(self) self.GroupFlagsChanged( telepathy.CHANNEL_GROUP_FLAG_CHANNEL_SPECIFIC_HANDLES | telepathy.CHANNEL_GROUP_FLAG_HANDLE_OWNERS_NOT_AVAILABLE, 0 ) # This is done in an idle so that classes which subclass this one # can do stuff in their __init__ but will still benefit from this method # being called. self.__add_initial_participants()