[CalendarServer-changes] [6146] CalendarServer/trunk/txcaldav/calendarstore/file.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 19 23:41:05 PDT 2010


Revision: 6146
          http://trac.macosforge.org/projects/calendarserver/changeset/6146
Author:   glyph at apple.com
Date:     2010-08-19 23:41:02 -0700 (Thu, 19 Aug 2010)
Log Message:
-----------
remove docstring indicating that Attachment.properties() is private, since it's required by the interface now.  also, homes don't really have a peruser uid (it's always the regular uid), so don't use that attribute.

Modified Paths:
--------------
    CalendarServer/trunk/txcaldav/calendarstore/file.py

Modified: CalendarServer/trunk/txcaldav/calendarstore/file.py
===================================================================
--- CalendarServer/trunk/txcaldav/calendarstore/file.py	2010-08-20 06:22:37 UTC (rev 6145)
+++ CalendarServer/trunk/txcaldav/calendarstore/file.py	2010-08-20 06:41:02 UTC (rev 6146)
@@ -170,7 +170,7 @@
 
 
     def resourceType(self):
-        return ResourceType.calendar
+        return ResourceType.calendar #@UndefinedVariable
 
 
     ownerCalendarHome = CommonHomeChild.ownerHome
@@ -458,18 +458,8 @@
 
 
     def properties(self):
-        """
-        Create and return a private xattr L{PropertyStore} for storing some of
-        the data about this L{Attachment}.  This is private because attachments
-        do not (currently) require arbitrary dead property storage, but older
-        servers did store useful information about attachments in xattr
-        properties in the filesystem.
-        """
-        return PropertyStore(
-            self._calendarObject._parentCollection._home.peruser_uid(),
-            self._calendarObject._parentCollection._home.uid(),
-            lambda :self._path
-        )
+        uid = self._calendarObject._parentCollection._home.uid()
+        return PropertyStore(uid, uid, lambda :self._path)
 
 
     def store(self, contentType):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100819/84d52ca6/attachment.html>


More information about the calendarserver-changes mailing list