[Zope3-checkins] CVS: Zope3/src/zope/app/process - server.py:1.1.2.2

Fred L. Drake, Jr. fred@zope.com
Tue, 24 Jun 2003 13:44:27 -0400


Update of /cvs-repository/Zope3/src/zope/app/process
In directory cvs.zope.org:/tmp/cvs-serv11071

Modified Files:
      Tag: fdrake-zconfig-in-zope-3-branch
	server.py 
Log Message:
added docstrings


=== Zope3/src/zope/app/process/server.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/process/server.py:1.1.2.1	Mon Jun 23 18:07:58 2003
+++ Zope3/src/zope/app/process/server.py	Tue Jun 24 13:44:27 2003
@@ -11,23 +11,32 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""XXX short summary goes here.
 
-XXX longer description goes here.
+"""Datatype for a <server> section in a Zope 3 configuration file.
+
+This is called by the ZConfig machinery while processing a configuration.
 
 $Id$
 """
 
 from zope.app.process.servertyperegistry import getServerType
 
+
 class ServerFactory:
+    """Factory for server objects.
+
+    The factories are part of the configuration data returned by
+    ZConfig.
+    """
 
     def __init__(self, section):
+        """Initialize the factory based on a <server> section."""
         self.type = section.type
         self.address = section.address
         self.verbose = section.verbose
 
     def create(self, task_dispatcher, database):
+        """Return a server based on the server types defined via ZCML."""
         servertype = getServerType(self.type)
         # The server object self-registers with the asyncore mainloop.
         servertype.create(task_dispatcher, database,