[CalendarServer-changes] [924]
CalendarServer/branches/users/dreid/principalsOnDemand-114/
twistedcaldav/directory/principal.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jan 4 19:14:18 PST 2007
Revision: 924
http://trac.macosforge.org/projects/calendarserver/changeset/924
Author: dreid at apple.com
Date: 2007-01-04 19:14:18 -0800 (Thu, 04 Jan 2007)
Log Message:
-----------
Try and fix #144, by provisioning these principals on demand.
Modified Paths:
--------------
CalendarServer/branches/users/dreid/principalsOnDemand-114/twistedcaldav/directory/principal.py
Modified: CalendarServer/branches/users/dreid/principalsOnDemand-114/twistedcaldav/directory/principal.py
===================================================================
--- CalendarServer/branches/users/dreid/principalsOnDemand-114/twistedcaldav/directory/principal.py 2007-01-05 03:13:33 UTC (rev 923)
+++ CalendarServer/branches/users/dreid/principalsOnDemand-114/twistedcaldav/directory/principal.py 2007-01-05 03:14:18 UTC (rev 924)
@@ -81,7 +81,7 @@
# Provision in __init__() because principals are used prior to request
# lookups.
- self.provision()
+# self.provision() #
# Create children
for recordType in self.directory.recordTypes():
@@ -140,6 +140,7 @@
raise HTTPError(responsecode.NOT_FOUND)
def getChild(self, name):
+ self.provision()
return self.putChildren.get(name, None)
def listChildren(self):
@@ -176,7 +177,7 @@
# Provision in __init__() because principals are used prior to request
# lookups.
- self.provision()
+# self.provision()
def principalForUser(self, user):
return self.parent.principalForUser(user)
@@ -196,6 +197,7 @@
raise HTTPError(responsecode.NOT_FOUND)
def getChild(self, name, record=None):
+ self.provision()
if name == "":
return self
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070104/9b7e2abb/attachment.html
More information about the calendarserver-changes
mailing list