[CalendarServer-changes] [13253] CalendarServer/trunk/txdav/who/directory.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Apr 10 16:10:17 PDT 2014


Revision: 13253
          http://trac.calendarserver.org//changeset/13253
Author:   gaya at apple.com
Date:     2014-04-10 16:10:17 -0700 (Thu, 10 Apr 2014)
Log Message:
-----------
fix attendee() doc string

Modified Paths:
--------------
    CalendarServer/trunk/txdav/who/directory.py

Modified: CalendarServer/trunk/txdav/who/directory.py
===================================================================
--- CalendarServer/trunk/txdav/who/directory.py	2014-04-10 22:58:26 UTC (rev 13252)
+++ CalendarServer/trunk/txdav/who/directory.py	2014-04-10 23:10:17 UTC (rev 13253)
@@ -505,18 +505,17 @@
                     returnValue(True)
 
 
-    def attendee(self, params=None):
+    def attendee(self, params={}):
         """
         Returns a pycalendar ATTENDEE property for this record.
 
-        @param groupUIDs: group uids for the MEMBER parameter of returned property
-        @type organizer: C{List}
+        @params: extra parameters such as MEMBER to add to ATTENDEE property
+        @type: C{dict}
 
         @return: the attendee property
         @rtype: C{Property}
         """
-        params = {} if params is None else params.copy()
-
+        params = params.copy() if params else params
         if "PARTSTAT" not in params:
             params["PARTSTAT"] = "NEEDS-ACTION"
         if "CN"not in params:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140410/c84df507/attachment-0001.html>


More information about the calendarserver-changes mailing list