Skip to content

Instantly share code, notes, and snippets.

Created February 20, 2016 23:01

Revisions

  1. @invalid-email-address Anonymous created this gist Feb 20, 2016.
    11 changes: 11 additions & 0 deletions FixMovieDiary.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # coding: utf-8
    import keychain
    import console
    from urllib import quote, unquote

    keychain.set_password('MovieDB', 'API', console.input_alert('Insert your MovieDB API key', '', keychain.get_password('MovieDB', 'API')))
    keychain.set_password('Airtable', 'API', console.input_alert('Insert your Airtable API key', '', keychain.get_password('Airtable', 'API')))
    keychain.set_password('Airtable', 'Movie Diary', console.input_alert('Insert your Airtable database ID', '', keychain.get_password('Airtable', 'Movie Diary')))
    keychain.set_password('Airtable', 'Movie Diary Table', quote(console.input_alert('Insert the name of your Airtable table', '', unquote(keychain.get_password('Airtable', 'Movie Diary Table')))))

    console.hud_alert('Updated configuration.')