[Zope-Checkins] SVN: Zope/trunk/lib/python/Zope2/Startup/handlers.py Remove use of deprecated module.

Tres Seaver tseaver at palladion.com
Mon Jan 16 12:50:57 EST 2006


Log message for revision 41330:
  Remove use of deprecated module.

Changed:
  U   Zope/trunk/lib/python/Zope2/Startup/handlers.py

-=-
Modified: Zope/trunk/lib/python/Zope2/Startup/handlers.py
===================================================================
--- Zope/trunk/lib/python/Zope2/Startup/handlers.py	2006-01-16 17:35:51 UTC (rev 41329)
+++ Zope/trunk/lib/python/Zope2/Startup/handlers.py	2006-01-16 17:50:57 UTC (rev 41330)
@@ -175,8 +175,8 @@
 
     # Augment the set of MIME types:
     if config.mime_types:
-        import OFS.content_types
-        OFS.content_types.add_files(config.mime_types)
+        from zope.app.contenttypes import add_files
+        add_files(config.mime_types)
 
     # if no servers are defined, create default http server and ftp server
     if not config.servers:



More information about the Zope-Checkins mailing list