[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/File/Views/Browser - configure.zcml:1.2
Jim Fulton
jim@zope.com
Tue, 18 Jun 2002 15:35:26 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/File/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv23687/lib/python/Zope/App/OFS/Content/File/Views/Browser
Modified Files:
configure.zcml
Log Message:
implemented
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ContentSensitiveBrowserMenuConfigurationDirectives
=== Zope3/lib/python/Zope/App/OFS/Content/File/Views/Browser/configure.zcml 1.1 => 1.2 ===
xmlns:security='http://namespaces.zope.org/security'
xmlns:browser='http://namespaces.zope.org/browser'
+ package="Zope.App.OFS.Content.File"
>
<!-- File View Directives -->
<browser:defaultView
name="view"
- for="Zope.App.OFS.Content.File.IFile."
+ for=".IFile."
permission="Zope.View"
- factory=".FileView." />
+ factory=".Views.Browser.FileView." />
<browser:view
name="edit"
- for="Zope.App.OFS.Content.File.IFile."
+ for=".IFile."
permission="Zope.View"
- factory=".FileEdit.">
+ factory=".Views.Browser.FileEdit.">
<browser:page name="editForm.html" attribute="index" />
<browser:page name="edit.html" attribute="action" />
@@ -26,14 +27,21 @@
<browser:view
name="DataFieldView"
- for="Zope.App.OFS.Content.File.IFile."
- factory="Zope.App.OFS.Content.File.FileFields.DataField.
+ for=".IFile."
+ factory=".FileFields.DataField.
Zope.App.Formulator.Widgets.Browser.TextAreaWidget." />
<browser:view
name="ContentTypeFieldView"
- for="Zope.App.OFS.Content.File.IFile."
- factory="Zope.App.OFS.Content.File.FileFields.ContentTypeField.
+ for=".IFile."
+ factory=".FileFields.ContentTypeField.
Zope.App.Formulator.Widgets.Browser.TextWidget." />
+
+ <browser:menuItems menu="zmi_views" for=".IFile.">
+ <browser:menuItem title="View" action="."/>
+ <browser:menuItem title="Edit" action="editForm.html"/>
+ <browser:menuItem title="Role Permissions"
+ action="AllRolePermissions.html"/>
+ </browser:menuItems>
</zopeConfigure>