[Zope3-checkins] CVS: Zope3/utilities - makezcmldocs.py:1.3
R. David Murray
bitz@bitdance.com
Wed, 6 Nov 2002 18:13:00 -0500
Update of /cvs-repository/Zope3/utilities
In directory cvs.zope.org:/tmp/cvs-serv21021
Modified Files:
makezcmldocs.py
Log Message:
Switch makezcmldocs over to using Jim's new Zope.App.configire utility.
=== Zope3/utilities/makezcmldocs.py 1.2 => 1.3 ===
--- Zope3/utilities/makezcmldocs.py:1.2 Wed Nov 6 17:30:23 2002
+++ Zope3/utilities/makezcmldocs.py Wed Nov 6 18:12:59 2002
@@ -42,6 +42,8 @@
# Now for the z3 imports.
from Zope.Configuration.meta import _directives
+from Zope.Configuration.xmlconfig import XMLConfig
+from Zope.App import config
from Zope.Configuration.metametaConfigureForDocgen import _metadataKey
# Some additional useful names.
@@ -119,16 +121,9 @@
def run(argv=sys.argv):
- from Zope.Configuration.xmlconfig import XMLConfig
+ # Do global software config for Zope package in docgen mode.
+ config(os.path.join(here, 'makezcmldocs.zcml'))
- # Set user to system_user, so we can do anything we want
- from Zope.Security.SecurityManagement import system_user
- from Zope.Security.SecurityManagement import newSecurityManager
- newSecurityManager(system_user)
-
- # Load the zcml for the Zope package in docgen mode.
- XMLConfig(os.path.join(here, 'makezcmldocs.zcml'))()
-
# Build the meta docs from the contents of the directive registry.
if not os.path.exists(treeroot): os.mkdir(treeroot)
for directive in _directives: