Exemple #1
0
def check_credentials():
    msg.debug('Print checking credentials.')
    if utils.can_auth():
        return
    if not utils.has_browser():
        msg.log('You need a Floobits account to use the Floobits plugin. Go to https://floobits.com to sign up.')
        return
    yield VUI.create_or_link_account, None, G.DEFAULT_HOST, False
Exemple #2
0
 def complete_signup(self):
     if not self.start_ticker():
         return
     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
     VUI.pinocchio()
 def prompt_join_hangout(self, hangout_url):
     if not utils.has_browser():
         return
     hangout_client = None
     users = self.workspace_info.get('users')
     for user_id, user in users.items():
         if user['username'] == G.USERNAME and 'hangout' in user['client']:
             hangout_client = user
             break
     if hangout_client:
         return
     choice = editor.vim_choice('This workspace is being edited in a hangout. Join the hangout?', 'yes', ['yes', 'no'])
     if choice == 'yes':
         webbrowser.open(hangout_url, new=2, autoraise=True)
Exemple #4
0
 def prompt_join_hangout(self, hangout_url):
     if not utils.has_browser():
         return
     hangout_client = None
     users = self.workspace_info.get('users')
     for user_id, user in users.items():
         if user['username'] == G.USERNAME and 'hangout' in user['client']:
             hangout_client = user
             break
     if hangout_client:
         return
     choice = editor.vim_choice('This workspace is being edited in a hangout. Join the hangout?', 'yes', ['yes', 'no'])
     if choice == 'yes':
         webbrowser.open(hangout_url, new=2, autoraise=True)