[CalendarServer-changes] [1492] CalendarServer/trunk/twistedcaldav/tap.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Apr 19 14:01:19 PDT 2007


Revision: 1492
          http://trac.macosforge.org/projects/calendarserver/changeset/1492
Author:   wsanchez at apple.com
Date:     2007-04-19 14:01:18 -0700 (Thu, 19 Apr 2007)

Log Message:
-----------
cosmetic

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

Modified: CalendarServer/trunk/twistedcaldav/tap.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/tap.py	2007-04-17 01:55:24 UTC (rev 1491)
+++ CalendarServer/trunk/twistedcaldav/tap.py	2007-04-19 21:01:18 UTC (rev 1492)
@@ -459,16 +459,15 @@
         if config.ProcessType == 'Slave':
             realRoot = pdmonster.PDClientAddressWrapper(
                 logWrapper,
-                config.PythonDirector['ControlSocket'])
+                config.PythonDirector['ControlSocket']
+            )
 
-            logObserver = logging.AMPCommonAccessLoggingObserver(
-                config.ControlSocket)
+            logObserver = logging.AMPCommonAccessLoggingObserver(config.ControlSocket)
 
         elif config.ProcessType == 'Single':
             realRoot = logWrapper
 
-            logObserver = logging.RotatingFileAccessLoggingObserver(
-                config.AccessLogFile)
+            logObserver = logging.RotatingFileAccessLoggingObserver(config.AccessLogFile)
 
         log.msg("Configuring log observer: %s" % (
             logObserver,))
@@ -500,18 +499,15 @@
 
             for port in config.BindHTTPPorts:
                 log.msg("Adding server at %s:%s" % (bindAddress, port))
-                
+
                 httpService = internet.TCPServer(int(port), channel, interface=bindAddress)
                 httpService.setServiceParent(service)
 
             for port in config.BindSSLPorts:
                 log.msg("Adding SSL server at %s:%s" % (bindAddress, port))
-            
-                httpsService = internet.SSLServer(
-                    int(port), channel,
-                    DefaultOpenSSLContextFactory(config.SSLPrivateKey, config.SSLCertificate),
-                    interface=bindAddress
-                )
+
+                contextFactory = DefaultOpenSSLContextFactory(config.SSLPrivateKey, config.SSLCertificate)
+                httpsService = internet.SSLServer(int(port), channel, contextFactory, interface=bindAddress)
                 httpsService.setServiceParent(service)
 
         return service

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


More information about the calendarserver-changes mailing list