On 2011/03/01 19:21:25, Vince wrote: > I don't see any problems and the profilequery needed ...
13 years, 2 months ago
(2011-03-01 19:26:09 UTC)
#3
On 2011/03/01 19:21:25, Vince wrote:
> I don't see any problems and the profilequery needed to be done. I tested and
> works as expected.
Well, the ProfilesQuery should add support for the max-results and start-key
query parameter.
Also, since it is used in the gdata.client.get_feed method, and it extends
gdata.client.Query, it needs to "override" modify_request to add the other
supported parameters.
Also, coud you post the code you used for your test?
Thanks,
Alain
http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py File src/gdata/contacts/client.py (right): http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py#newcode521 src/gdata/contacts/client.py:521: if self.start_key: Can you add some tests for this?
13 years, 1 month ago
(2011-03-23 11:47:22 UTC)
#6
http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py File src/gdata/contacts/client.py (right): http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py#newcode521 src/gdata/contacts/client.py:521: if self.start_key: On 2011/03/23 11:47:22, jcgregorio wrote: > Can ...
13 years, 1 month ago
(2011-03-23 15:58:07 UTC)
#7
http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py
File src/gdata/contacts/client.py (right):
http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py#new...
src/gdata/contacts/client.py:521: if self.start_key:
On 2011/03/23 11:47:22, jcgregorio wrote:
> Can you add some tests for this?
What kind of tests are you looking for? Do you want me to check that the
http_request is correctly modified or that a request to the server is working?
For the latter, do we have a Google Apps for business account for testing since
the Profiles API is only available for those types of domain.
Thanks,
Alain
http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py File src/gdata/contacts/client.py (right): http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py#newcode521 src/gdata/contacts/client.py:521: if self.start_key: At the very least a test that ...
13 years, 1 month ago
(2011-03-23 17:22:10 UTC)
#8
http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py
File src/gdata/contacts/client.py (right):
http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py#new...
src/gdata/contacts/client.py:521: if self.start_key:
At the very least a test that http_request is correctly modified. Preferably
also a live test. If I don't have a Google Apps for Business account I will get
one for running such tests.
On 2011/03/23 15:58:07, alainv wrote:
> On 2011/03/23 11:47:22, jcgregorio wrote:
> > Can you add some tests for this?
>
> What kind of tests are you looking for? Do you want me to check that the
> http_request is correctly modified or that a request to the server is working?
> For the latter, do we have a Google Apps for business account for testing
since
> the Profiles API is only available for those types of domain.
>
> Thanks,
> Alain
http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py File src/gdata/contacts/client.py (right): http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py#newcode521 src/gdata/contacts/client.py:521: if self.start_key: I will add the test that verifies ...
13 years, 1 month ago
(2011-03-24 16:17:39 UTC)
#9
http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py
File src/gdata/contacts/client.py (right):
http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py#new...
src/gdata/contacts/client.py:521: if self.start_key:
I will add the test that verifies the modification of the http_request. For the
live request, the start-key is returned by the API, this is not something that I
can generate.
I was also wondering if we could add a generic custom parameters list to the
gdata.client.Query class.
Thanks,
Alain
On 2011/03/23 17:22:10, jcgregorio wrote:
> At the very least a test that http_request is correctly modified. Preferably
> also a live test. If I don't have a Google Apps for Business account I will
get
> one for running such tests.
>
> On 2011/03/23 15:58:07, alainv wrote:
> > On 2011/03/23 11:47:22, jcgregorio wrote:
> > > Can you add some tests for this?
> >
> > What kind of tests are you looking for? Do you want me to check that the
> > http_request is correctly modified or that a request to the server is
working?
> > For the latter, do we have a Google Apps for business account for testing
> since
> > the Profiles API is only available for those types of domain.
> >
> > Thanks,
> > Alain
>
http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py File src/gdata/contacts/client.py (right): http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py#newcode521 src/gdata/contacts/client.py:521: if self.start_key: Do you mean add a *kwargs to ...
13 years, 1 month ago
(2011-03-24 17:29:38 UTC)
#10
http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py
File src/gdata/contacts/client.py (right):
http://codereview.appspot.com/4254047/diff/1/src/gdata/contacts/client.py#new...
src/gdata/contacts/client.py:521: if self.start_key:
Do you mean add a *kwargs to
http://code.google.com/p/gdata-python-client/source/browse/src/gdata/client.p...
and take all of them as query parameters for the query? Sounds reasonable to me,
but let's do that as a separate CL.
On 2011/03/24 16:17:39, alainv wrote:
> I will add the test that verifies the modification of the http_request. For
the
> live request, the start-key is returned by the API, this is not something that
I
> can generate.
> I was also wondering if we could add a generic custom parameters list to the
> gdata.client.Query class.
>
> Thanks,
> Alain
>
> On 2011/03/23 17:22:10, jcgregorio wrote:
> > At the very least a test that http_request is correctly modified. Preferably
> > also a live test. If I don't have a Google Apps for Business account I will
> get
> > one for running such tests.
> >
> > On 2011/03/23 15:58:07, alainv wrote:
> > > On 2011/03/23 11:47:22, jcgregorio wrote:
> > > > Can you add some tests for this?
> > >
> > > What kind of tests are you looking for? Do you want me to check that the
> > > http_request is correctly modified or that a request to the server is
> working?
> > > For the latter, do we have a Google Apps for business account for testing
> > since
> > > the Profiles API is only available for those types of domain.
> > >
> > > Thanks,
> > > Alain
> >
>
Issue 4254047: Fix issue (498) and clean up ContactsClient class definition and sample code.
Created 13 years, 2 months ago by alainv
Modified 13 years, 1 month ago
Reviewers: jcgregorio, Vic Fryzel
Base URL:
Comments: 5