[CalendarServer-changes] [4456] CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/ notify.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Jul 14 13:25:06 PDT 2009


Revision: 4456
          http://trac.macosforge.org/projects/calendarserver/changeset/4456
Author:   cdaboo at apple.com
Date:     2009-07-14 13:25:06 -0700 (Tue, 14 Jul 2009)
Log Message:
-----------
Iterate over dict values not keys.

Modified Paths:
--------------
    CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/notify.py

Modified: CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/notify.py
===================================================================
--- CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/notify.py	2009-07-13 22:24:05 UTC (rev 4455)
+++ CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/notify.py	2009-07-14 20:25:06 UTC (rev 4456)
@@ -744,7 +744,7 @@
     results = { 'enabled' : False }
 
     # return the first enabled xmpp service settings in the config file
-    for settings in config.Notifications["Services"]:
+    for settings in config.Notifications["Services"].itervalues():
         if (settings["Service"] == "twistedcaldav.notify.XMPPNotifierService"
             and settings["Enabled"]):
             results['enabled'] = True
@@ -864,7 +864,7 @@
         multiService = service.MultiService()
 
         notifiers = []
-        for settings in config.Notifications["Services"]:
+        for settings in config.Notifications["Services"].itervalues():
             if settings["Enabled"]:
                 notifier = namedClass(settings["Service"])(settings)
                 notifier.setServiceParent(multiService)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090714/df6c97c1/attachment.html>


More information about the calendarserver-changes mailing list