[CalendarServer-changes] [4309] CalendarServer/trunk/calendarserver/provision/root.py

source_changes at macosforge.org source_changes at macosforge.org
Wed May 27 15:52:17 PDT 2009


Revision: 4309
          http://trac.macosforge.org/projects/calendarserver/changeset/4309
Author:   wsanchez at apple.com
Date:     2009-05-27 15:52:17 -0700 (Wed, 27 May 2009)
Log Message:
-----------
comment

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/provision/root.py

Modified: CalendarServer/trunk/calendarserver/provision/root.py
===================================================================
--- CalendarServer/trunk/calendarserver/provision/root.py	2009-05-27 22:51:05 UTC (rev 4308)
+++ CalendarServer/trunk/calendarserver/provision/root.py	2009-05-27 22:52:17 UTC (rev 4309)
@@ -118,7 +118,7 @@
         # with an empty string.
         if authzUser == davxml.Principal(davxml.Unauthenticated()):
             if RootResource.CheckSACL("", self.saclService) != 0:
-                log.msg("Unauthenticated users not enabled with the %r SACL" % (self.saclService,))
+                log.info("Unauthenticated users not enabled with the %r SACL" % (self.saclService,))
                 response = (yield UnauthorizedResponse.makeResponse(
                     request.credentialFactories,
                     request.remoteAddr
@@ -147,7 +147,7 @@
         username = principal.record.shortNames[0]
 
         if RootResource.CheckSACL(username, self.saclService) != 0:
-            log.msg("User %r is not enabled with the %r SACL" % (username, self.saclService,))
+            log.info("User %r is not enabled with the %r SACL" % (username, self.saclService,))
             raise HTTPError(responsecode.FORBIDDEN)
 
         # Mark SACLs as having been checked so we can avoid doing it multiple times
@@ -220,6 +220,7 @@
                     child = (yield super(RootResource, self).locateChild(request, segments))
                     returnValue(child)
 
+                # FIXME: should catch something more specific than Exception
                 except Exception, e:
                     log.warn("Wiki lookup returned ERROR: %s" % (e,))
                     raise HTTPError(StatusResponse(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090527/c4d193bc/attachment.html>


More information about the calendarserver-changes mailing list