Everything works, but I'm using a clone of the code hosting repository: http://code.google.com/p/gdata-python-client/source/checkout
Best, Alain On Mon, May 23, 2011 at 9:52 AM, Carlos Ricardo Santos < [email protected]> wrote: > The latest 2.0.14 > Weird... > > So: > > entry.organization. > label > primary > rel > department > job_description > name > symbol > title > > Works for you? > > On 23 May 2011 17:36, Alain Vongsouvanh <[email protected]> wrote: > >> Hum, this is weird... I just tried and it worked perfectly for me. >> >> This is the contact's XML as printed by >> "contact.to_string(pretty_print=True)": >> [XML] >> <?xml version="1.0" ?> >> <ns0:entry ns1:etag="ETAG" xmlns:ns0="http://www.w3.org/2005/Atom" >> xmlns:ns1="http://schemas.google.com/g/2005"> >> <ns0:category scheme="http://schemas.google.com/g/2005#kind" >> term="http://schemas.google.com/contact/2008#contact"/> >> <ns0:id> >> >> http://www.google.com/m8/feeds/contacts/USER/base/CONTACT_ID >> </ns0:id> >> <ns1:name> >> <ns1:familyName> >> 2 >> </ns1:familyName> >> <ns1:fullName> >> Contact 2 >> </ns1:fullName> >> <ns1:givenName> >> Contact >> </ns1:givenName> >> </ns1:name> >> <ns0:updated> >> 2011-04-01T20:45:41.587Z >> </ns0:updated> >> <ns1:organization primary="true" rel=" >> http://schemas.google.com/g/2005#work"> >> <ns1:orgTitle> >> Production Manager >> </ns1:orgTitle> >> <ns1:orgDepartment> >> Department >> </ns1:orgDepartment> >> <ns1:orgName> >> OrgName >> </ns1:orgName> >> </ns1:organization> >> <ns0:title> >> Contact 2 >> </ns0:title> >> <!-- Links data - Removed --> >> <ns2:edited xmlns:ns2="http://www.w3.org/2007/app"> >> 2011-04-01T20:45:41.587Z >> </ns2:edited> >> </ns0:entry> >> [/XML] >> >> What version of the client library are you using? >> >> On Mon, May 23, 2011 at 9:20 AM, Carlos Ricardo Santos >> <[email protected]> wrote: >> > 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 >> > >> >> >> >> -- >> 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 > -- 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
