[CalendarServer-changes] [1633] CalendarServer/trunk/lib-patches/PyDirector/pydirector.pdmain.patch

source_changes at macosforge.org source_changes at macosforge.org
Fri Jun 29 14:19:41 PDT 2007


Revision: 1633
          http://trac.macosforge.org/projects/calendarserver/changeset/1633
Author:   wsanchez at apple.com
Date:     2007-06-29 14:19:41 -0700 (Fri, 29 Jun 2007)

Log Message:
-----------
Don't assume that self.conf has a socket attribute, which isn't the
case in non-CalendarServer uses of pydirector.

Modified Paths:
--------------
    CalendarServer/trunk/lib-patches/PyDirector/pydirector.pdmain.patch

Modified: CalendarServer/trunk/lib-patches/PyDirector/pydirector.pdmain.patch
===================================================================
--- CalendarServer/trunk/lib-patches/PyDirector/pydirector.pdmain.patch	2007-06-29 03:00:01 UTC (rev 1632)
+++ CalendarServer/trunk/lib-patches/PyDirector/pydirector.pdmain.patch	2007-06-29 21:19:41 UTC (rev 1633)
@@ -17,8 +17,8 @@
 +        self._connections = {}
          self.createManager()
          self.createListeners()
-+        reactor.listenUNIX(self.conf.socket,
-+                           pdamp.PDControlFactory(self))
++        if hasattr(self.conf, "socket"):
++            reactor.listenUNIX(self.conf.socket, pdamp.PDControlFactory(self))
 +
 +    def getClientAddress(self, host, port):
 +        return self._connections.get((host, port), (None, None))

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


More information about the calendarserver-changes mailing list