[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/RoleService/Views/Browser - configure.zcml:1.8
Jim Fulton
jim@zope.com
Thu, 11 Jul 2002 14:22:02 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/RoleService/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv7355/lib/python/Zope/App/OFS/Services/RoleService/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/RoleService/Views/Browser/configure.zcml 1.7 => 1.8 ===
<zopeConfigure
xmlns='http://namespaces.zope.org/zope'
xmlns:browser='http://namespaces.zope.org/browser'
+ package="Zope.App.OFS.Services.RoleService"
>
-<browser:defaultView
- for="Zope.App.OFS.Services.RoleService.RoleService.IRoleService"
- name="index.html" />
-
-<browser:view
- permission="Zope.ManageServices"
- for="Zope.App.OFS.Services.RoleService.RoleService.IRoleService"
- factory="Zope.App.OFS.Services.RoleService.Views.Browser.Contents.">
-
- <browser:page name="index.html" attribute="index" />
-
-</browser:view>
-
-<browser:menuItem menu="add_service"
- for="Zope.App.OFS.Container.IAdding."
- title="Role Service" action="RoleService"
- description="Add and manage roles locally to this folder and its subtree."
-/>
-
-<browser:view
- permission="Zope.ManageServices"
- for="Zope.App.OFS.Services.RoleService.RoleService.IRoleService"
- factory="Zope.App.OFS.Services.RoleService.Views.Browser.Add.">
-
- <browser:page name="+" template="add.pt" />
- <browser:page name="action.html" attribute="action" />
-
-</browser:view>
-
-<browser:menuItems menu="zmi_views"
- for="Zope.App.OFS.Services.RoleService.RoleService.IRoleService.">
- <browser:menuItem title="Contents" action="@@index.html"/>
-</browser:menuItems>
+ <browser:menuItem menu="add_component" for="Zope.App.OFS.Container.IAdding."
+ action="RoleService" title="Role Service" />
+
+ <browser:icon
+ name="zmi_icon"
+ for=".RoleService.ILocalRoleService"
+ file="role_service.gif" />
+
+ <browser:defaultView
+ for=".RoleService.IRoleService"
+ name="index.html"
+ />
+
+ <browser:view
+ permission="Zope.ManageServices"
+ for=".RoleService.IRoleService"
+ factory=".Views.Browser.Contents.">
+
+ <browser:page name="index.html" attribute="index" />
+ <browser:page name="removeObjects.html" attribute="removeObjects" />
+
+ </browser:view>
+
+ <browser:view
+ permission="Zope.ManageServices"
+ for=".RoleService.IRoleService"
+ factory=".Views.Browser.Add."
+ >
+
+ <browser:page name="+" template="add.pt" />
+ <browser:page name="action.html" attribute="action" />
+
+ </browser:view>
+
+ <browser:menuItems
+ menu="zmi_views"
+ for=".RoleService.IRoleService.">
+ <browser:menuItem title="Contents" action="@@index.html"/>
+ </browser:menuItems>
</zopeConfigure>