[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - configure.zcml:1.15
Jim Fulton
jim@zope.com
Tue, 21 Jan 2003 16:45:37 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/services
In directory cvs.zope.org:/tmp/cvs-serv13398/browser/services
Modified Files:
configure.zcml
Log Message:
Added permission to the schema for TTW view and page configurations.
Updated pages to use the permisssion.
Changed TTW views and pages to use "class" rather than "factory",
where a class is just a mix-in class. It need not provide a standard
__init__ or mix in BrowserView.
Made it possible to change the class.
Removed the presentation type from page configurations. The
persentation type is always IBrowserPresentation.
=== Zope3/src/zope/app/browser/services/configure.zcml 1.14 => 1.15 ===
--- Zope3/src/zope/app/browser/services/configure.zcml:1.14 Mon Jan 20 17:38:35 2003
+++ Zope3/src/zope/app/browser/services/configure.zcml Tue Jan 21 16:45:04 2003
@@ -347,7 +347,7 @@
name="ItemEdit"
label="View"
permission="zope.ManageServices"
- fields="forInterface viewName presentationType factoryName layer
+ fields="forInterface viewName presentationType class_ layer permission
title status"
/>
@@ -362,12 +362,13 @@
schema = "zope.app.interfaces.services.interfaces.IViewConfiguration"
name= "ViewConfiguration"
content_factory = ".view.ViewConfiguration"
- keyword_arguments = "forInterface presentationType factoryName viewName"
+ keyword_arguments = "forInterface presentationType class_
+ viewName permission"
set_before_add = "layer"
label = "Configure a view"
permission="zope.ManageServices"
fields="forInterface viewName presentationType
- factoryName layer title status description"
+ class_ layer permission title status description"
/>
<browser:menuItem
@@ -408,7 +409,7 @@
name="ItemEdit"
label="Page"
permission="zope.ManageServices"
- fields="forInterface viewName presentationType factoryName layer
+ fields="forInterface viewName class_ layer permission
title status"
/>
@@ -423,13 +424,12 @@
schema = "zope.app.interfaces.services.interfaces.IPageConfiguration"
name= "PageConfiguration"
content_factory = ".view.PageConfiguration"
- keyword_arguments = "forInterface presentationType factoryName
- viewName"
+ keyword_arguments = "forInterface class_ viewName permission"
set_before_add = "template layer"
label = "Configure a view page"
permission="zope.ManageServices"
- fields="forInterface viewName presentationType
- template factoryName layer title status description"
+ fields="forInterface viewName
+ template class_ layer permission title status description"
/>
<browser:menuItem