Modified: CalendarServer/trunk/twistedcaldav/static.py (855 => 856)
--- CalendarServer/trunk/twistedcaldav/static.py 2006-12-19 04:35:34 UTC (rev 855)
+++ CalendarServer/trunk/twistedcaldav/static.py 2006-12-19 04:38:58 UTC (rev 856)
@@ -425,7 +425,9 @@
DirectoryCalendarHomeTypeProvisioningResource.__init__(self, parent, recordType)
def provisionChild(self, name):
- child = CalendarHomeFile(self.fp.child(name).path, self, self.directory.recordWithShortName(self.recordType, name))
+ record = self.directory.recordWithShortName(self.recordType, name)
+ assert record is not None, "No directory record %r of type %r" % (name, self.recordType)
+ child = CalendarHomeFile(self.fp.child(name).path, self, record)
if not child.exists():
# NOTE: provisionDefaultCalendars() returns a deferred, which we are ignoring.
# The result being that the default calendars will be present at some point