[CalendarServer-changes] [1141] CalendarServer/trunk/twistedcaldav/dropbox.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Feb 6 18:57:34 PST 2007


Revision: 1141
          http://trac.macosforge.org/projects/calendarserver/changeset/1141
Author:   cdaboo at apple.com
Date:     2007-02-06 18:57:34 -0800 (Tue, 06 Feb 2007)

Log Message:
-----------
Don't notify the principal that is generating the notification.

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

Modified: CalendarServer/trunk/twistedcaldav/dropbox.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/dropbox.py	2007-02-06 22:13:05 UTC (rev 1140)
+++ CalendarServer/trunk/twistedcaldav/dropbox.py	2007-02-07 02:57:34 UTC (rev 1141)
@@ -143,7 +143,14 @@
         autosubs = d.getResult()
         principals.update(autosubs)
         
+        my_principal = self.currentPrincipal(request)
+
         for principal in principals:
+
+            # Don't send a notification to the principal that generated it
+            if principal == my_principal:
+                continue
+
             if not isinstance(principal.children[0], davxml.HRef):
                 continue
             purl = str(principal.children[0])

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070206/10e81271/attachment.html


More information about the calendarserver-changes mailing list