[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/ApplicationControl/ServerControl - ServerControl.py:1.1.2.2.8.1 server-control.zcml:1.1.2.3.2.4
Jim Fulton
jim@zope.com
Wed, 5 Jun 2002 11:18:24 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/ApplicationControl/ServerControl
In directory cvs.zope.org:/tmp/cvs-serv20512/lib/python/Zope/App/OFS/ApplicationControl/ServerControl
Modified Files:
Tag: Zope3InWonderland-branch
ServerControl.py server-control.zcml
Log Message:
Fixed up zcml and pt to reflect new way of defining views.
This changed lots of urls. Also made sure that relative urls
starting with names with :: had a preceeding "./". :-/
Had to modify some py files to accomidate these changes, including
createing some interfaces to use in security assertions.
=== Zope3/lib/python/Zope/App/OFS/ApplicationControl/ServerControl/ServerControl.py 1.1.2.2 => 1.1.2.2.8.1 ===
"""simple shutdown logger"""
zLOG.LOG("ServerControl", zLOG.INFO, "Server is going to be shut down.")
-
-ServerController = ServerController = ServerControl()
=== Zope3/lib/python/Zope/App/OFS/ApplicationControl/ServerControl/server-control.zcml 1.1.2.3.2.3 => 1.1.2.3.2.4 ===
>
- <content class=".ServerControl.">
- <security:require
- permission="Zope.ManageApplication"
- interface=".IServerControl." />
- </content>
-
- <utility component=".ServerControl.ServerController"
+ <utility factory=".ServerControl.ServerControl"
+ permission="Zope.ManageApplication"
provides=".IServerControl." />
<!-- Hint: Here you see how to register something on Zope shutdown -->