[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser - browser.zcml:1.1.2.3.2.5 edit.pt:1.1.2.2.14.1
Jim Fulton
jim@zope.com
Wed, 5 Jun 2002 11:18:29 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv20512/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser
Modified Files:
Tag: Zope3InWonderland-branch
browser.zcml edit.pt
Log Message:
Fixed up zcml and pt to reflect new way of defining views.
This changed lots of urls. Also made sure that relative urls
starting with names with :: had a preceeding "./". :-/
Had to modify some py files to accomidate these changes, including
createing some interfaces to use in security assertions.
=== Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser/browser.zcml 1.1.2.3.2.4 => 1.1.2.3.2.5 ===
<browser:defaultView
- name="eval"
+ name="index.html"
for="Zope.App.OFS.Content.ZPTPage.ZPTPage.IZPTPage."
- factory=".ZPTPageEval." />
+ />
- <content class=".ZPTPageEval.">
- <security:require
- permission="Zope.View"
- attributes="index" />
- </content>
+ <browser:view
+ permission="Zope.View"
+ for="Zope.App.OFS.Content.ZPTPage.ZPTPage.IZPTPage."
+ factory=".ZPTPageEval.">
+
+ <browser:page name="index.html" attribute="index" />
+ </browser:view>
<browser:view
- name="edit"
+ permission="Zope.ManageContent"
for="Zope.App.OFS.Content.ZPTPage.ZPTPage.IZPTPage."
- factory=".ZPTPageEdit." />
+ factory=".ZPTPageEdit." >
+
+ <browser:page name="editForm.html" attribute="index" />
+ <browser:page name="edit.html" attribute="action" />
- <content class=".ZPTPageEdit.">
- <security:require
- permission="Zope.View"
- attributes="index action" />
- </content>
+ </browser:view>
<!-- Registering all the field views for the browser -->
=== Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser/edit.pt 1.1.2.2 => 1.1.2.2.14.1 ===
</div>
- <form action="action" method="post">
+ <form action="edit.html" method="post">
<table class="EditTable">
<tbody>