From 6d3a83a70b3eff6d2a6e5e9ad7e6ba647480561e Mon Sep 17 00:00:00 2001 From: epage Date: Sat, 13 Jun 2009 22:58:34 +0000 Subject: [PATCH] I guess I never fixed the data generation for gc git-svn-id: file:///svnroot/gc-dialer/trunk@361 c39d3808-3fe2-4d86-a59f-b7f623ee9f21 --- tests/gc_samples/generate_gc_samples.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/gc_samples/generate_gc_samples.py b/tests/gc_samples/generate_gc_samples.py index a39f584..0608ffd 100755 --- a/tests/gc_samples/generate_gc_samples.py +++ b/tests/gc_samples/generate_gc_samples.py @@ -19,7 +19,6 @@ webpages = [ ("clicktocall", gc_backend.GCDialer._clicktocallURL), ("recent", gc_backend.GCDialer._inboxallURL), ("contacts", gc_backend.GCDialer._contactsURL), - ("contactdetails", gc_backend.GCDialer._contactDetailURL), ] @@ -43,12 +42,8 @@ username = sys.argv[1] password = sys.argv[2] loginPostData = urllib.urlencode({ - 'Email' : username, - 'Passwd' : password, - 'service': "grandcentral", - "ltmpl": "mobile", - "btmpl": "mobile", - "PersistentCookie": "yes", + 'username' : username, + 'password' : password, }) try: @@ -61,7 +56,9 @@ forwardPage = browser.download(gc_backend.GCDialer._forwardselectURL) tokenGroup = gc_backend.GCDialer._accessTokenRe.search(forwardPage) if tokenGroup is None: + print "="*60 print forwardPage + print "="*60 raise RuntimeError("Could not extract authentication token from GrandCentral") token = tokenGroup.group(1) -- 1.7.9.5