[CalendarServer-changes] [2620] CalendarServer/trunk/twistedcaldav/directory/principal.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jun 25 13:18:33 PDT 2008
Revision: 2620
http://trac.macosforge.org/projects/calendarserver/changeset/2620
Author: cdaboo at apple.com
Date: 2008-06-25 13:18:32 -0700 (Wed, 25 Jun 2008)
Log Message:
-----------
Make sure unknown principal resource lookup is handled without a 500 error being returned.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/directory/principal.py
Modified: CalendarServer/trunk/twistedcaldav/directory/principal.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/principal.py 2008-06-23 20:38:53 UTC (rev 2619)
+++ CalendarServer/trunk/twistedcaldav/directory/principal.py 2008-06-25 20:18:32 UTC (rev 2620)
@@ -560,6 +560,12 @@
log.err("Attempt to create clone %r of resource %r" % (path, self))
raise HTTPError(responsecode.NOT_FOUND)
+ def locateChild(self, req, segments):
+ child = self.getChild(segments[0])
+ if child is not None:
+ return (child, segments[1:])
+ return (None, ())
+
def getChild(self, name):
if name == "":
return self
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080625/45712ddf/attachment.htm
More information about the calendarserver-changes
mailing list