[CalendarServer-changes] [986] CalendarServer/branches/users/dreid/sudoers-3/lib-patches/Twisted/ twisted.web2.dav.test.test_acl.patch

source_changes at macosforge.org source_changes at macosforge.org
Mon Jan 8 17:27:25 PST 2007


Revision: 986
          http://trac.macosforge.org/projects/calendarserver/changeset/986
Author:   dreid at apple.com
Date:     2007-01-08 17:27:25 -0800 (Mon, 08 Jan 2007)

Log Message:
-----------
make ACL tests pass

Modified Paths:
--------------
    CalendarServer/branches/users/dreid/sudoers-3/lib-patches/Twisted/twisted.web2.dav.test.test_acl.patch

Modified: CalendarServer/branches/users/dreid/sudoers-3/lib-patches/Twisted/twisted.web2.dav.test.test_acl.patch
===================================================================
--- CalendarServer/branches/users/dreid/sudoers-3/lib-patches/Twisted/twisted.web2.dav.test.test_acl.patch	2007-01-09 01:18:38 UTC (rev 985)
+++ CalendarServer/branches/users/dreid/sudoers-3/lib-patches/Twisted/twisted.web2.dav.test.test_acl.patch	2007-01-09 01:27:25 UTC (rev 986)
@@ -33,23 +33,27 @@
  class ACL(twisted.web2.dav.test.util.TestCase):
      """
      RFC 3744 (WebDAV ACL) tests.
-@@ -46,8 +63,14 @@
+@@ -46,8 +63,18 @@
          if not hasattr(self, "docroot"):
              self.docroot = self.mktemp()
              os.mkdir(self.docroot)
 -            rootresource = self.resource_class(self.docroot)
  
-+            userResource = TestDAVPrincipalResource("/principals/user01")
++            userResource = TestDAVPrincipalResource("/principals/users/user01")
 +            userResource.writeDeadProperty(TwistedPasswordProperty("user01"))
 +
-+            principalCollection = TestPrincipalsCollection("/principals/", children={"user01": userResource})
++            principalCollection = TestPrincipalsCollection(
++                "/principals/", 
++                children={"users": TestPrincipalsCollection(
++                        "/principals/users/",
++                        children={"user01": userResource})})
 +
 +            rootResource = self.resource_class(self.docroot, principalCollections=(principalCollection,))
 +
              portal = Portal(DavRealm())
              portal.registerChecker(TwistedPropertyChecker())
  
-@@ -56,26 +79,14 @@
+@@ -56,26 +83,14 @@
              loginInterfaces = (IPrincipal,)
  
              self.site = Site(AuthenticationWrapper(

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070108/29475add/attachment.html


More information about the calendarserver-changes mailing list