[CalendarServer-changes] [5577] CalendarServer/branches/users/wsanchez/transations/twistedcaldav/ static.py

source_changes at macosforge.org source_changes at macosforge.org
Sun May 9 15:37:10 PDT 2010


Revision: 5577
          http://trac.macosforge.org/projects/calendarserver/changeset/5577
Author:   glyph at apple.com
Date:     2010-05-09 15:37:04 -0700 (Sun, 09 May 2010)
Log Message:
-----------
A simple bugfix ('path' apparently might be a string) and some doc / formatting updates.

Modified Paths:
--------------
    CalendarServer/branches/users/wsanchez/transations/twistedcaldav/static.py

Modified: CalendarServer/branches/users/wsanchez/transations/twistedcaldav/static.py
===================================================================
--- CalendarServer/branches/users/wsanchez/transations/twistedcaldav/static.py	2010-05-08 02:45:17 UTC (rev 5576)
+++ CalendarServer/branches/users/wsanchez/transations/twistedcaldav/static.py	2010-05-09 22:37:04 UTC (rev 5577)
@@ -650,7 +650,9 @@
 
         if isCalendarCollectionResource(self):
             similar._newStoreObject = \
-                self._newStoreCalendar.calendarObjectWithName(path.basename())
+                self._newStoreCalendar.calendarObjectWithName(
+                    similar.fp.basename()
+                )
 
             # Short-circuit stat with information we know to be true at this point
             if isinstance(path, FilePath) and hasattr(self, "knownChildren"):
@@ -853,15 +855,26 @@
             super(AutoProvisioningFileMixIn, self)._initTypeAndEncoding()
 
 
-class CalendarHomeProvisioningFile (AutoProvisioningFileMixIn, DirectoryCalendarHomeProvisioningResource, DAVFile):
+class CalendarHomeProvisioningFile(AutoProvisioningFileMixIn, 
+                                   DirectoryCalendarHomeProvisioningResource,
+                                   DAVFile):
     """
     Resource which provisions calendar home collections as needed.
     """
+
     def __init__(self, path, directory, url):
         """
-        @param path: the path to the file which will back the resource.
+        Initialize this L{CalendarHomeProvisioningFile}.
+
+        @param path: the path to the filesystem directory which will back the
+            resource.
+
+        @type path: L{FilePath}
+
         @param directory: an L{IDirectoryService} to provision calendars from.
-        @param url: the canonical URL for the resource.
+
+        @param url: the canonical URL for this L{CalendarHomeProvisioningFile} 
+            resource.
         """
         DAVFile.__init__(self, path)
         DirectoryCalendarHomeProvisioningResource.__init__(self, directory, url)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100509/6d06f02d/attachment.html>


More information about the calendarserver-changes mailing list