bigboard r7419 - trunk/bigboard



Author: otaylor
Date: Mon Aug 18 16:54:54 2008
New Revision: 7419
URL: http://svn.gnome.org/viewvc/bigboard?rev=7419&view=rev

Log:
Don't specify max-results when fetching the user's list of calendars - that
  now produces a 403 with the message:

   This service does not support the "max-results" parameter.


Modified:
   trunk/bigboard/google.py

Modified: trunk/bigboard/google.py
==============================================================================
--- trunk/bigboard/google.py	(original)
+++ trunk/bigboard/google.py	Mon Aug 18 16:54:54 2008
@@ -439,9 +439,10 @@
         username = self.__account.GetUsername()
         password = self.__account.GetPassword()
 
-        # there is a chance that someone might have access to more than 25 calendars, so let's
-        # specify 1000 for max-results to make sure we get information about all calendars 
-        uri = 'http://www.google.com/calendar/feeds/' + username + '?max-results=1000'
+        # We used to specify a large max-results here to make sure we got all calendars,
+        # but max-results is no longer allowed. We hope that the feed now just returns
+        # all calendars.
+        uri = 'http://www.google.com/calendar/feeds/' + username
 
         self.__fetcher.fetch(uri, username, password,
                              lambda url, data: cb(url, data, self),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]