[Zope-Checkins] CVS: Zope3/lib/python/Zope/App - config.py:1.1.2.1

Jim Fulton jim@zope.com
Mon, 19 Nov 2001 16:46:04 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App
In directory cvs.zope.org:/tmp/cvs-serv6009

Added Files:
      Tag: Zope-3x-branch
	config.py 
Log Message:
Checked in so Brian could try out.


=== Added File Zope3/lib/python/Zope/App/config.py ===
"""Initialize the Zope application
"""

# Later, we'll factor this some more.

import os
from Zope.Configuration.xmlconfig import xmlconfig

def config(dir):
    from Zope.ComponentArchitecture.metaConfigure import metaConfigure
    metaConfigure()
    from Zope.ZMI.metaConfigure import metaConfigure
    metaConfigure()
    from Zope.Publisher.Browser.metaConfigure import metaConfigure
    metaConfigure()
    from Zope.Security.metaConfigure import metaConfigure
    metaConfigure()

    file=open(os.path.join(dir, 'zope.zcml'))
    xmlconfig(file)