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

Issue 9772046: Bring back tools.run(), but only conditionally on gflags.

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

Description

Bring back tools.run(), but only conditionally on gflags. Add a warning that tools.run() is deprecated and will be removed in a future version.

Patch Set 1 #

Patch Set 2 : 80 cols #

Patch Set 3 : ws #

Total comments: 8

Patch Set 4 : new file #

Patch Set 5 : missing file #

Total comments: 2

Patch Set 6 : more back into tools.py #

Patch Set 7 : remove old_run.py #

Patch Set 8 : back to old_run.py #

Patch Set 9 : missing file #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -3 lines) Patch
M apiclient/sample_tools.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A oauth2client/old_run.py View 1 2 3 4 5 6 7 8 1 chunk +160 lines, -0 lines 3 comments Download
M oauth2client/tools.py View 1 2 3 4 5 6 7 3 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 17
jcgregorio_google
10 years, 11 months ago (2013-06-03 20:31:22 UTC) #1
dhermes
https://codereview.appspot.com/9772046/diff/4001/oauth2client/tools.py File oauth2client/tools.py (right): https://codereview.appspot.com/9772046/diff/4001/oauth2client/tools.py#newcode110 oauth2client/tools.py:110: def run2(flow, storage, flags, http=None): Use a different name ...
10 years, 11 months ago (2013-06-03 20:33:42 UTC) #2
jcgregorio_google
https://codereview.appspot.com/9772046/diff/4001/oauth2client/tools.py File oauth2client/tools.py (right): https://codereview.appspot.com/9772046/diff/4001/oauth2client/tools.py#newcode110 oauth2client/tools.py:110: def run2(flow, storage, flags, http=None): On 2013/06/03 20:33:42, dhermes ...
10 years, 11 months ago (2013-06-04 03:08:49 UTC) #3
dhermes
https://codereview.appspot.com/9772046/diff/4001/oauth2client/tools.py File oauth2client/tools.py (right): https://codereview.appspot.com/9772046/diff/4001/oauth2client/tools.py#newcode110 oauth2client/tools.py:110: def run2(flow, storage, flags, http=None): Haha! "Naming is tough" ...
10 years, 11 months ago (2013-06-04 04:00:50 UTC) #4
jcgregorio_google
https://codereview.appspot.com/9772046/diff/4001/oauth2client/tools.py File oauth2client/tools.py (right): https://codereview.appspot.com/9772046/diff/4001/oauth2client/tools.py#newcode110 oauth2client/tools.py:110: def run2(flow, storage, flags, http=None): On 2013/06/04 04:00:50, dhermes ...
10 years, 10 months ago (2013-06-28 05:27:52 UTC) #5
dhermes
LGTM https://codereview.appspot.com/9772046/diff/13001/oauth2client/tools.py File oauth2client/tools.py (right): https://codereview.appspot.com/9772046/diff/13001/oauth2client/tools.py#newcode236 oauth2client/tools.py:236: from old_run import run Do we want a ...
10 years, 10 months ago (2013-06-28 19:51:35 UTC) #6
jcgregorio_google
Actually, moving the code to old_run is more difficult than I thought, the last copy ...
10 years, 10 months ago (2013-06-30 04:24:15 UTC) #7
jcgregorio_google
On 2013/06/30 04:24:15, jcgregorio_google wrote: > Actually, moving the code to old_run is more difficult ...
10 years, 10 months ago (2013-06-30 04:56:26 UTC) #8
dhermes
If it's just ClientRedirectHandler and ClientRedirectServer you can do an import within the method to ...
10 years, 10 months ago (2013-07-01 21:01:20 UTC) #9
jcgregorio_google
On 2013/07/01 21:01:20, dhermes wrote: > If it's just ClientRedirectHandler and ClientRedirectServer you can do ...
10 years, 10 months ago (2013-07-02 16:36:57 UTC) #10
dhermes
https://codereview.appspot.com/9772046/diff/28001/oauth2client/old_run.py File oauth2client/old_run.py (right): https://codereview.appspot.com/9772046/diff/28001/oauth2client/old_run.py#newcode28 oauth2client/old_run.py:28: from tools import ClientRedirectHandler I thought you said this ...
10 years, 10 months ago (2013-07-02 18:16:58 UTC) #11
jcgregorio_google
https://codereview.appspot.com/9772046/diff/28001/oauth2client/old_run.py File oauth2client/old_run.py (right): https://codereview.appspot.com/9772046/diff/28001/oauth2client/old_run.py#newcode28 oauth2client/old_run.py:28: from tools import ClientRedirectHandler On 2013/07/02 18:16:59, dhermes wrote: ...
10 years, 10 months ago (2013-07-02 18:20:53 UTC) #12
dhermes
https://codereview.appspot.com/9772046/diff/28001/oauth2client/old_run.py File oauth2client/old_run.py (right): https://codereview.appspot.com/9772046/diff/28001/oauth2client/old_run.py#newcode28 oauth2client/old_run.py:28: from tools import ClientRedirectHandler Yeah I guess you're right. ...
10 years, 10 months ago (2013-07-02 18:28:15 UTC) #13
dhermes
A good write-up on circular imports: http://stackoverflow.com/a/3956038/1068170
10 years, 10 months ago (2013-07-02 18:29:40 UTC) #14
jcgregorio_google
Yeah, we either have circular imports or large blocks of conditional code, both are unpleasant. ...
10 years, 10 months ago (2013-07-02 18:33:22 UTC) #15
kevin5
On 2013/07/02 18:33:22, jcgregorio_google wrote: > Yeah, we either have circular imports or large blocks ...
10 years, 9 months ago (2013-07-09 14:56:08 UTC) #16
jcgregorio_google
10 years, 9 months ago (2013-07-15 17:03:28 UTC) #17
All of the code samples have been updated, docs will be updated soon.


On Tue, Jul 9, 2013 at 10:56 AM, <kevin@ie.suberic.net> wrote:

> On 2013/07/02 18:33:22, jcgregorio_google wrote:
>
>> Yeah, we either have circular imports or large blocks of conditional
>>
> code,
>
>> both are
>> unpleasant. This is all code that is going to be deleted shortly, and
>>
> by
>
>> shortly I mean
>> the very first CL after v1.2 is released.
>>
>
> There is a lot of documentation and code samples in this project that
> use tools.run. Will that be updated when tools.run is deleted?
>
>
https://codereview.appspot.**com/9772046/<https://codereview.appspot.com/9772...
>
Sign in to reply to this message.

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