Revision
852
Author
wsanchez@apple.com
Date
2006-12-18 18:48:43 -0800 (Mon, 18 Dec 2006)

Log Message

assert

Modified Paths

Diff

Modified: CalendarServer/trunk/twistedcaldav/directory/calendar.py (851 => 852)


--- CalendarServer/trunk/twistedcaldav/directory/calendar.py	2006-12-19 01:52:44 UTC (rev 851)
+++ CalendarServer/trunk/twistedcaldav/directory/calendar.py	2006-12-19 02:48:43 UTC (rev 852)
@@ -48,6 +48,7 @@
         @param directory: an L{IDirectoryService} to provision calendars from.
         @param url: the canonical URL for the resource.
         """
+        assert directory is not None
         assert url.endswith("/"), "Collection URL must end in '/'"
 
         DAVResource.__init__(self)
@@ -111,6 +112,9 @@
         @param directory: an L{IDirectoryService} to provision calendars from.
         @param recordType: the directory record type to provision.
         """
+        assert parent is not None
+        assert recordType is not None
+
         DAVResource.__init__(self)
 
         self.directory = parent.directory
@@ -168,6 +172,9 @@
         """
         @param path: the path to the file which will back the resource.
         """
+        assert parent is not None
+        assert record is not None
+
         CalDAVResource.__init__(self)
 
         self.record = record