[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/ConnectionService/Views/Browser - configure.zcml:1.4
Jim Fulton
jim@zope.com
Thu, 11 Jul 2002 14:22:01 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/ConnectionService/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv7355/lib/python/Zope/App/OFS/Services/ConnectionService/Views/Browser
Modified Files:
configure.zcml
Log Message:
Reimplemented service managers to be package based. Service managers
are no longer containers. They have a packages subobject (not a
packages service) that contains packages. TTW components are created
in packages. To register a component, create the appropriate component
directive objects (these should be called configuration objects).
This should be viewed as a prototype to illustrate the idea of
packages. Lots of things can change (especially UI) and many things
aren't done (e.g. visiting created directives).
In the course of this, I fixed a bunch of bugs and problems in
traversal machinery.
I also renamed Zope.ComponentArchitecture.IServiceManager back to
IServiceService, since this interface doesn't actually specify any
management.
=== Zope3/lib/python/Zope/App/OFS/Services/ConnectionService/Views/Browser/configure.zcml 1.3 => 1.4 ===
<!-- Handle all Connection Service configuration -->
-<browser:menu id="add_connection"
- title="Menu for adding new database connections." />
+ <browser:menu id="add_connection"
+ title="Menu for adding new database connections." />
-<browser:defaultView
- for=".ConnectionService.ILocalConnectionService"
- name="index.html" />
-
-<browser:view
- permission="Zope.ManageServices"
- for=".ConnectionService.ILocalConnectionService"
- factory="Zope.App.OFS.Container.Views.Browser.Contents.">
-
- <browser:page name="index.html" attribute="index" />
-
-</browser:view>
-
-<browser:view
- name="+"
- for=".ConnectionService.ILocalConnectionService"
- permission="Zope.ManageContent"
- factory=".Views.Browser.Adding." >
-
- <browser:page name="index.html" attribute="index" />
- <browser:page name="action.html" attribute="action" />
-
-</browser:view>
-
-<browser:menuItem menu="add_service" for="Zope.App.OFS.Container.IAdding."
- action="ConnectionService" title="RDBMS Connection Service"
- description="A Persistent RDBMS Connection Service for TTW development" />
-
-
-<!-- Handle all generic Database Adapter configuration -->
-
-<browser:defaultView for="Zope.App.RDB.IZopeDatabaseAdapter."
- name="editForm.html" />
-
-<browser:view
- for="Zope.App.RDB.IZopeDatabaseAdapter."
- permission="Zope.View"
- factory=".Views.Browser.Connection.">
- <browser:page name="editForm.html"
- template="Views/Browser/connection.pt" />
- <browser:page name="edit.html" attribute="edit" />
- <browser:page name="connect.html" attribute="connect" />
- <browser:page name="disconnect.html" attribute="disconnect" />
-</browser:view>
-
-<browser:view
- for="Zope.App.RDB.IZopeDatabaseAdapter."
- permission="Zope.View"
- factory=".Views.Browser.TestSQL.">
- <browser:page name="testForm.html" template="Views/Browser/testSQL.pt" />
- <browser:page name="test.html" template="Views/Browser/testResults.pt" />
-</browser:view>
-
-<browser:menuItems menu="zmi_views" for="Zope.App.RDB.IZopeDatabaseAdapter.">
- <browser:menuItem title="Edit" action="editForm.html"/>
- <browser:menuItem title="Test" action="testForm.html"/>
-</browser:menuItems>
+ <browser:defaultView
+ for=".ConnectionService.ILocalConnectionService"
+ name="index.html" />
+
+ <browser:view
+ permission="Zope.ManageServices"
+ for=".ConnectionService.ILocalConnectionService"
+ factory="Zope.App.OFS.Container.Views.Browser.Contents.">
+
+ <browser:page name="index.html" attribute="index" />
+
+ </browser:view>
+
+ <browser:view
+ name="+"
+ for=".ConnectionService.ILocalConnectionService"
+ permission="Zope.ManageContent"
+ factory=".Views.Browser.Adding." >
+
+ <browser:page name="index.html" attribute="index" />
+ <browser:page name="action.html" attribute="action" />
+
+ </browser:view>
+
+ <browser:menuItem menu="add_component" for="Zope.App.OFS.Container.IAdding."
+ action="ConnectionService" title="RDBMS Connection Service"
+ description="A Persistent RDBMS Connection Service for TTW
+ development"
+ />
+
+
+ <!-- Handle all generic Database Adapter configuration -->
+
+ <browser:defaultView for="Zope.App.RDB.IZopeDatabaseAdapter."
+ name="editForm.html" />
+
+ <browser:view
+ for="Zope.App.RDB.IZopeDatabaseAdapter."
+ permission="Zope.View"
+ factory=".Views.Browser.Connection.">
+ <browser:page name="editForm.html"
+ template="Views/Browser/connection.pt" />
+ <browser:page name="edit.html" attribute="edit" />
+ <browser:page name="connect.html" attribute="connect" />
+ <browser:page name="disconnect.html" attribute="disconnect" />
+ </browser:view>
+
+ <browser:view
+ for="Zope.App.RDB.IZopeDatabaseAdapter."
+ permission="Zope.View"
+ factory=".Views.Browser.TestSQL.">
+ <browser:page name="testForm.html" template="Views/Browser/testSQL.pt" />
+ <browser:page name="test.html" template="Views/Browser/testResults.pt" />
+ </browser:view>
+
+ <browser:menuItems menu="zmi_views" for="Zope.App.RDB.IZopeDatabaseAdapter.">
+ <browser:menuItem title="Edit" action="editForm.html"/>
+ <browser:menuItem title="Test" action="testForm.html"/>
+ </browser:menuItems>
</zopeConfigure>