Revision: 1578 http://trac.macosforge.org/projects/calendarserver/changeset/1578 Author: cdaboo@apple.com Date: 2007-05-29 10:07:59 -0700 (Tue, 29 May 2007) Log Message: ----------- Bump up the limit on the number of results for a query. Modified Paths: -------------- CalendarServer/trunk/twistedcaldav/method/report_calquery.py Modified: CalendarServer/trunk/twistedcaldav/method/report_calquery.py =================================================================== --- CalendarServer/trunk/twistedcaldav/method/report_calquery.py 2007-05-29 17:06:24 UTC (rev 1577) +++ CalendarServer/trunk/twistedcaldav/method/report_calquery.py 2007-05-29 17:07:59 UTC (rev 1578) @@ -29,13 +29,14 @@ from twisted.web2.dav.element.base import dav_namespace from twisted.web2.dav.http import ErrorResponse, MultiStatusResponse from twisted.web2.dav.method.report import NumberOfMatchesWithinLimits -from twisted.web2.dav.method.report import max_number_of_matches from twisted.web2.dav.util import joinURL from twisted.web2.http import HTTPError, StatusResponse from twistedcaldav.caldavxml import caldav_namespace from twistedcaldav.method import report_common +max_number_of_results = 1000 + def report_urn_ietf_params_xml_ns_caldav_calendar_query(self, request, calendar_query): """ Generate a calendar-query REPORT. @@ -115,7 +116,7 @@ if query_ok or filter.match(calendar): # Check size of results is within limit matchcount[0] += 1 - if matchcount[0] > max_number_of_matches: + if matchcount[0] > max_number_of_results: raise NumberOfMatchesWithinLimits if name: