Accessing information in a python GDEntry for delegation

22 views
Skip to first unread message

Kua

unread,
Feb 23, 2012, 1:46:22 PM2/23/12
to google-app...@googlegroups.com
I'm am trying to access the information in a python GDEntry object that is
returned by when calling RetrieveEmailDelegates() in
gdata.apps.emailsettings.client.EmailSettingsClient and I'm having the
not seeing an object.  In particular, I am interested the values of the
xml properties named 'delegationId', 'status', 'address'. 

Thanks, Kua

Claudio Cherubino

unread,
Feb 23, 2012, 11:20:12 PM2/23/12
to google-app...@googlegroups.com
Hi Kua,

That is not implemented in the client library yet, I created an entry in the project issue tracker to track its development:


Please follow all updates in the issue tracker.
Thanks

Claudio

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/cvFupDdy9RMJ.
To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Chet Tyree

unread,
Feb 24, 2012, 9:34:42 AM2/24/12
to google-app...@googlegroups.com
The client isn't fully baked, but you could try something like this:

delegates_feed = emailsettings_client.RetrieveEmailDelegates(username=username)
property_feed = gdata.apps.PropertyFeedFromString(str(delegates_feed))
next = property_feed.GetNextLink()
while next is not None:
    next_feed = gdata.service.Get(next.href, converter=gdata.apps.PropertyFeedFromString)
    for a_entry in next_feed.entry:
        property_feed.entry.append(a_entry)
    next = next_feed.GetNextLink()
properties_list = []
for property_entry in property_feed.entry:
    properties = {}
    for i, property in enumerate(property_entry.property):
        properties[property.name] = property.value
    properties_list.append(properties)
for entry in properties_list:
    print entry['status'],entry['delegationId'],entry['address']


Claudio Cherubino

unread,
Mar 5, 2012, 3:59:15 PM3/5/12
to google-app...@googlegroups.com
This is now fixed in the library:


Thanks everyone

Claudio
To post to this group, send email to google-apps-mgmt-apis@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt-apis+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages