On 2012/07/12 15:37:24, jcgregorio_google wrote:
> Typical
Done.
On 2012/07/12 15:37:24, jcgregorio_google wrote:
> filename: string, Path to
> In general the pattern is:
> parameter-name: type, Complete sentence describing parameter.
Done.
On 2012/07/12 15:37:24, jcgregorio_google wrote:
> self.last_get_ns = None
> self.last_set_ns = None
Done.
http://codereview.appspot.com/6349087/diff/10001/oauth2client/clientsecrets.py
File oauth2client/clientsecrets.py (right):
http://codereview.appspot.com/6349087/diff/10001/oauth2client/clientsecrets.py#newcode108
oauth2client/clientsecrets.py:108: def load_cached(filename, cache):
Hey, I was thinking to change the signature to
def load_cached(filename, cache=None)
Where cache=None just falls back to loadfile(filename). This seems to
follow other libs (e.g. httplib2) closer. Plus, that way other pieces of
oauth2client could be alternated (where needed for e.g. App Engine) and
be totally backwards compatible, for instance:
flow_from_clientsecrets(filename, scope, message=None, cache=None)
or, OAuth2DecoratorFromClientSecrets:
def __init__(self, filename, scope, message=None, cache=None):
or, would it be better for the above __init__() code to just
load_cached() instead of (currenty) loadfile().
What do you think?
http://codereview.appspot.com/6349087/