[CalendarServer-changes] [2311]
CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.resource.
patch
source_changes at macosforge.org
source_changes at macosforge.org
Mon Apr 14 13:07:17 PDT 2008
Revision: 2311
http://trac.macosforge.org/projects/calendarserver/changeset/2311
Author: wsanchez at apple.com
Date: 2008-04-14 13:07:16 -0700 (Mon, 14 Apr 2008)
Log Message:
-----------
Don't log all accesses in renderHTTP().
Modified Paths:
--------------
CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.resource.patch
Modified: CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.resource.patch
===================================================================
--- CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.resource.patch 2008-04-14 19:09:53 UTC (rev 2310)
+++ CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.resource.patch 2008-04-14 20:07:16 UTC (rev 2311)
@@ -860,7 +860,18 @@
# HTTP
##
-@@ -1567,7 +1917,7 @@
+@@ -1525,10 +1875,6 @@
+ #litmus = request.headers.getRawHeaders("x-litmus")
+ #if litmus: log.msg("*** Litmus test: %s ***" % (litmus,))
+
+- # FIXME: Learn how to use twisted logging facility, wsanchez
+- protocol = "HTTP/%s.%s" % request.clientproto
+- log.msg("%s %s %s" % (request.method, urllib.unquote(request.uri), protocol))
+-
+ #
+ # If this is a collection and the URI doesn't end in "/", redirect.
+ #
+@@ -1567,7 +1913,7 @@
def findChildren(self, depth, request, callback, privileges=None, inherited_aces=None):
return succeed(None)
@@ -869,7 +880,7 @@
"""
Resource representing a WebDAV principal. (RFC 3744, section 2)
"""
-@@ -1577,7 +1927,7 @@
+@@ -1577,7 +1923,7 @@
# WebDAV
##
@@ -878,7 +889,7 @@
(dav_namespace, "alternate-URI-set"),
(dav_namespace, "principal-URL" ),
(dav_namespace, "group-member-set" ),
-@@ -1585,14 +1935,11 @@
+@@ -1585,14 +1931,11 @@
)
def davComplianceClasses(self):
@@ -894,7 +905,7 @@
def readProperty(self, property, request):
def defer():
if type(property) is tuple:
-@@ -1610,10 +1957,10 @@
+@@ -1610,10 +1953,10 @@
return davxml.PrincipalURL(davxml.HRef(self.principalURL()))
if name == "group-member-set":
@@ -907,7 +918,7 @@
if name == "resourcetype":
if self.isCollection():
-@@ -1677,8 +2024,27 @@
+@@ -1677,8 +2020,27 @@
if self.principalURL() == uri:
return True
else:
@@ -936,7 +947,7 @@
class AccessDeniedError(Exception):
def __init__(self, errors):
"""
-@@ -1718,6 +2084,37 @@
+@@ -1718,6 +2080,37 @@
davxml.registerElement(TwistedACLInheritable)
davxml.ACE.allowed_children[(twisted_dav_namespace, "inheritable")] = (0, 1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080414/55967801/attachment.html
More information about the calendarserver-changes
mailing list