[Zope-Checkins] CVS: Zope3 - startup.zcml:1.1.2.2

Stephan Richter srichter@cbu.edu
Sat, 30 Mar 2002 02:02:16 -0500


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

Modified Files:
      Tag: Zope-3x-branch
	startup.zcml 
Log Message:
I played with the startup directives some more and separated the programmer
directives from the site admins. One can now easily create new sites
without knowing anything about Zope. The only thing s/he has to know is the
name of the server (i.e. Browser) s/he wants to start for a particular
site.

There is also registries now for RequestFactories and and ServerTypes, so 
that third party programmers can easily add their own request factories and
server types to the system by calling a couple of directives. That makes it
also really plugable, since one could simply exchange the Logger of a server
without much hassle.

Also, each storage type has its own directive now, since arguments for the
constructors of the storages greatly vary. 

Note: The directives now are probably not flexible enough for future use,
      but we can add complexity as we need it later.  



=== Zope3/startup.zcml 1.1.2.1 => 1.1.2.2 ===
-   xmlns="http://namespaces.zope.org/zope"
-   xmlns:startup="http://namespaces.zope.org/startup">
-
-
-  <startup:defineSite name="Zope 3 Default"
-                      threads="4">
-
-    <startup:useStorage factory = "ZODB.FileStorage."
-                        file = "Data.fs" />
-
-    <startup:useLog file="STDERR" />
-
-    <startup:addServer type = "Browser"
-                       port = "8080"
-                       verbose = "true"
-                       logClass = "Zope.Server.HTTPServer.CommonHitLogger." />
-
-    <startup:addServer type = "XML-RPC"
-                       port = "8081"
-                       verbose = "true"
-                       logClass = "Zope.Server.HTTPServer.CommonHitLogger." />
-
-
-  </startup:defineSite>
-
-
-</zopeConfigure>
+<zopeConfigure
+   xmlns="http://namespaces.zope.org/zope"
+   xmlns:startup="http://namespaces.zope.org/startup">
+
+
+  <startup:defineSite name="Zope 3 Default"
+                      threads="4">
+
+    <startup:useFileStorage file = "Data.fs" />
+
+    <startup:useLog file="STDERR" />
+
+    <startup:addServer type = "Browser" port = "8080" />
+    <startup:addServer type = "XML-RPC" port = "8081" />
+
+
+  </startup:defineSite>
+
+
+</zopeConfigure>