[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - run.py:1.5
Shane Hathaway
shane at zope.com
Tue Feb 3 15:32:50 EST 2004
Update of /cvs-repository/Zope/lib/python/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv10216/lib/python/Zope/Startup
Modified Files:
run.py
Log Message:
Until now, the security-policy-implementation directive had no effect.
When Implementation.py set the default policy, it set the
_implementation_set flag, preventing further changes. Also,
Zope.Startup.run.configure() was not applying the security options.
=== Zope/lib/python/Zope/Startup/run.py 1.4 => 1.5 ===
--- Zope/lib/python/Zope/Startup/run.py:1.4 Sun Dec 21 19:26:38 2003
+++ Zope/lib/python/Zope/Startup/run.py Tue Feb 3 15:32:49 2004
@@ -23,9 +23,11 @@
Zope before attempting to do 'app = Zope.app(). Should be used as
follows: from Zope.Startup.run import configure;
configure('/path/to/configfile'); import Zope; app = Zope.app() """
- from Zope.Startup import dropPrivileges
+ from Zope.Startup import ZopeStarter
opts = _setconfig(configfile)
- dropPrivileges(opts.configroot)
+ starter = ZopeStarter(opts.configroot)
+ starter.setupSecurityOptions()
+ starter.dropPrivileges()
def _setconfig(configfile=None):
""" Configure a Zope instance based on ZopeOptions. Optionally
More information about the Zope-Checkins
mailing list