Ejemplo n.º 1
0
 def __init__(self, name, password, *a, **k):
     self.location = name
     EventMixin.__init__(self)
     self.proto = RssProtocol(self)
     SocialNetwork.__init__(self, name=name, password=password, *a, **k)
     self._dirty = True
     self.change_state(self.Statuses.ONLINE)
Ejemplo n.º 2
0
 def __init__(self, name, password, *a, **k):
     self.location = name
     EventMixin.__init__(self)
     self.proto = RssProtocol(self)
     SocialNetwork.__init__(self, name=name, password=password, *a, **k)
     self._dirty = True
     self.change_state(self.Statuses.ONLINE)
Ejemplo n.º 3
0
    def __init__(self, parent, skinkey='AppDefaults.PrefCombo'):
        EventMixin.__init__(self)
        UberCombo.__init__(self, parent, self.no_connections_label, False,
                           valuecallback=self._on_account_changed, skinkey=skinkey)

        profile.account_manager.connected_accounts.add_observer(self._on_connaccts_changed)
        self._on_connaccts_changed()
Ejemplo n.º 4
0
    def __init__(self, ns, to_invite=()):

        self.ns = ns
        # bind events to NS
        self.principals = []
        self.to_invite = to_invite

        self.__chatbuddy = get(to_invite, 0, None)

        EventMixin.__init__(self)
Ejemplo n.º 5
0
    def __init__(self, parent, skinkey='AppDefaults.PrefCombo'):
        EventMixin.__init__(self)
        UberCombo.__init__(self,
                           parent,
                           self.no_connections_label,
                           False,
                           valuecallback=self._on_account_changed,
                           skinkey=skinkey)

        profile.account_manager.connected_accounts.add_observer(
            self._on_connaccts_changed)
        self._on_connaccts_changed()
Ejemplo n.º 6
0
    def __init__(self, client, buddy):
        EventMixin.__init__(self)

        self.lockkey = ''
        self.buildver = 'Digsby %r' % sys.REVISION
        self.run_id = str(uuid.uuid4()).upper()
        self.msgnum = 1
        self.client = client
        self.buddy = buddy
        self.version = self.client.version
        self._closed = False
        self._connected = False
Ejemplo n.º 7
0
    def __init__(self, acct):
        self.stream_request_outstanding = True
        self.acct = acct
        self._init_apis()
        self.last_stream = True
        self.last_filter_key = self.filter_key
        EventMixin.__init__(self)

        self.social_feed = SocialFeed('facebook_' + self.acct.username,
                                      'newsfeed', self.get_post_feed,
                                      self.htmlize_posts,
                                      self.set_infobox_dirty)
Ejemplo n.º 8
0
    def __init__(self, client, buddy):
        EventMixin.__init__(self)

        self.lockkey = ''
        self.buildver = 'Digsby %r' % sys.REVISION
        self.run_id = str(uuid.uuid4()).upper()
        self.msgnum = 1
        self.client = client
        self.buddy = buddy
        self.version = self.client.version
        self._closed = False
        self._connected = False
Ejemplo n.º 9
0
    def __init__(self, acct):
        self.stream_request_outstanding = True
        self.acct = acct
        self._init_apis()
        self.last_stream = True
        self.last_filter_key = self.filter_key
        EventMixin.__init__(self)

        self.social_feed = SocialFeed('facebook_' + self.acct.username,
                                      'newsfeed',
                                      self.get_post_feed,
                                      self.htmlize_posts,
                                      self.set_infobox_dirty)
Ejemplo n.º 10
0
    def __init__(self, SckCls_or_sck, server=None, buddy=None):
        '''
        @param client:         Client instance to report to
        @type  client:         L{msn.Client} (or similar)
        @param server:         Server address (host,port)
        @type  server:         tuple (string,int)

        @param SckCls_or_sck: Type of socket or instance of socket to use for transport
        @type  SckCls_or_sck: Class or instance of socket to use
        '''

        CommandProcessor.__init__(self, log)
        EventMixin.__init__(self)

        self._server = server
        self._sb_class = None
        self._last_bname = None

        self.self_buddy = buddy
        self.allow_unknown_contacts = False

        if type(SckCls_or_sck) is type:
            self.socket    = None
            self._socktype = SckCls_or_sck
        else:
            self.socket    = SckCls_or_sck
            self._socktype = type(self.socket)
            self._server   = self.socket._server
            self.socket.bind('on_message', self.on_message)
            self.socket.bind('on_conn_error', self.on_sck_conn_error)
            self.socket.bind('on_close', self.on_sck_close)

        import mail.passport

        self._authorizers = {
                             'default' : mail.passport.do_tweener_auth_4,
                             'SSO'     : mail.passport.do_tweener_auth_4,
                             'TWN'     : mail.passport.do_tweener_auth_3,
                             }
Ejemplo n.º 11
0
    def __init__(self, SckCls_or_sck, server=None, buddy=None):
        '''
        @param client:         Client instance to report to
        @type  client:         L{msn.Client} (or similar)
        @param server:         Server address (host,port)
        @type  server:         tuple (string,int)

        @param SckCls_or_sck: Type of socket or instance of socket to use for transport
        @type  SckCls_or_sck: Class or instance of socket to use
        '''

        CommandProcessor.__init__(self, log)
        EventMixin.__init__(self)

        self._server = server
        self._sb_class = None
        self._last_bname = None

        self.self_buddy = buddy
        self.allow_unknown_contacts = False

        if type(SckCls_or_sck) is type:
            self.socket = None
            self._socktype = SckCls_or_sck
        else:
            self.socket = SckCls_or_sck
            self._socktype = type(self.socket)
            self._server = self.socket._server
            self.socket.bind('on_message', self.on_message)
            self.socket.bind('on_conn_error', self.on_sck_conn_error)
            self.socket.bind('on_close', self.on_sck_close)

        import mail.passport

        self._authorizers = {
            'default': mail.passport.do_tweener_auth_4,
            'SSO': mail.passport.do_tweener_auth_4,
            'TWN': mail.passport.do_tweener_auth_3,
        }
Ejemplo n.º 12
0
 def __init__(self, location):
     self.location = location
     self.items = []
     EventMixin.__init__(self)
Ejemplo n.º 13
0
 def __init__(self, contacts):
     EventMixin.__init__(self)
     self.contacts = None
     self.offline = False
     self.set_contacts(contacts)
Ejemplo n.º 14
0
 def __init__(self, location):
     self.location = location
     self.items = []
     EventMixin.__init__(self)
Ejemplo n.º 15
0
    def __init__(self):
        common.socket.__init__(self)
        EventMixin.__init__(self)

        self.set_terminator(CRLF)
        self.data = []
Ejemplo n.º 16
0
 def __init__(self, contacts):
     EventMixin.__init__(self)
     self.contacts = None
     self.offline = False
     self.set_contacts(contacts)
Ejemplo n.º 17
0
    def __init__(self):
        common.socket.__init__(self)
        EventMixin.__init__(self)

        self.set_terminator(CRLF)
        self.data = []