[CalendarServer-changes] [312] CalendarServer/trunk/twistedcaldav
source_changes at macosforge.org
source_changes at macosforge.org
Thu Oct 26 14:32:59 PDT 2006
Revision: 312
http://trac.macosforge.org/projects/calendarserver/changeset/312
Author: wsanchez at apple.com
Date: 2006-10-26 14:32:59 -0700 (Thu, 26 Oct 2006)
Log Message:
-----------
Add DAVResource and DAVFile classes in this project which subclass web2.dav's implementations, so that we can add extensions here.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/resource.py
CalendarServer/trunk/twistedcaldav/static.py
Added Paths:
-----------
CalendarServer/trunk/twistedcaldav/extensions.py
Added: CalendarServer/trunk/twistedcaldav/extensions.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/extensions.py (rev 0)
+++ CalendarServer/trunk/twistedcaldav/extensions.py 2006-10-26 21:32:59 UTC (rev 312)
@@ -0,0 +1,39 @@
+##
+# Copyright (c) 2005-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: Wilfredo Sanchez, wsanchez at apple.com
+##
+
+"""
+Extensions to web2.dav
+"""
+
+__all__ = [
+ "DAVResource",
+ "DAVFile",
+]
+
+import twisted.web2.dav.resource
+import twisted.web2.dav.static
+
+class DAVResource (twisted.web2.dav.resource.DAVResource):
+ """
+ Extended L{twisted.web2.dav.resource.DAVResource} implementation.
+ """
+
+class DAVFile (twisted.web2.dav.static.DAVFile):
+ """
+ Extended L{twisted.web2.dav.static.DAVFile} implementation.
+ """
Modified: CalendarServer/trunk/twistedcaldav/resource.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/resource.py 2006-10-26 20:59:33 UTC (rev 311)
+++ CalendarServer/trunk/twistedcaldav/resource.py 2006-10-26 21:32:59 UTC (rev 312)
@@ -45,7 +45,7 @@
from twisted.web2.dav.resource import AccessDeniedError, DAVPrincipalResource
from twisted.web2.dav.davxml import dav_namespace
from twisted.web2.dav.http import ErrorResponse
-from twisted.web2.dav.resource import DAVResource, TwistedACLInheritable
+from twisted.web2.dav.resource import TwistedACLInheritable
from twisted.web2.dav.util import joinURL, parentForURL, unimplemented
from twisted.web2.http import HTTPError, RedirectResponse, StatusResponse, Response
from twisted.web2.http_headers import MimeType
@@ -58,6 +58,7 @@
from twistedcaldav.icaldav import ICalDAVResource, ICalendarPrincipalResource, ICalendarSchedulingCollectionResource
from twistedcaldav.caldavxml import caldav_namespace
from twistedcaldav.ical import Component as iComponent
+from twistedcaldav.extensions import DAVResource
if twistedcaldav.__version__:
serverVersion = twisted.web2.server.VERSION + " TwistedCalDAV/" + twistedcaldav.__version__
Modified: CalendarServer/trunk/twistedcaldav/static.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/static.py 2006-10-26 20:59:33 UTC (rev 311)
+++ CalendarServer/trunk/twistedcaldav/static.py 2006-10-26 21:32:59 UTC (rev 312)
@@ -46,7 +46,6 @@
from twisted.web2.dav.idav import IDAVResource
from twisted.web2.dav.resource import TwistedACLInheritable
from twisted.web2.dav.resource import TwistedQuotaRootProperty
-from twisted.web2.dav.static import DAVFile
from twisted.web2.dav.util import parentForURL, joinURL, bindMethods
from twistedcaldav import caldavxml
@@ -57,6 +56,7 @@
from twistedcaldav.resource import CalDAVResource, isPseudoCalendarCollectionResource, CalendarPrincipalResource
from twistedcaldav.resource import ScheduleInboxResource, ScheduleOutboxResource, CalendarPrincipalCollectionResource
from twistedcaldav.resource import isCalendarCollectionResource
+from twistedcaldav.extensions import DAVFile
class CalDAVFile (CalDAVResource, DAVFile):
"""
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061026/91ee3bcd/attachment.html
More information about the calendarserver-changes
mailing list