[CalendarServer-changes] [414]
CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/
directory/resource.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Nov 9 16:24:32 PST 2006
Revision: 414
http://trac.macosforge.org/projects/calendarserver/changeset/414
Author: wsanchez at apple.com
Date: 2006-11-09 16:24:31 -0800 (Thu, 09 Nov 2006)
Log Message:
-----------
Implement principalCollections() on top provisioner.
Note this doesn't list all principals collections on the server, but
simply returns self. This presupposes that only principals defined in
this principal collection are relevant to ACL queries related to this
collection and its children.
Modified Paths:
--------------
CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/directory/resource.py
Modified: CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/directory/resource.py
===================================================================
--- CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/directory/resource.py 2006-11-09 23:27:08 UTC (rev 413)
+++ CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/directory/resource.py 2006-11-10 00:24:31 UTC (rev 414)
@@ -82,6 +82,9 @@
def principalForUser(self, user):
return self.getChild("user").getChild(user)
+ def principalCollections(self, request):
+ return succeed((self.principalCollectionURL(),))
+
class DirectoryPrincipalTypeResource (ReadOnlyResourceMixIn, CalendarPrincipalCollectionResource, DAVFile):
"""
Collection resource which provisions directory principals of a specific type as its children.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061109/399d521f/attachment.html
More information about the calendarserver-changes
mailing list