[CalendarServer-changes] [2224]
CalendarServer/trunk/twistedcaldav/directory/calendar.py
source_changes at macosforge.org
source_changes at macosforge.org
Sun Mar 16 10:43:59 PDT 2008
Revision: 2224
http://trac.macosforge.org/projects/calendarserver/changeset/2224
Author: cdaboo at apple.com
Date: 2008-03-16 10:43:57 -0700 (Sun, 16 Mar 2008)
Log Message:
-----------
Make sure /calendars/__uids__/ cannot be listed.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/directory/calendar.py
Modified: CalendarServer/trunk/twistedcaldav/directory/calendar.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/calendar.py 2008-03-10 21:26:58 UTC (rev 2223)
+++ CalendarServer/trunk/twistedcaldav/directory/calendar.py 2008-03-16 17:43:57 UTC (rev 2224)
@@ -27,7 +27,9 @@
]
from twisted.internet.defer import succeed
+from twisted.web2 import responsecode
from twisted.web2.dav import davxml
+from twisted.web2.http import HTTPError
from twisted.web2.dav.util import joinURL
from twisted.web2.dav.resource import TwistedACLInheritable, TwistedQuotaRootProperty
@@ -208,11 +210,8 @@
return self.provisionChild(name)
def listChildren(self):
- return (
- record.guid
- for record in self.directory.listRecords(self.recordType)
- if record.enabledForCalendaring
- )
+ # Not a listable collection
+ raise HTTPError(responsecode.FORBIDDEN)
##
# DAV
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080316/12e450a7/attachment.html
More information about the calendarserver-changes
mailing list