Wooh ooo Thank tyou every much!

On Aug 8, 7:11 pm, "Austin (Google)" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> This is because by default the maximum # of returned entries is set to be
> 25.  You can adjust this by setting the .max_results attribute of the query
> object -
>
> query.max_results = 100
>
> Hope that helps,
> Austin
>
> On Thu, Aug 7, 2008 at 4:26 AM, Andrew <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I have been tweaking the sample code from calendarexample.py
>
> > I am trying to take all events from a calender between two dates and
> > output to a file so I can calculate the hours spent on tasks.
> > Basically I'm making a timesheet.
>
> > Often I complete 2 or 3 tasks a day so during a month it could be
> > 60-70 events in the diary over a month.
>
> > The code accesses the appropriate calendar and starts to return the
> > events.
>
> > The problem comes that it only returns 0-24 events!?!?
>
> > Why?
>
> > Code Sample:
>
> > def _DateRangeQuery(self, start_date='2008-01-01',
> > end_date='2008-07-14'):
> >    """Retrieves events from the server which occur during the
> > specified date
> >    range.  This uses the CalendarEventQuery class to generate the URL
> > which is
> >    used to retrieve the feed.  For more information on valid query
> > parameters,
> >    see:http://code.google.com/apis/calendar/reference.html#Parameters""";
>
> >    print 'Date range query for events on: %s to %s' % (
> >        start_date, end_date,)
> >    query =
> > gdata.calendar.service.CalendarEventQuery('
> > [EMAIL PROTECTED]',
> > 'private',
> >        'full')
> >    query.start_min = start_date
> >    query.start_max = end_date
> >    feed = self.cal_client.CalendarQuery(query)
> >    print"id,task,start,finish"
> >    for i, an_event in zip(xrange(len(feed.entry)), feed.entry):
> >      print '\t%s. %s' % (i, an_event.title.text,)
> >      for a_when in an_event.when:
> >        print '\t\tStart time: %s' % (a_when.start_time,)
> >        print '\t\tEnd time:   %s' % (a_when.end_time,)

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

Reply via email to