3 messages in com.googlegroups.google-calendar-help-dataapiRe: Problem writing enum values back ...
FromSent OnAttachments
Gbenga19 Jun 2008 00:11 
Austin (Google)19 Jun 2008 11:07 
Gbenga24 Jun 2008 20:17 
Subject:Re: Problem writing enum values back to an Event Entry.
From:Austin (Google) (api.@google.com)
Date:06/19/2008 11:07:56 AM
List:com.googlegroups.google-calendar-help-dataapi

Hi,

Event status can only be of value: CONFIRMED, TENATIVE or CANCELED ( http://code.google.com/apis/gdata/javadoc/com/google/gdata/data/extensions/BaseEventEntry.EventStatus.html )

example -

event_status = gdata.calendar.EventStatus() event_status.value = 'TENTATIVE' event.event_status = event_status

Hope that helps, Austin

On Thu, Jun 19, 2008 at 12:12 AM, Gbenga <dalz@gmail.com> wrote:

Hello, I am trying to update/insert a Google Calendar Event using the GCal Python library. However, whenever I try to do so with any enum field filled (like attendee_status, transparency, and event_status). I get an error like

{'status': 400, 'body': '[Line 2, Column 465, element ns1:eventStatus] Missing attribute: &#39;value&#39;', 'reason': 'Bad Request'}

Snippets of the code is below:

event = gdata.calendar.CalendarEventEntry() pre_gdata = 'http://schemas.google.com/g/2005#event.' tra = gdata.calendar.EventStatus() tra.value = pre_gdata +'opaque' event.transparency = tra

Any help is surely appreciated.

Thanks.