def refresh_token(): client = gdata.apps.service.AppsService( domain=DOMAIN_ACCOUNT.split('@')[1]) client.ClientLogin(DOMAIN_ACCOUNT, keymaster.get(DOMAIN_ACCOUNT)) token = client.GetClientLoginToken() memcache.set('token', token) return token
def secure(self): return keymaster.get(DOMAIN_ACCOUNT) == self.request.get('secret')
def refresh_token(): client = gdata.apps.service.AppsService(domain=DOMAIN_ACCOUNT.split('@')[1]) client.ClientLogin(DOMAIN_ACCOUNT, keymaster.get(DOMAIN_ACCOUNT)) token = client.GetClientLoginToken() memcache.set('token', token) return token