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

Issue 6610049: Moving Resource class to module level to make it serializable. (Closed)

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

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removing commented out code that was left in by mistake. #

Total comments: 8

Patch Set 3 : Addressing review comments from jcgregorio. #

Patch Set 4 : Changing attr cache to just keep track of the dynamic attributes. #

Patch Set 5 : Adding docstring to _set_dynamic_attr method. #

Patch Set 6 : Changed indent on docstring in methodNext, was causing parser to fail in describe.method_params. #

Patch Set 7 : Fixing pickle tests in discovery after changing from _attr_cache to _dynamic_attr list. #

Patch Set 8 : Changing setup.py to target a newer version of httplib2. #

Patch Set 9 : Rebasing after several commits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+573 lines, -420 lines) Patch
M apiclient/discovery.py View 1 2 3 4 5 5 chunks +461 lines, -419 lines 0 comments Download
M apiclient/errors.py View 1 chunk +5 lines, -0 lines 0 comments Download
M tests/test_discovery.py View 1 2 3 4 5 6 7 8 4 chunks +107 lines, -1 line 0 comments Download

Messages

Total messages: 24
dhermes
11 years, 10 months ago (2012-10-16 03:57:46 UTC) #1
dhermes
Sorry this just got sent. I am still not 100% sure what causes rietveld to ...
11 years, 10 months ago (2012-10-16 03:59:34 UTC) #2
dhermes
Hey Joe, Now that you're back, will you have a chance to review this? On ...
11 years, 10 months ago (2012-10-25 02:38:43 UTC) #3
jcgregorio_google
https://codereview.appspot.com/6610049/diff/1/tests/test_discovery.py File tests/test_discovery.py (right): https://codereview.appspot.com/6610049/diff/1/tests/test_discovery.py#newcode805 tests/test_discovery.py:805: # http = HttpMock(datafile('plus.json'), {'status': '200'}) Leftover commented out ...
11 years, 10 months ago (2012-10-25 18:41:59 UTC) #4
dhermes
https://codereview.appspot.com/6610049/diff/1/tests/test_discovery.py File tests/test_discovery.py (right): https://codereview.appspot.com/6610049/diff/1/tests/test_discovery.py#newcode805 tests/test_discovery.py:805: # http = HttpMock(datafile('plus.json'), {'status': '200'}) On 2012/10/25 18:41:59, ...
11 years, 10 months ago (2012-10-25 18:43:46 UTC) #5
dhermes
Any progress on this review? On Thu, Oct 25, 2012 at 11:43 AM, <dhermes@google.com> wrote: ...
11 years, 10 months ago (2012-10-29 20:56:47 UTC) #6
jcgregorio_google
https://codereview.appspot.com/6610049/diff/8001/apiclient/discovery.py File apiclient/discovery.py (right): https://codereview.appspot.com/6610049/diff/8001/apiclient/discovery.py#newcode384 apiclient/discovery.py:384: one blank line https://codereview.appspot.com/6610049/diff/8001/apiclient/discovery.py#newcode634 apiclient/discovery.py:634: previous_response: The response from ...
11 years, 10 months ago (2012-10-30 18:03:04 UTC) #7
dhermes
I have already updated the new patch set. https://codereview.appspot.com/6610049/diff/8001/apiclient/discovery.py File apiclient/discovery.py (right): https://codereview.appspot.com/6610049/diff/8001/apiclient/discovery.py#newcode384 apiclient/discovery.py:384: On ...
11 years, 10 months ago (2012-10-30 18:12:19 UTC) #8
jcgregorio_google
Have you also verified that this doesn't change the output of 'make docs' ? -joe ...
11 years, 10 months ago (2012-10-30 18:17:01 UTC) #9
dhermes
Nope. How might one do this? On Tue, Oct 30, 2012 at 11:17 AM, Joe ...
11 years, 10 months ago (2012-10-30 18:35:12 UTC) #10
jcgregorio_google
There's a Makefile in the project. Just run: $ make docs Then look at the ...
11 years, 10 months ago (2012-10-30 18:37:50 UTC) #11
dhermes
It does change things. For example it is removing all the subresources from specific API ...
11 years, 10 months ago (2012-10-30 19:34:04 UTC) #12
jcgregorio_google
On Tue, Oct 30, 2012 at 3:33 PM, Danny Hermes <dhermes@google.com> wrote: > It does ...
11 years, 10 months ago (2012-10-30 19:43:37 UTC) #13
dhermes
Yes. That is what I meant. Will update with a patch. On Tue, Oct 30, ...
11 years, 10 months ago (2012-10-30 19:46:54 UTC) #14
dhermes
Patch uploaded. There are still some docs that end up different, but they seem to ...
11 years, 10 months ago (2012-10-30 20:26:38 UTC) #15
jcgregorio_google
Yeah, I thought I'd pushed a fix for that, there was an issue with unicode ...
11 years, 10 months ago (2012-10-30 20:28:49 UTC) #16
dhermes
Traceback: python describe.py Traceback (most recent call last): File "describe.py", line 346, in <module> document_api(api['name'], ...
11 years, 10 months ago (2012-10-30 20:29:10 UTC) #17
dhermes
Can you try building the docs with a working version of make docs? On Tue, ...
11 years, 10 months ago (2012-10-31 22:30:49 UTC) #18
jcgregorio_google
The fix for the encoding issue is: diff -r c58ae21bb5e0 describe.py --- a/describe.py Mon Nov ...
11 years, 10 months ago (2012-11-05 13:05:21 UTC) #19
dhermes
Thanks. I figured out the issue. Your parser in describe.method_params was assuming 0 padding in ...
11 years, 10 months ago (2012-11-05 17:47:46 UTC) #20
jcgregorio_google
LGTM On 2012/11/05 17:47:46, dhermes wrote: > Thanks. I figured out the issue. Your parser ...
11 years, 10 months ago (2012-11-06 17:04:46 UTC) #21
jcgregorio_google
Committed in http://code.google.com/p/google-api-python-client/source/detail?r=5d8ad3d7d2b6cf52d1df1f4a49737e776708e446 That was an epic refactoring, thanks for sticking with it. -joe On ...
11 years, 9 months ago (2012-11-20 19:31:24 UTC) #22
dhermes
Woo hoo!! On Tue, Nov 20, 2012 at 11:31 AM, <jcgregorio@google.com> wrote: > Committed in ...
11 years, 9 months ago (2012-11-20 19:32:20 UTC) #23
Ali Afshar
11 years, 9 months ago (2012-11-20 19:34:06 UTC) #24
+1


On Tue, Nov 20, 2012 at 11:31 AM, Danny Hermes <dhermes@google.com> wrote:

> Woo hoo!!
>
>
> On Tue, Nov 20, 2012 at 11:31 AM, <jcgregorio@google.com> wrote:
>
>> Committed in
>> http://code.google.com/p/**google-api-python-client/**source/detail?r=**
>>
5d8ad3d7d2b6cf52d1df1f4a49737e**776708e446<http://code.google.com/p/google-api-python-client/source/detail?r=5d8ad3d7d2b6cf52d1df1f4a49737e776708e446>
>>
>> That was an epic refactoring, thanks for sticking with it.
>>
>>  -joe
>>
>>
>> On 2012/11/06 17:04:46, jcgregorio_google wrote:
>>
>>> LGTM
>>>
>>
>>  On 2012/11/05 17:47:46, dhermes wrote:
>>> > Thanks. I figured out the issue. Your parser in
>>>
>> describe.method_params was
>>
>>> > assuming 0 padding in docstrings, and I was indenting so it looked
>>>
>> like a
>>
>>> > docstring.
>>> >
>>> > For this commit, let's leave the parser alone, but then fix it for
>>>
>> the next go
>>
>>> > around.
>>> >
>>> > Since I aligned the triple quotes, all of the dyn html files have a
>>>
>> closing
>>
>>> pre
>>> > tag with 2 extra spaces because our nextMethod definitions occur at
>>>
>> different
>>
>>> > indent levels.
>>>
>>
>>
>>
https://codereview.appspot.**com/6610049/<https://codereview.appspot.com/6610...
>>
>
>
>
> --
> Danny Hermes
> Developer Programs Engineer
>



-- 
Ali Afshar | www.googplus.org/ali | Google Developer Relations
Sign in to reply to this message.

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