I guess I never fixed the data generation for gc
authorepage <eopage@byu.net>
Sat, 13 Jun 2009 22:58:34 +0000 (22:58 +0000)
committerepage <eopage@byu.net>
Sat, 13 Jun 2009 22:58:34 +0000 (22:58 +0000)
git-svn-id: file:///svnroot/gc-dialer/trunk@361 c39d3808-3fe2-4d86-a59f-b7f623ee9f21

tests/gc_samples/generate_gc_samples.py

index a39f584..0608ffd 100755 (executable)
@@ -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)