def getAuthInfo(self):
        """ Retrieve the login/password of the user """
        if self.login is None: auth = authentication.getAuthInfo('last.fm', _('your Last.fm account'))
        else:                  auth = authentication.getAuthInfo('last.fm', _('your Last.fm account'), self.login, True)

        if auth is None: self.login, self.passwd = None, None
        else:            self.login, self.passwd = auth
    def getAuthInfo(self):
        """ Retrieve the login/password of the user """
        from gui import authentication

        if self.login is None:
            auth = authentication.getAuthInfo("last.fm", _("your Last.fm account"))
        else:
            auth = authentication.getAuthInfo("last.fm", _("your Last.fm account"), self.login, True)

        if auth is None:
            self.login, self.passwd = None, None
        else:
            self.login, self.passwd = auth
示例#3
0
    def getAuthInfo(self):
        """ Retrieve the login/password of the user """
        from gui import authentication

        auth = authentication.getAuthInfo('Twitter', _('your Twitter account'))

        if auth is None: self.login, self.passwd = None, None
        else:            self.login, self.passwd = auth