From 40213b3e3ffb3da81c8f06707ef20153c267e6f1 Mon Sep 17 00:00:00 2001 From: WoodySlum Date: Tue, 8 Jan 2013 18:12:15 +0100 Subject: [PATCH] Fix issue with team selection Team selection feature has been fixed --- profile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 profile.py diff --git a/profile.py b/profile.py old mode 100644 new mode 100755 index 8f2dbd2..9bd0f30 --- a/profile.py +++ b/profile.py @@ -66,7 +66,7 @@ def extract_helper(regex, data): if not options.appleID or not options.password: bail_out('Both Apple ID and password have to be specified') -initial_url = 'http://developer.apple.com/iphone/index.action' +initial_url = 'https://developer.apple.com/iphone/index.action' # determine login url data = fetch(initial_url) login_url = extract_helper('href="(.+?login.+)"', data) @@ -84,11 +84,11 @@ def extract_helper(regex, data): match = re.search('value="(.+)">%s' % options.team, data) if not match: bail_out('Team %s is not found.' % options.team) - form_action = urlparse.urljoin(initial_url, '/iphone/saveTeamSelection.action') + form_action = urlparse.urljoin(initial_url, '/devcenter/saveTeamSelection.action') data = fetch(form_action, {'memberDisplayId':match.group(1), 'action:saveTeamSelection!save':'Continue'}) if data.find('/iphone/my/') == -1: - provision_url = 'http://developer.apple.com/iphone/manage/provisioningprofiles/index.action' + provision_url = 'https://developer.apple.com/ios/manage/provisioningprofiles/index.action' else: provision_url = 'http://developer.apple.com/iphone/my/provision/index.action'