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

Issue 6906052: Allow deserialized discovery docs to be passed to build_from_document(). (Closed)

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

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M apiclient/discovery.py View 2 chunks +5 lines, -2 lines 0 comments Download
M tests/test_discovery.py View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 5
jcgregorio_google
11 years, 9 months ago (2012-12-07 20:45:54 UTC) #1
Ali Afshar
On 2012/12/07 20:45:54, jcgregorio_google wrote: Consider refactoring so that we have two separate functions, one ...
11 years, 9 months ago (2012-12-07 23:15:58 UTC) #2
jcgregorio_google
On 2012/12/07 23:15:58, Ali Afshar wrote: > On 2012/12/07 20:45:54, jcgregorio_google wrote: > > Consider ...
11 years, 9 months ago (2012-12-10 14:02:14 UTC) #3
Ali Afshar
On 2012/12/10 14:02:14, jcgregorio_google wrote: > On 2012/12/07 23:15:58, Ali Afshar wrote: > > On ...
11 years, 9 months ago (2012-12-10 14:45:49 UTC) #4
jcgregorio_google
11 years, 9 months ago (2012-12-10 15:25:27 UTC) #5
Committed in
http://code.google.com/p/google-api-python-client/source/detail?r=ed1095576a2...

On 2012/12/10 14:45:49, Ali Afshar wrote:
> On 2012/12/10 14:02:14, jcgregorio_google wrote:
> > On 2012/12/07 23:15:58, Ali Afshar wrote:
> > > On 2012/12/07 20:45:54, jcgregorio_google wrote:
> > > 
> > > Consider refactoring so that we have two separate functions, one from a
> string
> > > and one from a dict?
> > 
> > Seems a little heavy handed to have a new function for that as it is still
> > building from a discovery document, we just accept the serialized and the
> > deserialized form. A new function would be appropriate if it was building a
> > service object from something completely different, for example, we may be
> > adding a build_from_cache() function.
> 
> As you wish. I thought it would be convenient to have a single line function,
> while not relying on the type check.
Sign in to reply to this message.

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