[CalendarServer-changes] [3119] CalendarServer/trunk/twistedcaldav/mail.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Oct 6 10:43:45 PDT 2008


Revision: 3119
          http://trac.macosforge.org/projects/calendarserver/changeset/3119
Author:   sagen at apple.com
Date:     2008-10-06 10:43:43 -0700 (Mon, 06 Oct 2008)
Log Message:
-----------
Don't try to modify organizer's attendee property if it's not already present

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/mail.py

Modified: CalendarServer/trunk/twistedcaldav/mail.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/mail.py	2008-10-06 05:46:49 UTC (rev 3118)
+++ CalendarServer/trunk/twistedcaldav/mail.py	2008-10-06 17:43:43 UTC (rev 3119)
@@ -657,9 +657,11 @@
         addressWithToken = "%s+%s@%s" % (pre, token, post)
         calendar.getOrganizerProperty().setValue("mailto:%s" %
             (addressWithToken,))
-        calendar.getAttendeeProperty([organizer]).setValue("mailto:%s" %
-            (addressWithToken,))
 
+        organizerAttendee = calendar.getAttendeeProperty([organizer])
+        if organizerAttendee is not None:
+            organizerAttendee.setValue("mailto:%s" % (addressWithToken,))
+
         msgId, message = self._generateTemplateMessage(calendar, organizer)
 
         # The email's From: will be the calendar server's address (without
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20081006/43f85e44/attachment.html 


More information about the calendarserver-changes mailing list