[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser - browser.zcml:1.1.4.2.2.1 contents.pt:1.1.4.1.6.1 limit.pt:1.1.4.1.6.1 loaded_folder_contents.pt:1.1.4.1.6.1
Jim Fulton
jim@zope.com
Sun, 2 Jun 2002 10:35:18 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv29793/lib/python/Zope/App/OFS/Content/Folder/Views/Browser
Modified Files:
Tag: Zope3InWonderland-branch
browser.zcml contents.pt limit.pt loaded_folder_contents.pt
Log Message:
- Added template attribute to allow views to be created from a
template source file.
- Added beginnings of a Zope debugger. This required seperating site
and server configuration.
- Added the ability to specify a config file package in the
zopeConfigure directive. Made "config.zcml" a default for the file
attribute in the include directive.
- Fixed mapply to unwrap proxied objects. This was necessary once
views became wrapped in proxies. We need to investigate why they
weren't being wrapped before.
- I updated enough system page templates and zcml directives so that:
- Zope now starts. :)
- The root folder contents listing can be viewed.
Many more templates and zcml files need to be updated to reflect the
way views are now handled.
=== Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/browser.zcml 1.1.4.2 => 1.1.4.2.2.1 ===
<!-- Folder View Directives -->
+
+ <browser:defaultView
+ for="Zope.App.OFS.Content.Folder.Folder.IFolder."
+ name="index.html" />
- <browser:defaultView name="contents"
+ <browser:view
for="Zope.App.OFS.Content.Folder.Folder.IFolder."
- factory=".FolderContents." />
-
- <security:protectClass
- class=".FolderContents."
permission_id="Zope.ManageContent"
- names="index, addServiceManager"/>
-
- <browser:view name="adder"
- for="Zope.App.OFS.Content.Folder.Folder.IFolder."
- factory=".FolderAdder." />
+ factory=".FolderContents.">
+
+ <browser:page name="index.html"
+ attribute="index"
+ />
+ <browser:page name="addServiceManager.html"
+ attribute="addServiceManager"
+ />
- <security:protectClass
- class=".FolderAdder."
+ </browser:view>
+
+ <browser:view
+ for="Zope.App.OFS.Content.Folder.Folder.IFolder."
permission_id="Zope.ManageContent"
- names="index" />
+ factory=".FolderAdder." >
+
+ <browser:page name="addForm.html"
+ attribute="index"
+ />
+ <browser:page name="add.html"
+ attribute="action"
+ />
+ </browser:view>
<!-- Loaded Folder View Directives -->
+
+ <browser:defaultView
+ for="Zope.App.OFS.Content.Folder.LoadedFolder.ILoadedFolder."
+ name="index.html" />
- <browser:defaultView name="contents"
+ <browser:view
for="Zope.App.OFS.Content.Folder.LoadedFolder.ILoadedFolder."
- factory=".LoadedFolderContents." />
-
- <security:protectClass
- class=".LoadedFolderContents."
permission_id="Zope.View"
- names="index, moveObjectsUp, moveObjectsDown, moveObjectsToTop,
- moveObjectsToBottom" />
+ factory=".LoadedFolderContents.">
- <browser:view name="limit"
- for="Zope.App.OFS.Container.IContainerLimit."
- factory=".FolderLimitEdit." />
+ <browser:page name="index.html"
+ attribute="index"
+ />
+
+ </browser:view>
- <security:protectClass
- class=".FolderLimitEdit."
+ <browser:view
+ for="Zope.App.OFS.Container.IContainerLimit."
permission_id="Zope.ManageContent"
- names="index, action, getFieldViews" />
+ factory=".FolderLimitEdit.">
+
+ <browser:page name="FolderLimitEditForm"
+ attribute="index"
+ />
+ <browser:page name="SetFolderLimit.html"
+ attribute="action"
+ />
+
+ </browser:view>
<browser:view name="LimitFieldView"
for="Zope.App.OFS.Container.IContainerLimit."
factory="Zope.App.OFS.Content.Folder.LoadedFolderFields.LimitField.
Zope.App.Formulator.Widgets.Browser.TextWidget." />
-
- <browser:view name="adder"
- for="Zope.App.OFS.Content.Folder.LoadedFolder.ILoadedFolder."
- factory=".FolderAdder." />
-
- <security:protectClass
- class=".FolderAdder."
- permission_id="Zope.ManageContent"
- names="index, confirmed, action, listAddableInfo" />
</zopeConfigure>
=== Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/contents.pt 1.1.4.1 => 1.1.4.1.6.1 ===
<div metal:fill-slot="body">
-<form action="" method="get">
+<form action="view::index.html" method="get">
<table class="ContentListing">
- <caption>Folder Contents <a href="../adder;view"> Add... </a> </caption>
+ <caption>Folder Contents <a href="../view::adder"> Add... </a> </caption>
<tbody>
@@ -81,8 +81,9 @@
i18n:attributes="value string:menu_delete_button">
</form>
-<p><a href="../Services;etc/" tal:condition="context/hasServiceManager">Services</a>
-<a href="addServiceManager" tal:condition="not: context/hasServiceManager">Allow Services</a>
+<p><a href="./etc::Services/" tal:condition="context/hasServiceManager">Services</a>
+<a href="view::addServiceManager.html"
+ tal:condition="not: context/hasServiceManager">Allow Services</a>
</p>
</div>
</body>
=== Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/limit.pt 1.1.4.1 => 1.1.4.1.6.1 ===
</div>
- <form action="action" method="post">
+ <form action="SetFolderLimit.html" method="post">
<table class="EditTable">
<tbody>
=== Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/loaded_folder_contents.pt 1.1.4.1 => 1.1.4.1.6.1 ===
<div metal:fill-slot="body">
-<form action="../contents;view" method="post">
+<form action="::index.html" method="post">
<table class="ContentListing">
- <caption>Folder Contents <a href="../adder;view"> Add... </a> </caption>
+ <caption>Folder Contents <a href="../view::adder"> Add... </a> </caption>
<tbody>