Trevor,
Thanks for the reply and for checking on that. I had kind of assumed
that I wouldn't be allowed to create a calendar if an element or
attribute was invalid (I'd run into that behavior with some of the
other attributes) so I thought I'd gotten it right with just 'Mountain
Time'. I'll modify my scripts accordingly.
I'll also post a request for a batch access to the calendar feed
simply because someone else might be in a similar situation to mine
where batch calendar creation is useful. I can work around it and my
calendars should only each need to be created once, but it may be
useful for someone in the future.
Thanks for getting back to me; I'm glad I wasn't just imagining the
quirky behavior.
--Dan
On Nov 4, 3:36 pm, Trevor Johns <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 3, 2008 at 12:51 PM, Dan Casper <[EMAIL PROTECTED]> wrote:
>
> > I've searched the forums a bit but can't seem to track down what I'm
> > after. I've been asked to try to use the Calendar as a front end for
> > some show-related information and need to be able to create calendars
> > on the fly. I think I've reach a point where that is working
> > properly, but have run into an odd bug. If I create a calendar using
> > the Zend GData Framework I am unable to modify that calendar via the
> > web. I can see the calendars I've created, and the links in the Web
> > UI for hide and delete work, but the other links do not.
>
> > I'm using the following as a way to create calendars:
>
> > foreach ($shows as $show) {
> > (!isset($theRep)) ? $theRep = '' : null;
>
> > if ($theRep != $show['Rep'] && $show['Rep'] != '') {
> > $theRep = $show['Rep'];
> > echo $theRep, '<BR>';
> > if (!is_numeric(array_search($show['Rep'], $repCalendars))) {
> > $addCal = makeCalendarObject($show);
> > try {
> > $result = $gdataCal->post($addCal, $uri);
> > echo $addCal, '<br><br>';
> > } catch (Zend_Gdata_App_Exception $e) {
> > echo $e->getMessage();
> > }
> > }
> > }
> > }
>
> > function makeCalendarObject($showData) {
> > global $colors;
>
> > $addRep = htmlspecialchars($showData['Rep']);
>
> > $color = rand(1,21);
>
> > $newCal = <<<CAL
> > <entry xmlns='http://www.w3.org/2005/Atom'
> > xmlns:gd='http://schemas.google.com/g/2005'
> >
> > xmlns:gCal='http://schemas.google.com/gCal/2005'>
> > <title type='text'>{$addRep}</title>
> > <gCal:timezone value='Mountain Time'></gCal:timezone>
> > <gCal:hidden value='false'></gCal:hidden>
> > <gCal:color value='{$colors[$color]}'></gCal:color>
> > </entry>
> > CAL;
>
> > return $newCal;
> > }
>
> > There's some earlier stuff omitted, but the idea is that I've
> > retrieved a list of my existing calendars and built an array of their
> > titles, then I've looped through a list of Show Representatives to
> > test whether they have an existing calendar. If they do not already
> > have a calendar I'm creating an entry object for them and posting that
> > entry to the server.
>
> > The calendars seem to create properly, but are not fully accessible in
> > the Web UI. Could it be that I'm failing to close my authenticated
> > session to the server and that's keeping the calendars open or
> > something else to that effect?
>
> Dan,
> This seems to be a bug in our servers. I've opened a defect report for it
> here:
>
> http://code.google.com/p/gdata-issues/issues/detail?id=866
>
> The problem is that the timezone you're specifying is invalid, which
> is causing our servers to behave badly when trying to access that
> calendar. The workaround is to use a valid timezone name. In this
> case, use 'US/Mountain'.
>
> > Also, I was wondering if there was a batch processing feed available
> > for calendar creation. Currently I'm posting the calendars one at a
> > time. I plan to post the events to each calendar using the batch
> > processing that I've read about in the API, but was wondering if I
> > should be doing the same with the actual Calendar creation to save on
> > request overhead and server load. Thanks in advance for any help,
>
> Unfortunately there's no batch access to the calendar list feed. You
> can check for the existence of a batch feed by looking for a link in
> the feed with rel="http://schemas.google.com/g/2005#batch".
>
> If this is something you'd like to see, please feel free to open a
> feature request here:
>
> http://code.google.com/p/gdata-issues/issues
>
> --
> Trevor Johns
--~--~---------~--~----~------------~-------~--~----~
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://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---