[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/server/server Returning server instance from ServerFactory create method per documentation.

Garrett Smith garrett at mojave-corp.com
Fri Nov 19 14:11:21 EST 2004


Log message for revision 28479:
  Returning server instance from ServerFactory create method per documentation.

Changed:
  U   Zope3/trunk/src/zope/app/server/server.py
  U   Zope3/trunk/src/zope/app/server/servertype.py

-=-
Modified: Zope3/trunk/src/zope/app/server/server.py
===================================================================
--- Zope3/trunk/src/zope/app/server/server.py	2004-11-19 18:36:26 UTC (rev 28478)
+++ Zope3/trunk/src/zope/app/server/server.py	2004-11-19 19:11:21 UTC (rev 28479)
@@ -38,7 +38,7 @@
 
         servertype = zapi.getUtility(IServerType, self.type)
         # The server object self-registers with the asyncore mainloop.
-        servertype.create(
+        return servertype.create(
             self.type,
             task_dispatcher, database,
             self.address[1],

Modified: Zope3/trunk/src/zope/app/server/servertype.py
===================================================================
--- Zope3/trunk/src/zope/app/server/servertype.py	2004-11-19 18:36:26 UTC (rev 28478)
+++ Zope3/trunk/src/zope/app/server/servertype.py	2004-11-19 19:11:21 UTC (rev 28479)
@@ -25,6 +25,8 @@
 
     def create(task_dispatcher, db, port=None, verbose=None):
         """Create the server knowing the port, task dispatcher and the ZODB.
+
+        Returns the new server.
         """
 
 class ServerType(object):
@@ -51,7 +53,7 @@
         if verbose is None:
             verbose = self._defaultVerbose
 
-        self._factory(request_factory, name, '', port,
+        return self._factory(request_factory, name, '', port,
                       task_dispatcher=task_dispatcher,
                       verbose=verbose,
                       hit_log=self._logFactory(),



More information about the Zope3-Checkins mailing list