[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser - browser.zcml:1.1.2.3.2.3

Steve Alexander steve@cat-box.net
Mon, 3 Jun 2002 18:57:49 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv30105/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser

Modified Files:
      Tag: Zope3InWonderland-branch
	browser.zcml 
Log Message:
wonderland updates to zcml files.


=== Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser/browser.zcml 1.1.2.3.2.2 => 1.1.2.3.2.3 ===
   <!-- ZPT Page View Directives -->
 
-  <browser:defaultView name="eval"
-    for="Zope.App.OFS.Content.ZPTPage.ZPTPage.IZPTPage."
-    factory=".ZPTPageEval." />
-
-  <security:protectClass 
-    class=".ZPTPageEval."
-    permission="Zope.View" names="index" />
-
-  <browser:view name="edit"
-    for="Zope.App.OFS.Content.ZPTPage.ZPTPage.IZPTPage."
-    factory=".ZPTPageEdit." />
-
-  <security:protectClass 
-    class=".ZPTPageEdit."
-    permission="Zope.View" names="index action" />
-
+  <browser:defaultView
+      name="eval"
+      for=".ZPTPage.IZPTPage."
+      factory=".ZPTPageEval." />
+
+  <content class=".ZPTPageEval.">
+    <security:require
+        permission="Zope.View"
+        attributes="index" />
+  </content>
+
+  <browser:view
+      name="edit"
+      for=".ZPTPage.IZPTPage."
+      factory=".ZPTPageEdit." />
+
+  <content class=".ZPTPageEdit."
+    <security:require
+        permission="Zope.View"
+        attributes="index action" />
+  </content>
 
   <!-- Registering all the field views for the browser -->
 
-  <browser:view name="SourceFieldView"
-    for="Zope.App.OFS.Content.ZPTPage.ZPTPage.IZPTPage."
-    factory="Zope.App.OFS.Content.ZPTPage.ZPTPageFields.SourceField. 
-             Zope.App.Formulator.Widgets.Browser.TextAreaWidget." />
+  <browser:view
+      name="SourceFieldView"
+      for=".ZPTPage.IZPTPage."
+      factory=".ZPTPageFields.SourceField. 
+               Zope.App.Formulator.Widgets.Browser.TextAreaWidget." />
 
 </zopeConfigure>