[CalendarServer-changes] [2402] CalendarServer/trunk/twistedcaldav

source_changes at macosforge.org source_changes at macosforge.org
Fri May 9 13:25:20 PDT 2008


Revision: 2402
          http://trac.macosforge.org/projects/calendarserver/changeset/2402
Author:   cdaboo at apple.com
Date:     2008-05-09 13:25:19 -0700 (Fri, 09 May 2008)

Log Message:
-----------
Restore some stuff for dropbox that should not have been removed.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/dropbox.py
    CalendarServer/trunk/twistedcaldav/static.py

Modified: CalendarServer/trunk/twistedcaldav/dropbox.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/dropbox.py	2008-05-09 17:41:34 UTC (rev 2401)
+++ CalendarServer/trunk/twistedcaldav/dropbox.py	2008-05-09 20:25:19 UTC (rev 2402)
@@ -83,9 +83,21 @@
             (calendarserver_namespace, "valid-drop-box")
         )
 
+    def http_MKCALENDAR (self, request): 
+        return ErrorResponse( 
+            responsecode.FORBIDDEN, 
+            (calendarserver_namespace, "valid-drop-box") 
+        ) 
+
 class DropBoxChildResource (DAVResource):
     def http_MKCOL(self, request):
         return ErrorResponse(
             responsecode.FORBIDDEN,
             (calendarserver_namespace, "valid-drop-box-resource")
         )
+
+    def http_MKCALENDAR (self, request): 
+        return ErrorResponse( 
+            responsecode.FORBIDDEN, 
+            (calendarserver_namespace, "valid-drop-box-resource") 
+        ) 

Modified: CalendarServer/trunk/twistedcaldav/static.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/static.py	2008-05-09 17:41:34 UTC (rev 2401)
+++ CalendarServer/trunk/twistedcaldav/static.py	2008-05-09 20:25:19 UTC (rev 2402)
@@ -665,6 +665,8 @@
     def __repr__(self):
         return "<%s (dropbox collection): %s>" % (self.__class__.__name__, self.fp.path)
 
+    http_MKCALENDAR = DropBoxCollectionResource.http_MKCALENDAR
+
 class DropBoxChildFile (DropBoxChildResource, CalDAVFile):
     def __init__(self, path, parent):
         DropBoxChildResource.__init__(self)
@@ -678,6 +680,9 @@
         else:
             return responsecode.NOT_FOUND
 
+    http_MKCOL =      DropBoxChildResource.http_MKCOL 
+    http_MKCALENDAR = DropBoxChildResource.http_MKCALENDAR
+
 ##
 # Utilities
 ##

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080509/73d2620e/attachment.html


More information about the calendarserver-changes mailing list