old_contents: # encoding: utf8
  
  import base64, json, urllib
  
  # extension identifier and name
  EXTENSION_ID = 'com.pilotmoon.popclip.extension.trello'
  EXTENSION_NAME = 'Trello';
  
  # app name for display to user
  APP_NAME = 'PopClip Extension “' + EXTENSION_NAME + '”';
  
  # our callback url & params
  EXPECT_PARAMS = base64.urlsafe_b64encode(json.dumps({
      'q': ['oauth_verifier', 'oauth_token']
  }))
  CALLBACK_DATA = {
      'callback_ext_id': EXTENSION_ID,
      'callback_ext_name': EXTENSION_NAME,
      'callback_expect': EXPECT_PARAMS
  }
  CALLBACK = 'https://pilotmoon.com/popclip_extension_callback?' + urllib.urlencode(CALLBACK_DATA)
  
  # data for authorization redirect
  AUTHORIZE_DATA = {    
      'oauth_callback': CALLBACK,
      'name': APP_NAME,
      'expiration': 'never',
      'scope': 'read,write'
  }
  
  # trello endpoints
  ENDPOINT_REQUEST = 'https://trello.com/1/OAuthGetRequestToken'
  ENDPOINT_AUTHORIZE = 'https://trello.com/1/OAuthAuthorizeToken'
  ENDPOINT_ACCESS = 'https://trello.com/1/OAuthGetAccessToken'
  ENDPOINT_BASE = 'https://trello.com/'
  
  # trello access
  CONSUMER_DATA = 'WyI5NzY1NDgzYzI1MzIwYTQ0YjRmMDQyZjIzNjViOGYzOSIsICJmZGJlYWQ1MTI2NWJkZDIxNDk0ZmQwYTEyN2ZiZWJjNzI5ZGNmYzgyMzA2MzQ0YzJmZTg1YzI4N2E4MTBlZTM3Il0='
new_contents: # encoding: utf8
  
  import base64, json, urllib
  
  # extension identifier and name
  EXTENSION_ID = 'com.pilotmoon.popclip.extension.trello'
  EXTENSION_NAME = 'Trello';
  
  # app name for display to user
  APP_NAME = 'PopClip Extension “' + EXTENSION_NAME + '”';
  
  # our callback url & params
  EXPECT_PARAMS = base64.urlsafe_b64encode(json.dumps({
      'q': ['oauth_verifier', 'oauth_token']
  }))
  CALLBACK_DATA = {
      'callback_ext_id': EXTENSION_ID,
      'callback_ext_name': EXTENSION_NAME,
      'callback_expect': EXPECT_PARAMS,
      'callback_site': 'https://trello.com/'
  }
  CALLBACK = 'https://pilotmoon.com/popclip_extension_callback?' + urllib.urlencode(CALLBACK_DATA)
  
  # data for authorization redirect
  AUTHORIZE_DATA = {    
      'oauth_callback': CALLBACK,
      'name': APP_NAME,
      'expiration': 'never',
      'scope': 'read,write'
  }
  
  # trello endpoints
  ENDPOINT_REQUEST = 'https://trello.com/1/OAuthGetRequestToken'
  ENDPOINT_AUTHORIZE = 'https://trello.com/1/OAuthAuthorizeToken'
  ENDPOINT_ACCESS = 'https://trello.com/1/OAuthGetAccessToken'
  ENDPOINT_BASE = 'https://trello.com/'
  
  # trello access
  CONSUMER_DATA = 'WyI5NzY1NDgzYzI1MzIwYTQ0YjRmMDQyZjIzNjViOGYzOSIsICJmZGJlYWQ1MTI2NWJkZDIxNDk0ZmQwYTEyN2ZiZWJjNzI5ZGNmYzgyMzA2MzQ0YzJmZTg1YzI4N2E4MTBlZTM3Il0='
subject: add callback site param to trello