[CalendarServer-changes] [852] CalendarServer/trunk/twistedcaldav/directory/calendar.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Dec 18 18:48:43 PST 2006


Revision: 852
          http://trac.macosforge.org/projects/calendarserver/changeset/852
Author:   wsanchez at apple.com
Date:     2006-12-18 18:48:43 -0800 (Mon, 18 Dec 2006)

Log Message:
-----------
assert

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/directory/calendar.py

Modified: CalendarServer/trunk/twistedcaldav/directory/calendar.py
===================================================================
--- 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061218/64aa686c/attachment.html


More information about the calendarserver-changes mailing list