Hello,

I just tried your code and it worked perfectly for me. I checked from the
entry returned by the API and on the calendar UI and the calendar was
created, un-hidden (it was showed on the UI) and its timezone property was
correctly set to Paris.
Have you checked the values you have in new_calendar?

Best,
Alain

On Sat, Nov 5, 2011 at 3:37 AM, firebayll <[email protected]> wrote:

> Hello,
>
> I'm in trouble with the creation of a new calendar with the Python API.
> I would like to create a new calendar (that's ok) with a specify TimeZone
> (Europe/Paris) and that this calendar be not hidden.
>
> I try a lot of things and my actual code is :
>
> #Create a new calendar
>>
>> calendar = gdata.calendar.data.CalendarEntry()
>>
>> calendar.title = atom.data.Title(text='testMaj1')
>>
>> calendar.timezone =
>>> gdata.calendar.data.TimeZoneProperty(value='Europe/Paris')
>>
>> calendar.hidden = gdata.calendar.data.HiddenProperty(value='false')
>>
>>
>>> new_calendar = client.InsertCalendar(new_calendar=calendar)
>>
>>
> My calendar is created with the name testMaj1, but it's hidden and has no
> TimeZone select in calendar properties.
>
> If you have any idea of how can I make this problem solved it will be nice
> !
> Thank you !
>
> --
> 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
>



-- 
Alain Vongsouvanh | Developer Programs Engineer

-- 
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

Reply via email to