[CalendarServer-changes] [5152] CalendarServer/trunk/calendarserver/util.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Feb 18 14:51:12 PST 2010


Revision: 5152
          http://trac.macosforge.org/projects/calendarserver/changeset/5152
Author:   sagen at apple.com
Date:     2010-02-18 14:51:10 -0800 (Thu, 18 Feb 2010)
Log Message:
-----------
Fixes auth scheme overrides

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/util.py

Modified: CalendarServer/trunk/calendarserver/util.py
===================================================================
--- CalendarServer/trunk/calendarserver/util.py	2010-02-18 21:44:49 UTC (rev 5151)
+++ CalendarServer/trunk/calendarserver/util.py	2010-02-18 22:51:10 UTC (rev 5152)
@@ -395,8 +395,13 @@
     overrides = { }
     if resources:
         for path, cls, args, scheme in resources:
+
+            # putChild doesn't want "/" starting the path
             root.putChild(path, cls(root, *args))
 
+            # overrides requires "/" prepended
+            path = "/" + path
+
             if scheme == "basic":
                 overrides[path] = (BasicCredentialFactory(realm),)
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100218/01d67d36/attachment.html>


More information about the calendarserver-changes mailing list