I saw that, but every field I try, says:

AttributeError: 'NoneType' object has no attribute 'XXXXX'

But printing the object will appear something, so it isn't 'None':

<ns0:organization rel="http://schemas.google.com/g/2005#work"; xmlns:ns0="
http://schemas.google.com/g/2005";>
    <ns0:orgtitle>Mr</ns0:orgtitle>
    <ns0:orgname>THECOMPANY</ns0:orgname>
</ns0:organization>


On 23 May 2011 17:07, Alain Vongsouvanh <[email protected]> wrote:

> Hello Carlos,
>
> The Organization is defined in gdata/data.py:
>
> http://code.google.com/p/gdata-python-client/source/browse/src/gdata/data.py#764
>
> I hope this helped!
> Best,
> Alain
>
> On Mon, May 23, 2011 at 8:36 AM, Carlos Ricardo Santos
> <[email protected]> wrote:
> > Hi:
> >
> > I'm having difficulties retrieving the contact's Organization via
> > gdata-python.
> >
> > I've managed to retrieve name, adresses, phone numbers, but I'm not
> > understanding the organization element.
> >
> > feed=_cclient.GetContacts()
> > for entry in feed.entry:
> >  print entry.organization.[what_parameter_here].text # ?
> >
> > What parameter I should use?
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
> > To post to this group, send email to
> > [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> > http://code.google.com/apis/contacts/community/forum.html
> >
>
>
>
> --
> Alain Vongsouvanh
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://code.google.com/apis/contacts/community/forum.html
>



-- 
Carlos Ricardo Santos

-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html

Reply via email to