http://codereview.appspot.com/5436044/diff/1/src/gdata/apps/organization/client.py File src/gdata/apps/organization/client.py (right): http://codereview.appspot.com/5436044/diff/1/src/gdata/apps/organization/client.py#newcode244 src/gdata/apps/organization/client.py:244: customer_id: The ID of the Google Apps customer. customer_id: ...
12 years, 5 months ago
(2011-11-23 11:26:29 UTC)
#2
http://codereview.appspot.com/5436044/diff/1/src/gdata/apps/organization/client.py File src/gdata/apps/organization/client.py (right): http://codereview.appspot.com/5436044/diff/1/src/gdata/apps/organization/client.py#newcode244 src/gdata/apps/organization/client.py:244: customer_id: The ID of the Google Apps customer. On ...
12 years, 5 months ago
(2011-11-23 12:31:59 UTC)
#4
You still have to address some of Shraddha's comments. Also, glint reports a lot of ...
12 years, 5 months ago
(2011-11-23 17:47:35 UTC)
#5
You still have to address some of Shraddha's comments.
Also, glint reports a lot of errors, please fix them.
http://codereview.appspot.com/5436044/diff/1/src/gdata/apps/organization/clie...
File src/gdata/apps/organization/client.py (right):
http://codereview.appspot.com/5436044/diff/1/src/gdata/apps/organization/clie...
src/gdata/apps/organization/client.py:360: A list containing a
gdata.apps.organization.data.OrgUnitEntry
On 2011/11/23 12:31:59, gunjansharma wrote:
> On 2011/11/23 11:26:30, shraddhag wrote:
> > returns: OrgUnitFeed
> List of entries
this is confusing, some methods (like this) return a list of OrgUnitEntry while
others (like retrieve_page_of_org_units) return a OrgUnitFeed. The library
should be consistent. Aren't sub org units the same kind of object as org units?
This also forces you to have all these temp feeds you are using.
http://codereview.appspot.com/5436044/diff/1/src/gdata/apps/organization/clie...
src/gdata/apps/organization/client.py:392: return
self.delete(self.MakeOrganizationUnitOrgunitProvisioningUri(
On 2011/11/23 11:26:30, shraddhag wrote:
> @Claudio: Should the delete method return anything.
the base delete method has a return statement, so you can return whatever comes
from it.
http://codereview.appspot.com/5436044/diff/1/src/gdata/apps/organization/clie...
src/gdata/apps/organization/client.py:448: A list containing a
gdata.apps.organization.data.OrgUserEntry
On 2011/11/23 12:31:59, gunjansharma wrote:
> On 2011/11/23 11:26:30, shraddhag wrote:
> > Feed
>
> Done.
I don't see it.
http://codereview.appspot.com/5436044/diff/1003/src/gdata/apps/organization/c...
File src/gdata/apps/organization/client.py (right):
http://codereview.appspot.com/5436044/diff/1003/src/gdata/apps/organization/c...
src/gdata/apps/organization/client.py:286: def retrieve_feed_from_uri(self, uri,
desired_class, **kwargs):
I don't understand this method. Don't we have a method called GetFeed? Why are
you using GetEntry to retrieve a feed?
If this does something special, please use a comment to explain. If instead this
method can be useful in other clients, please move it to the base class.
http://codereview.appspot.com/5436044/diff/1003/src/gdata/apps/organization/d...
File src/gdata/apps/organization/data.py (right):
http://codereview.appspot.com/5436044/diff/1003/src/gdata/apps/organization/d...
src/gdata/apps/organization/data.py:64: def _GetProperty(self, name):
_GetProperty and _SetProperty are the same two methods we have in other classes
that extend GDEntry, please move them to the base class.
If not all classes extending GDEntry use them, please extend GDEntry with
another class called AppsPropertyEntry (or any better name) and have this (and
all other object using _GetProperty and _SetProperty) extend AppsPropertyEntry
instead.
http://codereview.appspot.com/5436044/diff/1/src/gdata/apps/organization/client.py File src/gdata/apps/organization/client.py (right): http://codereview.appspot.com/5436044/diff/1/src/gdata/apps/organization/client.py#newcode360 src/gdata/apps/organization/client.py:360: A list containing a gdata.apps.organization.data.OrgUnitEntry On 2011/11/23 17:47:35, Claudio ...
12 years, 5 months ago
(2011-11-24 09:19:16 UTC)
#7
http://codereview.appspot.com/5436044/diff/1/src/gdata/apps/organization/clie...
File src/gdata/apps/organization/client.py (right):
http://codereview.appspot.com/5436044/diff/1/src/gdata/apps/organization/clie...
src/gdata/apps/organization/client.py:360: A list containing a
gdata.apps.organization.data.OrgUnitEntry
On 2011/11/23 17:47:35, Claudio Cherubino wrote:
> On 2011/11/23 12:31:59, gunjansharma wrote:
> > On 2011/11/23 11:26:30, shraddhag wrote:
> > > returns: OrgUnitFeed
> > List of entries
>
> this is confusing, some methods (like this) return a list of OrgUnitEntry
while
> others (like retrieve_page_of_org_units) return a OrgUnitFeed. The library
> should be consistent. Aren't sub org units the same kind of object as org
units?
>
> This also forces you to have all these temp feeds you are using.
I am doing this because at a time only 100 orgUnits will be retrieved. So I call
recursively and make a list of all the entry. I do the same in subOrgUnits. Sun
org units are the same kind as orgUnits as you said but what exactly about them?
I am not returning a feed here because It makes less sense to me, because a feed
have a lot of other options like next_link and all.
http://codereview.appspot.com/5436044/diff/1/src/gdata/apps/organization/clie...
src/gdata/apps/organization/client.py:392: return
self.delete(self.MakeOrganizationUnitOrgunitProvisioningUri(
On 2011/11/23 17:47:35, Claudio Cherubino wrote:
> On 2011/11/23 11:26:30, shraddhag wrote:
> > @Claudio: Should the delete method return anything.
>
> the base delete method has a return statement, so you can return whatever
comes
> from it.
Done.
http://codereview.appspot.com/5436044/diff/1/src/gdata/apps/organization/clie...
src/gdata/apps/organization/client.py:392: return
self.delete(self.MakeOrganizationUnitOrgunitProvisioningUri(
On 2011/11/23 11:26:30, shraddhag wrote:
> @Claudio: Should the delete method return anything.
Done.
http://codereview.appspot.com/5436044/diff/1/src/gdata/apps/organization/clie...
src/gdata/apps/organization/client.py:448: A list containing a
gdata.apps.organization.data.OrgUserEntry
On 2011/11/23 17:47:35, Claudio Cherubino wrote:
> On 2011/11/23 12:31:59, gunjansharma wrote:
> > On 2011/11/23 11:26:30, shraddhag wrote:
> > > Feed
> >
> > Done.
>
> I don't see it.
It is a list of OrgUnitEntry and not org unit feed
http://codereview.appspot.com/5436044/diff/1003/src/gdata/apps/organization/c...
File src/gdata/apps/organization/client.py (right):
http://codereview.appspot.com/5436044/diff/1003/src/gdata/apps/organization/c...
src/gdata/apps/organization/client.py:286: def retrieve_feed_from_uri(self, uri,
desired_class, **kwargs):
On 2011/11/23 17:47:35, Claudio Cherubino wrote:
> I don't understand this method. Don't we have a method called GetFeed? Why are
> you using GetEntry to retrieve a feed?
>
> If this does something special, please use a comment to explain. If instead
this
> method can be useful in other clients, please move it to the base class.
Done.
12 years, 5 months ago
(2011-11-24 09:45:41 UTC)
#8
http://codereview.appspot.com/5436044/diff/1003/src/gdata/apps/organization/d...
File src/gdata/apps/organization/data.py (right):
http://codereview.appspot.com/5436044/diff/1003/src/gdata/apps/organization/d...
src/gdata/apps/organization/data.py:64: def _GetProperty(self, name):
On 2011/11/23 17:47:35, Claudio Cherubino wrote:
> _GetProperty and _SetProperty are the same two methods we have in other
classes
> that extend GDEntry, please move them to the base class.
>
> If not all classes extending GDEntry use them, please extend GDEntry with
> another class called AppsPropertyEntry (or any better name) and have this (and
> all other object using _GetProperty and _SetProperty) extend AppsPropertyEntry
> instead.
Done.
http://codereview.appspot.com/5436044/diff/7002/src/gdata/apps/apps_property_entry.py File src/gdata/apps/apps_property_entry.py (right): http://codereview.appspot.com/5436044/diff/7002/src/gdata/apps/apps_property_entry.py#newcode28 src/gdata/apps/apps_property_entry.py:28: class AppsPropertyEntry(gdata.data.GDEntry): Can you also make the MDM client ...
12 years, 5 months ago
(2011-11-25 20:26:39 UTC)
#10
Issue 5436044: Added client, data, live tests and data tests for organization unit provisioning
Created 12 years, 5 months ago by gunjansharma
Modified 12 years, 5 months ago
Reviewers: jcgregorio, Claudio Cherubino, shraddhag
Base URL:
Comments: 55