[Zope3-checkins] CVS: Zope3 - z3.py:1.4.4.1

Jim Fulton jim@zope.com
Thu, 10 Oct 2002 00:43:56 -0400


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv16171

Modified Files:
      Tag: FileSystemSync-branch
	z3.py 
Log Message:
Initial exploratory prototype code

=== Zope3/z3.py 1.4 => 1.4.4.1 ===
--- Zope3/z3.py:1.4	Tue Aug 13 13:46:12 2002
+++ Zope3/z3.py	Thu Oct 10 00:43:25 2002
@@ -43,22 +43,13 @@
     # temp hack
     dir = os.getcwd()
 
-    from Zope.Configuration.xmlconfig import XMLConfig
-
-    # 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 server-independent site config
-    XMLConfig(os.path.join(dir, 'site.zcml'))()
+    # Do global software config
+    from Zope.App import config
+    config('site.zcml')
     
     # Load server config
+    from Zope.Configuration.xmlconfig import XMLConfig
     XMLConfig(os.path.join(dir, 'zserver.zcml'))()
-
-    # Reset user
-    from Zope.Security.SecurityManagement import noSecurityManager
-    noSecurityManager()
 
     try:
         asyncore.loop()