Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(85)

Issue 6441056: Flows no longer need to be saved between uses. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 11 months ago by jcgregorio_google
Modified:
12 years, 11 months ago
CC:
google-api-python-client_googlegroups.com
Visibility:
Public.

Description

Begin moving the redirect_uri out of step1() and into the constructor, but in a way that allows backwards compatibility. In the process also add in oauth2client.util.positional that helps catch all the places where I've been sloppy with optional params.

Patch Set 1 #

Patch Set 2 : sample fixes #

Patch Set 3 : Revert the breaking-ness of this change. #

Patch Set 4 : Revert some samples that no longer need to be changed. #

Total comments: 6

Patch Set 5 : positional now flag controlled #

Patch Set 6 : make comments match reality #

Total comments: 8

Patch Set 7 : review comments #

Total comments: 8

Patch Set 8 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+569 lines, -624 lines) Patch
M apiclient/discovery.py View 1 2 3 5 chunks +7 lines, -3 lines 0 comments Download
M apiclient/errors.py View 1 4 chunks +4 lines, -0 lines 0 comments Download
M apiclient/http.py View 1 2 3 4 5 6 7 19 chunks +29 lines, -16 lines 0 comments Download
M apiclient/schema.py View 1 7 chunks +8 lines, -3 lines 0 comments Download
M oauth2client/appengine.py View 1 2 3 4 5 6 7 16 chunks +127 lines, -66 lines 0 comments Download
M oauth2client/client.py View 1 2 3 4 5 6 7 21 chunks +64 lines, -36 lines 0 comments Download
M oauth2client/locked_file.py View 1 2 chunks +3 lines, -0 lines 0 comments Download
M oauth2client/multistore_file.py View 1 4 chunks +6 lines, -3 lines 0 comments Download
M oauth2client/tools.py View 1 4 chunks +7 lines, -4 lines 0 comments Download
A oauth2client/util.py View 1 2 3 4 5 1 chunk +127 lines, -0 lines 0 comments Download
M runtests.py View 1 2 3 4 5 6 2 chunks +11 lines, -3 lines 0 comments Download
M runtests.sh View 1 2 3 4 1 chunk +16 lines, -15 lines 0 comments Download
M samples/adexchangebuyer/sample_utils.py View 3 chunks +2 lines, -1 line 0 comments Download
M samples/adsense/sample_utils.py View 2 chunks +2 lines, -0 lines 0 comments Download
M samples/analytics/sample_utils.py View 2 chunks +2 lines, -0 lines 0 comments Download
M samples/appengine/app.yaml View 1 chunk +0 lines, -3 lines 0 comments Download
M samples/appengine/main.py View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M samples/blogger/blogger.py View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M samples/coordinate/coordinate.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M samples/dailymotion/main.py View 4 chunks +6 lines, -12 lines 0 comments Download
M samples/django_sample/plus/models.py View 2 chunks +0 lines, -8 lines 0 comments Download
M samples/django_sample/plus/views.py View 3 chunks +13 lines, -20 lines 0 comments Download
M samples/plus/plus.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M samples/service_account/tasks.py View 1 1 chunk +1 line, -1 line 0 comments Download
M samples/tasks_appengine/app.yaml View 1 chunk +1 line, -2 lines 0 comments Download
M samples/tasks_appengine/main.py View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M samples/threadqueue/main.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
R samples/tz/README View 1 chunk +0 lines, -36 lines 0 comments Download
R samples/tz/tznever View 1 chunk +0 lines, -289 lines 0 comments Download
M tests/test_discovery.py View 1 2 3 4 43 chunks +59 lines, -52 lines 0 comments Download
M tests/test_errors.py View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tests/test_http.py View 1 2 3 4 5 6 7 9 chunks +9 lines, -9 lines 0 comments Download
M tests/test_oauth2client.py View 1 2 3 4 5 6 7 19 chunks +32 lines, -26 lines 0 comments Download
M tests/test_oauth2client_appengine.py View 1 2 3 4 5 6 5 chunks +16 lines, -3 lines 0 comments Download
M tests/test_oauth2client_jwt.py View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12
jcgregorio_google
12 years, 11 months ago (2012-07-30 19:10:13 UTC) #1
jcgregorio_google
12 years, 11 months ago (2012-08-01 18:28:32 UTC) #2
alexv
Not really a code review. Just wanted to say great changes, Joe. http://codereview.appspot.com/6441056/diff/6001/oauth2client/appengine.py File oauth2client/appengine.py ...
12 years, 11 months ago (2012-08-01 21:06:05 UTC) #3
jcgregorio_google
http://codereview.appspot.com/6441056/diff/6001/oauth2client/appengine.py File oauth2client/appengine.py (right): http://codereview.appspot.com/6441056/diff/6001/oauth2client/appengine.py#newcode480 oauth2client/appengine.py:480: @login_required Yeah, there's an open issue to create a ...
12 years, 11 months ago (2012-08-01 21:08:38 UTC) #4
Ali Afshar
http://codereview.appspot.com/6441056/diff/6001/apiclient/discovery.py File apiclient/discovery.py (right): http://codereview.appspot.com/6441056/diff/6001/apiclient/discovery.py#newcode143 apiclient/discovery.py:143: @util.positional(2) I think this is a backwards-incompatible change. How ...
12 years, 11 months ago (2012-08-02 02:20:07 UTC) #5
jcgregorio_google
Good catch, positional errors now just log a warning by default. http://codereview.appspot.com/6441056/diff/6001/apiclient/discovery.py File apiclient/discovery.py (right): ...
12 years, 11 months ago (2012-08-02 17:21:05 UTC) #6
rmistry
http://codereview.appspot.com/6441056/diff/8002/oauth2client/appengine.py File oauth2client/appengine.py (right): http://codereview.appspot.com/6441056/diff/8002/oauth2client/appengine.py#newcode376 oauth2client/appengine.py:376: def _create_flow(self, request_handler): Missing method level documentation http://codereview.appspot.com/6441056/diff/8002/oauth2client/client.py File ...
12 years, 11 months ago (2012-08-03 13:06:35 UTC) #7
jcgregorio_google
http://codereview.appspot.com/6441056/diff/8002/oauth2client/appengine.py File oauth2client/appengine.py (right): http://codereview.appspot.com/6441056/diff/8002/oauth2client/appengine.py#newcode376 oauth2client/appengine.py:376: def _create_flow(self, request_handler): On 2012/08/03 13:06:35, rmistry wrote: > ...
12 years, 11 months ago (2012-08-03 13:30:43 UTC) #8
aiuto
just some little nits http://codereview.appspot.com/6441056/diff/11003/oauth2client/appengine.py File oauth2client/appengine.py (right): http://codereview.appspot.com/6441056/diff/11003/oauth2client/appengine.py#newcode578 oauth2client/appengine.py:578: @util.positional(3) positional(2) ? http://codereview.appspot.com/6441056/diff/11003/oauth2client/client.py File ...
12 years, 11 months ago (2012-08-03 18:42:46 UTC) #9
jcgregorio_google
http://codereview.appspot.com/6441056/diff/11003/oauth2client/appengine.py File oauth2client/appengine.py (right): http://codereview.appspot.com/6441056/diff/11003/oauth2client/appengine.py#newcode578 oauth2client/appengine.py:578: @util.positional(3) On 2012/08/03 18:42:46, aiuto wrote: > positional(2) ? ...
12 years, 11 months ago (2012-08-03 19:28:28 UTC) #10
aiuto
lgtm
12 years, 11 months ago (2012-08-03 19:39:29 UTC) #11
Ali Afshar
12 years, 11 months ago (2012-08-07 21:59:22 UTC) #12
On 2012/08/03 19:39:29, aiuto wrote:
> lgtm

LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b