[CalendarServer-changes] [2658] CalendarServer/trunk/twistedcaldav/itip.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Jul 7 07:16:12 PDT 2008


Revision: 2658
          http://trac.macosforge.org/projects/calendarserver/changeset/2658
Author:   cdaboo at apple.com
Date:     2008-07-07 07:16:12 -0700 (Mon, 07 Jul 2008)
Log Message:
-----------
Allow iTIP logging for auto-accept locations.

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

Modified: CalendarServer/trunk/twistedcaldav/itip.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/itip.py	2008-07-03 22:23:19 UTC (rev 2657)
+++ CalendarServer/trunk/twistedcaldav/itip.py	2008-07-07 14:16:12 UTC (rev 2658)
@@ -43,6 +43,7 @@
 from twisted.web2.dav.resource import AccessDeniedError
 
 from twistedcaldav import caldavxml
+from twistedcaldav.accounting import accountingEnabled, emitAccounting
 from twistedcaldav.log import Logger
 from twistedcaldav.ical import Property, iCalendarProductID
 from twistedcaldav.method import report_common
@@ -564,6 +565,14 @@
     
     # Now deposit the new calendar into the inbox
     result = yield writeResource(request, inboxURL, inbox, None, replycal)
+
+    if accountingEnabled("iTIP", principal):
+        emitAccounting(
+            "iTIP", principal,
+            "Originator: %s\nRecipients: %s\n\n%s"
+            % (principal.principalURL(), organizer, str(replycal))
+        )
+
     returnValue(result)
 
 @inlineCallbacks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080707/a0f301f7/attachment.html 


More information about the calendarserver-changes mailing list