コード例 #1
0
 def run(self):
     floorc = utils.load_floorc()
     username = floorc.get('USERNAME')
     secret = floorc.get('SECRET')
     print(username, secret)
     if not (username and secret):
         return sublime.error_message('You don\'t seem to have a Floobits account of any sort')
     webbrowser.open('https://%s/u/%s/pinocchio/%s/' % (G.DEFAULT_HOST, username, secret))
コード例 #2
0
 def run(self):
     floorc = utils.load_floorc()
     username = floorc.get('USERNAME')
     secret = floorc.get('SECRET')
     print(username, secret)
     if not (username and secret):
         return sublime.error_message(
             'You don\'t seem to have a Floobits account of any sort')
     webbrowser.open('https://%s/u/%s/pinocchio/%s/' %
                     (G.DEFAULT_HOST, username, secret))
コード例 #3
0
def floobits_complete_signup():
    msg.debug('Completing signup.')
    if not utils.has_browser():
        msg.log('You need a modern browser to complete the sign up. Go to https://floobits.com to sign up.')
        return
    floorc = utils.load_floorc()
    username = floorc.get('USERNAME')
    secret = floorc.get('SECRET')
    msg.debug('Completing sign up with %s %s' % (username, secret))
    if not (username and secret):
        return msg.error('You don\'t seem to have a Floobits account of any sort.')
    webbrowser.open('https://%s/%s/pinocchio/%s' % (G.DEFAULT_HOST, username, secret))
コード例 #4
0
def floobits_complete_signup():
    msg.debug('Completing signup.')
    if not utils.has_browser():
        msg.log(
            'You need a modern browser to complete the sign up. Go to https://floobits.com to sign up.'
        )
        return
    floorc = utils.load_floorc()
    username = floorc.get('USERNAME')
    secret = floorc.get('SECRET')
    msg.debug('Completing sign up with %s %s' % (username, secret))
    if not (username and secret):
        return msg.error(
            'You don\'t seem to have a Floobits account of any sort.')
    webbrowser.open('https://%s/%s/pinocchio/%s' %
                    (G.DEFAULT_HOST, username, secret))