Which version of python gdata library are you using ? On Tue, May 10, 2011 at 12:29 AM, Michel Girnyak <[email protected]> wrote: > I'm run your script and have the Assertion error because I still have > None instead of current uid ((( > On Wed, May 4, 2011 at 6:39 PM, Johan Euphrosine <[email protected]> wrote: >> >> Hi Michel, >> >> I'm unable to reproduce your error with this feed result. >> >> I attached a testcase that shows that after parsing it: the uid in >> this feed result are not None. >> >> On Wed, May 4, 2011 at 3:24 PM, Michel Girnyak <[email protected]> >> wrote: >> > there is the result >> > <?xml version='1.0' encoding='UTF-8'?><feed >> > xmlns='http://www.w3.org/2005/Atom' >> > xmlns:app='http://www.w3.org/2007/app' >> > xmlns:gCal='http://schemas.google.com/gCal/2005' >> > xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' >> > xmlns:gd='http://schemas.google.com/g/2005' >> > gd:etag='W/"A0YNRH47eCp7JGA9WhZXE0Q."' >> > >> > gd:kind='calendar#eventFeed'><id>http://www.google.com/calendar/feeds/default/private/full</id><updated>2011-05-03T05:06:35.000Z</updated><category >> > scheme='http://schemas.google.com/g/2005#kind' >> > >> > term='http://schemas.google.com/g/2005#event'/><title>[email protected]</title><subtitle>[email protected]</subtitle><link >> > rel='alternate' type='text/html' >> > >> > href='https://www.google.com/calendar/[email protected]'/><link >> > rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' >> > href='https://www.google.com/calendar/feeds/default/private/full'/><link >> > rel='http://schemas.google.com/g/2005#post' type='application/atom+xml' >> > href='https://www.google.com/calendar/feeds/default/private/full'/><link >> > rel='http://schemas.google.com/g/2005#batch' type='application/atom+xml' >> > >> > href='https://www.google.com/calendar/feeds/default/private/full/batch'/><link >> > rel='self' type='application/atom+xml' >> > >> > href='https://www.google.com/calendar/feeds/default/private/full?max-results=25'/><author><name>Michel >> > Girnyak</name><email>[email protected]</email></author><generator >> > version='1.0' uri='http://www.google.com/calendar'>Google >> > >> > Calendar</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><gCal:timezone >> > value='Europe/Kiev'/><gCal:timesCleaned value='61'/><entry >> > gd:etag='"GUsCQwBJfSp7JGA6WhJQ"' >> > >> > gd:kind='calendar#event'><id>http://www.google.com/calendar/feeds/default/events/jrjqrod2blpjbu91j0f95tieps_20110420T060000Z</id><published>2011-04-19T08:47:51.000Z</published><updated>2011-04-28T14:34:43.000Z</updated><app:edited>2011-04-28T14:34:43.000Z</app:edited><category >> > scheme='http://schemas.google.com/g/2005#kind' >> > term='http://schemas.google.com/g/2005#event'/><title>rec >> > event</title><content/><link rel='alternate' type='text/html' >> > >> > href='https://www.google.com/calendar/event?eid=anJqcXJvZDJibHBqYnU5MWowZjk1dGllcHNfMjAxMTA0MjBUMDYwMDAwWiBsaWt2aWRhdG9yODlAbQ' >> > title='alternate'/><link rel='self' type='application/atom+xml' >> > >> > href='https://www.google.com/calendar/feeds/default/private/full/jrjqrod2blpjbu91j0f95tieps_20110420T060000Z'/><link >> > rel='edit' type='application/atom+xml' >> > >> > href='https://www.google.com/calendar/feeds/default/private/full/jrjqrod2blpjbu91j0f95tieps_20110420T060000Z'/><author><name>Michel >> > >> > Girnyak</name><email>[email protected]</email></author><gd:comments><gd:feedLink >> > >> > href='https://www.google.com/calendar/feeds/default/private/full/jrjqrod2blpjbu91j0f95tieps_20110420T060000Z/comments'/></gd:comments><gd:eventStatus >> > value='http://schemas.google.com/g/2005#event.confirmed'/><gd:where >> > valueString=''/><gd:originalEvent >> > >> > href='http://www.google.com/calendar/feeds/default/private/full/jrjqrod2blpjbu91j0f95tieps' >> > id='jrjqrod2blpjbu91j0f95tieps'><gd:when >> > startTime='2011-04-20T09:00:00.000+03:00'/></gd:originalEvent><gd:who >> > email='[email protected]' >> > rel='http://schemas.google.com/g/2005#event.organizer' >> > valueString='[email protected]'/><gd:when >> > endTime='2011-04-20T14:00:00.000+03:00' >> > startTime='2011-04-20T09:00:00.000+03:00'/><gd:transparency >> > value='http://schemas.google.com/g/2005#event.opaque'/><gd:visibility >> > >> > value='http://schemas.google.com/g/2005#event.default'/><gCal:anyoneCanAddSelf >> > value='false'/><gCal:guestsCanInviteOthers >> > value='true'/><gCal:guestsCanModify >> > value='false'/><gCal:guestsCanSeeGuests >> > value='true'/><gCal:sequence value='1'/><gCal:uid >> > value='[email protected]'/></entry><entry >> > gd:etag='"GUsCQwBJfCp7JGA6WhJQ"' >> > >> > gd:kind='calendar#event'><id>http://www.google.com/calendar/feeds/default/events/jrjqrod2blpjbu91j0f95tieps</id><published>2011-04-19T08:47:51.000Z</published><updated>2011-04-28T14:34:42.000Z</updated><app:edited>2011-04-28T14:34:42.000Z</app:edited><category >> > scheme='http://schemas.google.com/g/2005#kind' >> > term='http://schemas.google.com/g/2005#event'/><title>rec >> > event</title><content/><link rel='alternate' type='text/html' >> > >> > href='https://www.google.com/calendar/event?eid=anJqcXJvZDJibHBqYnU5MWowZjk1dGllcHNfMjAxMTA0MTdUMDYwMDAwWiBsaWt2aWRhdG9yODlAbQ' >> > title='alternate'/><link rel='self' type='application/atom+xml' >> > >> > href='https://www.google.com/calendar/feeds/default/private/full/jrjqrod2blpjbu91j0f95tieps'/><link >> > rel='edit' type='application/atom+xml' >> > >> > href='https://www.google.com/calendar/feeds/default/private/full/jrjqrod2blpjbu91j0f95tieps'/><author><name>Michel >> > >> > Girnyak</name><email>[email protected]</email></author><gd:eventStatus >> > value='http://schemas.google.com/g/2005#event.confirmed'/><gd:where >> > valueString=''/><gd:who email='[email protected]' >> > rel='http://schemas.google.com/g/2005#event.organizer' >> > >> > valueString='[email protected]'/><gd:recurrence>DTSTART:20110417T060000Z >> > DTEND:20110417T083000Z >> > RRULE:FREQ=DAILY;INTERVAL=1;WKST=MO >> > </gd:recurrence><gd:reminder method='email' minutes='10'/><gd:reminder >> > method='alert' minutes='10'/><gd:transparency >> > value='http://schemas.google.com/g/2005#event.opaque'/><gd:visibility >> > >> > value='http://schemas.google.com/g/2005#event.default'/><gCal:anyoneCanAddSelf >> > value='false'/><gCal:guestsCanInviteOthers >> > value='true'/><gCal:guestsCanModify >> > value='false'/><gCal:guestsCanSeeGuests >> > value='true'/><gCal:sequence value='1'/><gCal:uid >> > value='[email protected]'/></entry><entry >> > gd:etag='"GUgKQQNCfSp7JGA6WhJQ"' >> > >> > gd:kind='calendar#event'><id>http://www.google.com/calendar/feeds/default/events/jrvj9qjfb2i01543841nblclp4</id><published>2011-04-26T13:12:13.000Z</published><updated>2011-04-26T13:12:13.000Z</updated><app:edited>2011-04-26T13:12:13.000Z</app:edited><category >> > scheme='http://schemas.google.com/g/2005#kind' >> > >> > term='http://schemas.google.com/g/2005#event'/><title>123</title><content/><link >> > rel='alternate' type='text/html' >> > >> > href='https://www.google.com/calendar/event?eid=anJ2ajlxamZiMmkwMTU0Mzg0MW5ibGNscDQgbGlrdmlkYXRvcjg5QG0' >> > title='alternate'/><link rel='self' type='application/atom+xml' >> > >> > href='https://www.google.com/calendar/feeds/default/private/full/jrvj9qjfb2i01543841nblclp4'/><link >> > rel='edit' type='application/atom+xml' >> > >> > href='https://www.google.com/calendar/feeds/default/private/full/jrvj9qjfb2i01543841nblclp4'/><author><name>Michel >> > >> > Girnyak</name><email>[email protected]</email></author><gd:comments><gd:feedLink >> > >> > href='https://www.google.com/calendar/feeds/default/private/full/jrvj9qjfb2i01543841nblclp4/comments'/></gd:comments><gd:eventStatus >> > value='http://schemas.google.com/g/2005#event.confirmed'/><gd:where >> > valueString=''/><gd:who email='[email protected]' >> > rel='http://schemas.google.com/g/2005#event.organizer' >> > valueString='[email protected]'/><gd:when >> > endTime='2011-04-27T03:30:00.000+03:00' >> > startTime='2011-04-26T01:00:00.000+03:00'/><gd:transparency >> > value='http://schemas.google.com/g/2005#event.opaque'/><gd:visibility >> > >> > value='http://schemas.google.com/g/2005#event.default'/><gCal:anyoneCanAddSelf >> > value='false'/><gCal:guestsCanInviteOthers >> > value='true'/><gCal:guestsCanModify >> > value='false'/><gCal:guestsCanSeeGuests >> > value='true'/><gCal:sequence value='0'/><gCal:uid >> > value='[email protected]'/></entry></feed> >> > On Wed, May 4, 2011 at 4:03 PM, Johan Euphrosine <[email protected]> >> > wrote: >> >> >> >> Hi Michel, >> >> >> >> Can you share with us the output that you got when executing the >> >> attached script: >> >> ./getrawcalendarfeed.py youremail yourpassword >> >> https://www.google.com/calendar/feeds/default/private/full >> >> >> >> Thanks in advance. >> >> >> >> On Wed, May 4, 2011 at 2:50 PM, Michael <[email protected]> wrote: >> >> > Hi guys, >> >> > I use python gdata version 2.0.14 >> >> > I try to get the uid value as usualy but have the None >> >> > When I use 2.0.13 version I dont have such problem >> >> > May you explain what is going on? >> >> > >> >> > here is example >> >> > I create in my calendar one recurrence event and make one exdate from >> >> > this >> >> > event >> >> > then I get this event and print XML response >> >> > in response i can see uid but when I try to get UID field Ihave None >> >> > >> >> > Try on several accounts >> >> > >> >> > #coding utf-8 >> >> > from gdata.calendar.client import CalendarClient, CalendarEventQuery >> >> > import atom >> >> > cal_client = CalendarClient() >> >> > cal_client.client_login(email = "XXXXXXX", password = "XXXXXXX" , >> >> > source = >> >> > "Nimble-v1") >> >> > uri = "https://www.google.com/calendar/feeds/default/private/full" >> >> > query = CalendarEventQuery(max_results = 2) >> >> > result = cal_client.GetCalendarEventFeed(uri, q = query) >> >> > for event in result.entry: >> >> > print event >> >> > for event in result.entry: >> >> > print event.uid >> >> > OUTPUT >> >> > <ns0:entry xmlns:ns0="http://www.w3.org/2005/Atom" xmlns:ns1=" >> >> > http://schemas.google.com/g/2005" xmlns:ns2="http://www.w3.org/2007/ >> >> > app" >> >> > xmlns:ns3="http://schemas.google.com/gCal/2005" >> >> > ns1:etag=""GEUCQQRGeSp7JGA6WhJQ"" >> >> > ns1:kind="calendar#event"><ns0:category scheme=" >> >> > http://schemas.google.com/g/2005#kind" term=" >> >> > http://schemas.google.com/g/2005#event" /><ns0:id> >> >> > >> >> > >> >> > http://www.google.com/calendar/feeds/default/events/jrjqrod2blpjbu91j...</ns0:id><ns1:originalEvent >> >> > href=" >> >> > >> >> > >> >> > http://www.google.com/calendar/feeds/default/private/full/jrjqrod2blp..." >> >> > id="jrjqrod2blpjbu91j0f95tieps"><ns1:when >> >> > startTime="2011-04-20T09:00:00.000+03:00" >> >> > /></ns1:originalEvent><ns0:updated>2011-04-19T08:47:57.000Z</ >> >> > ns0:updated><n s0:published>2011-04-19T08:47:51.000Z</ >> >> > ns0:published><ns1:visibility >> >> > value="http://schemas.google.com/g/2005#event.default" / >> >> >><ns1:transparency >> >> > value="http://schemas.google.com/g/2005#event.opaque" /><ns0:content >> >> > /><ns1:who email="[email protected]" rel=" >> >> > http://schemas.google.com/g/2005#event.organizer" valueString=" >> >> > [email protected]" /><ns0:title>rec >> >> > event</ns0:title><ns0:author><ns0:name>Michel Girnyak</ >> >> > ns0:name><ns0:email> >> >> > [email protected]</ns0:email></ns0:author><ns0:link href=" >> >> > >> >> > >> >> > https://www.google.com/calendar/event?eid=anJqcXJvZDJibHBqYnU5MWowZjk..." >> >> > rel="alternate" title="alternate" type="text/html" /><ns0:link href=" >> >> > >> >> > >> >> > https://www.google.com/calendar/feeds/default/private/full/jrjqrod2bl..." >> >> > rel="self" type="application/atom+xml" /><ns0:link href=" >> >> > >> >> > >> >> > https://www.google.com/calendar/feeds/default/private/full/jrjqrod2bl..." >> >> > rel="edit" type="application/atom+xml" /><ns1:comments><ns1:feedLink >> >> > href=" >> >> > >> >> > >> >> > https://www.google.com/calendar/feeds/default/private/full/jrjqrod2bl..." >> >> > /></ns1:comments><ns1:when endTime="2011-04-20T14:00:00.000+03:00" >> >> > startTime="2011-04-20T09:00:00.000+03:00"><ns1:reminder >> >> > method="email" >> >> > minutes="10" /><ns1:reminder method="alert" minutes="10" >> >> > /></ns1:when><ns1:eventStatus value=" >> >> > http://schemas.google.com/g/2005#event.confirmed" /><ns1:where >> >> > /><ns2:edited>2011-04-19T08:47:57.000Z</ >> >> > ns2:edited><ns3:anyoneCanAddSelf >> >> > value="false" /><ns3:guestsCanInviteOthers value="true" >> >> > /><ns3:guestsCanModify value="false" /><ns3:guestsCanSeeGuests >> >> > value="true" >> >> > /><ns3:sequence value="0" /><ns3:uid value=" >> >> > [email protected]" /></ns0:entry> >> >> > <ns0:entry xmlns:ns0="http://www.w3.org/2005/Atom" xmlns:ns1=" >> >> > http://schemas.google.com/g/2005" xmlns:ns2="http://www.w3.org/2007/ >> >> > app" >> >> > xmlns:ns3="http://schemas.google.com/gCal/2005" >> >> > ns1:etag=""GEUCQQRGfyp7JGA6WhJQ"" >> >> > ns1:kind="calendar#event"><ns0:category scheme=" >> >> > http://schemas.google.com/g/2005#kind" term=" >> >> > http://schemas.google.com/g/2005#event" /><ns0:id> >> >> > >> >> > >> >> > http://www.google.com/calendar/feeds/default/events/jrjqrod2blpjbu91j...</ns0:id><ns0:updated>2011-04-19T08:47:51.000Z</ns0:updated><ns0:published> >> >> > 2011-04-19T08:47:51.000Z</ns0:published><ns1:visibility >> >> > value="http://schemas.google.com/g/2005#event.default" / >> >> >><ns1:transparency >> >> > value="http://schemas.google.com/g/2005#event.opaque" /><ns0:content >> >> > /><ns1:who email="[email protected]" rel=" >> >> > http://schemas.google.com/g/2005#event.organizer" valueString=" >> >> > [email protected]" /><ns0:title>rec >> >> > event</ns0:title><ns0:author><ns0:name>Michel Girnyak</ >> >> > ns0:name><ns0:email> >> >> > [email protected]</ns0:email></ns0:author><ns0:link href=" >> >> > >> >> > >> >> > https://www.google.com/calendar/event?eid=anJqcXJvZDJibHBqYnU5MWowZjk..." >> >> > rel="alternate" title="alternate" type="text/html" /><ns0:link href=" >> >> > >> >> > >> >> > https://www.google.com/calendar/feeds/default/private/full/jrjqrod2bl..." >> >> > rel="self" type="application/atom+xml" /><ns0:link href=" >> >> > >> >> > >> >> > https://www.google.com/calendar/feeds/default/private/full/jrjqrod2bl..." >> >> > rel="edit" type="application/atom+xml" /><ns1:eventStatus value=" >> >> > http://schemas.google.com/g/2005#event.confirmed" /><ns1:where >> >> > /><ns1:recurrence>DTSTART;TZID=Europe/Kiev:20110417T090000 >> >> > DTEND;TZID=Europe/Kiev:20110417T113000 >> >> > RRULE:FREQ=DAILY >> >> > BEGIN:VTIMEZONE >> >> > TZID:Europe/Kiev >> >> > X-LIC-LOCATION:Europe/Kiev >> >> > BEGIN:DAYLIGHT >> >> > TZOFFSETFROM:+0200 >> >> > TZOFFSETTO:+0300 >> >> > TZNAME:EEST >> >> > DTSTART:19700329T030000 >> >> > RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU >> >> > END:DAYLIGHT >> >> > BEGIN:STANDARD >> >> > TZOFFSETFROM:+0300 >> >> > TZOFFSETTO:+0200 >> >> > TZNAME:EET >> >> > DTSTART:19701025T040000 >> >> > RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU >> >> > END:STANDARD >> >> > END:VTIMEZONE >> >> > </ns1:recurrence><ns1:reminder method="email" minutes="10" / >> >> >><ns1:reminder >> >> > method="alert" minutes="10" >> >> > /><ns2:edited>2011-04-19T08:47:51.000Z</ >> >> > ns2:edited><ns3:anyoneCanAddSelf >> >> > value="false" /><ns3:guestsCanInviteOthers value="true" >> >> > /><ns3:guestsCanModify value="false" /><ns3:guestsCanSeeGuests >> >> > value="true" >> >> > /><ns3:sequence value="0" /><ns3:uid value=" >> >> > [email protected]" /></ns0:entry> >> >> > None >> >> > None >> >> > >> >> > -- >> >> > You received this message because you are subscribed to the Google >> >> > Groups "Google Calendar Data API" 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/calendar/community/forum.html >> >> > >> >> >> >> >> >> >> >> -- >> >> Johan Euphrosine (proppy) >> >> Developer Programs Engineer >> >> Google Developer Relations >> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> >> Groups "Google Calendar Data API" 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/calendar/community/forum.html >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "Google Calendar Data API" 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/calendar/community/forum.html >> > >> >> >> >> -- >> Johan Euphrosine (proppy) >> Developer Programs Engineer >> Google Developer Relations >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Google Calendar Data API" 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/calendar/community/forum.html > > -- > You received this message because you are subscribed to the Google > Groups "Google Calendar Data API" 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/calendar/community/forum.html >
-- Johan Euphrosine (proppy) Developer Programs Engineer Google Developer Relations -- You received this message because you are subscribed to the Google Groups "Google Calendar Data API" 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/calendar/community/forum.html
