def __init__(self, username, password, msgHub, server=None, login_as='online', *a, **k): super(SkyLibProtocol, self).__init__(username, password, msgHub) self.skylib = None self.skyacct = None self.root_group = Group('Root', self, 'Root') self.buddies = observable_dict() self.conversations = observable_dict()
def __init__(self, protocol): Observable.__init__(self) self.room_list = ObservableList() self.protocol = protocol self.autoresponded = False self.typing_status = observable_dict() self.just_had_error = False self.pending_contacts_callbacks = set() self.start_time_utc = datetime.utcnow() self._bind_reconnect() self.protocol.add_observer(self.__on_proto_state, 'state') self.videochat_urlhandler = None