[CalendarServer-changes] [334]
CalendarServer/trunk/twistedcaldav/method
source_changes at macosforge.org
source_changes at macosforge.org
Fri Oct 27 17:12:41 PDT 2006
Revision: 334
http://trac.macosforge.org/projects/calendarserver/changeset/334
Author: cdaboo at apple.com
Date: 2006-10-27 17:12:41 -0700 (Fri, 27 Oct 2006)
Log Message:
-----------
Remove SCHEDULE method support. The spec no longer uses it.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/method/__init__.py
Removed Paths:
-------------
CalendarServer/trunk/twistedcaldav/method/schedule.py
Modified: CalendarServer/trunk/twistedcaldav/method/__init__.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/method/__init__.py 2006-10-28 00:08:59 UTC (rev 333)
+++ CalendarServer/trunk/twistedcaldav/method/__init__.py 2006-10-28 00:12:41 UTC (rev 334)
@@ -35,6 +35,5 @@
"report_calquery",
"report_multiget",
"report_freebusy",
- "schedule",
"schedule_common",
]
Deleted: CalendarServer/trunk/twistedcaldav/method/schedule.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/method/schedule.py 2006-10-28 00:08:59 UTC (rev 333)
+++ CalendarServer/trunk/twistedcaldav/method/schedule.py 2006-10-28 00:12:41 UTC (rev 334)
@@ -1,58 +0,0 @@
-##
-# Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# DRI: Cyrus Daboo, cdaboo at apple.com
-##
-
-"""
-CalDAV SCHEDULE method.
-"""
-
-__all__ = ["http_SCHEDULE"]
-
-from twisted.internet.defer import deferredGenerator, waitForDeferred
-from twisted.web2.dav.util import parentForURL
-
-from twistedcaldav import caldavxml
-from twistedcaldav.method.schedule_common import processScheduleRequest
-
-def http_SCHEDULE(self, request):
-
- """
- The CalDAV SCHEDULE method.
-
- This uses a generator function yielding either L{waitForDeferred} objects or L{Response} objects.
- This allows for code that follows a 'linear' execution pattern rather than having to use nested
- L{Deferred} callbacks. The logic is easier to follow this way plus we don't run into deep nesting
- issues which the other approach would have with large numbers of recipients.
- """
-
- #
- # Check authentication and access controls
- #
- parent = waitForDeferred(request.locateResource(parentForURL(request.uri)))
- yield parent
- parent = parent.getResult()
-
- d = waitForDeferred(parent.authorize(request, (caldavxml.Schedule(),)))
- yield d
- d.getResult()
-
- # Initiate deferred generator
- d = waitForDeferred(processScheduleRequest(self, "SCHEDULE", request))
- yield d
- yield d.getResult()
-
-http_SCHEDULE = deferredGenerator(http_SCHEDULE)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061027/f5dee833/attachment.html
More information about the calendarserver-changes
mailing list