[CalendarServer-changes] [1192] CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Feb 14 17:18:24 PST 2007


Revision: 1192
          http://trac.macosforge.org/projects/calendarserver/changeset/1192
Author:   cdaboo at apple.com
Date:     2007-02-14 17:18:23 -0800 (Wed, 14 Feb 2007)

Log Message:
-----------
Only recognize http/https keys in hostDetails in directory XMLPlist attribute.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py

Modified: CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py	2007-02-14 21:13:11 UTC (rev 1191)
+++ CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py	2007-02-15 01:18:23 UTC (rev 1192)
@@ -222,7 +222,8 @@
             return False
         self.hostvariants = []
         for key, value in hostdetails.iteritems():
-            self.hostvariants.append((key, hostname, value["port"]))
+            if key in ("http", "https"):
+                self.hostvariants.append((key, hostname, value["port"]))
         self.hostvariants = tuple(self.hostvariants)
         
         # Look at the service data

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070214/3e6e06d6/attachment.html


More information about the calendarserver-changes mailing list