[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - handlers.py:1.1.2.6

Fred L. Drake, Jr. fred@zope.com
Tue, 28 Jan 2003 14:27:05 -0500


Update of /cvs-repository/Zope/lib/python/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv14722

Modified Files:
      Tag: chrism-install-branch
	handlers.py 
Log Message:
Update to the current ZConfig API and reflect the change to use
hyphens instead of underscores in the type names.

A cleaner fix is needed, but this makes the server sections work
again.


=== Zope/lib/python/Zope/Startup/handlers.py 1.1.2.5 => 1.1.2.6 ===
--- Zope/lib/python/Zope/Startup/handlers.py:1.1.2.5	Mon Jan 27 12:54:27 2003
+++ Zope/lib/python/Zope/Startup/handlers.py	Tue Jan 28 14:27:02 2003
@@ -154,7 +154,8 @@
         l = []
 
         for section in config.servers:
-            server_type = section.__type__.name
+            # XXX ugly; need to clean this up soon
+            server_type = section.getSectionType().replace("-", "_")
             for server_factory in getattr(factory, server_type)(section):
                 l.append((server_type, server_factory))