You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is an example of e recurrence_exception:
<gd:recurrenceException specialized="true">
<gd:entryLink>
<entry>
<id>8dn7t5k9fu7fd0tajlle593ab4_20070523T100000Z</id>
<published>2007-05-23T19:53:23.000Z</published>
<updated>2007-05-23T19:53:28.000Z</updated>
<category scheme="http://schemas.google.com/g/2005#kind"
term="http://schemas.google.com/g/2005#event"/>
<title type="text">mano</title>
<content type="text"/>
<link rel="alternate" type="text/html"
href="http://www.google.com/calendar/event?eid=OGRuN3Q1azlmdTdmZDB0YWpsbGU1OTNhY
jRfMjAwNzA1MjNUMTAwMDAwWiBpNWNndDE1MW9xc2Jkb2Zua2ZxOGVlZWkxb0Bn"
title="alternate"/>
<author>
<name>david hautbois</name>
<email>david.hautbois@gmail.com</email>
</author>
<gd:originalEvent id="8dn7t5k9fu7fd0tajlle593ab4"
href="http://www.google.com/calendar/feeds/i5cgt151oqsbdofnkfq8eeei1o%40group.ca
lendar.google.com/private/composite/8dn7t5k9fu7fd0tajlle593ab4">
<gd:when startTime="2007-05-23T12:00:00.000+02:00"/>
</gd:originalEvent>
<gd:comments>
<gd:feedLink
href="http://www.google.com/calendar/feeds/i5cgt151oqsbdofnkfq8eeei1o%40group.ca
lendar.google.com/private/full/8dn7t5k9fu7fd0tajlle593ab4_20070523T100000Z/comme
nts">
<feed>
<updated>2007-05-24T12:13:13.238Z</updated>
<category scheme="http://schemas.google.com/g/2005#kind"
term="http://schemas.google.com/g/2005#message"/>
<title type="text">Comments for: mano</title>
<link rel="alternate" type="text/html"
href="http://www.google.com/calendar/feeds/i5cgt151oqsbdofnkfq8eeei1o%40group.ca
lendar.google.com/private/full/8dn7t5k9fu7fd0tajlle593ab4_20070523T100000Z/comme
nts"
title="alternate"/>
</feed>
</gd:feedLink>
</gd:comments>
<gd:eventStatus value="http://schemas.google.com/g/2005#event.canceled"/>
<gd:visibility value="http://schemas.google.com/g/2005#event.default"/>
<gd:transparency value="http://schemas.google.com/g/2005#event.opaque"/>
<gCal:sendEventNotifications value="false"/>
<gd:when startTime="2007-05-23T12:00:00.000+02:00"
endTime="2007-05-23T18:00:00.000+02:00"/>
<gd:where valueString=""/>
</entry>
</gd:entryLink>
</gd:recurrenceException>
We can get the dates of this exception :
> exception.entry_link.entry.when[0].start_time
Ok, no problem.
Now, I want to create an exception:
> my_exception = gdata.calendar.RecurrenceException()
If I print the content of this exception:
> print my_exception
I get :
<ns0:recurrenceException specialized="True"
xmlns:ns0="http://schemas.google.com/g/2005" />
(very small content ....)
I can't add a "when" attribute :
>
my_exception.entry_link.entry.when.append(gcalendar.When(start_time='20070523T12
0000',
end_time='20070523T180000'))
The error :
AttributeError: 'NoneType' object has no attribute 'entry'
So, a "new" and "empty" exception does not contain entry_link and entry.
I don't found any documentation how to play with exceptions....
But I think there is a problem.
David.
Original issue reported on code.google.com by david.ha...@gmail.com on 24 May 2007 at 1:18
The text was updated successfully, but these errors were encountered:
Hi David,
I don't think that this is an issue because the library will not create the
entry in
the entry_link for you. I think this will work if you add one missing step
(starred).
>>> my_exception = gdata.calendar.RecurrenceException()
* >>> my_exceptions.entry_link.entry = gdata.calendar.CalendarEventEntry()
>>>
my_exception.entry_link.entry.when.append(gcalendar.When(start_time='20070523T12
0000',
end_time='20070523T180000'))
Thank you,
Jeff
Original comment by api.jscu...@gmail.com on 30 Aug 2007 at 12:33
Original issue reported on code.google.com by
david.ha...@gmail.com
on 24 May 2007 at 1:18The text was updated successfully, but these errors were encountered: