[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/File/Views/Browser - configure.zcml:1.11
Stephan Richter
srichter@cbu.edu
Wed, 10 Jul 2002 23:51:31 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/File/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv4873/lib/python/Zope/App/OFS/Content/File/Views/Browser
Modified Files:
configure.zcml
Log Message:
- Added descriptions to last Services
- Removed old-style menu entries
- Started more aggressivly to convert ZCML to Steve's style suggestions
=== Zope3/lib/python/Zope/App/OFS/Content/File/Views/Browser/configure.zcml 1.10 => 1.11 ===
<zopeConfigure
- xmlns='http://namespaces.zope.org/zope'
- xmlns:browser='http://namespaces.zope.org/browser'
- package="Zope.App.OFS.Content.File"
->
-
- <!-- File View Directives -->
-
- <browser:view
- name="view"
- for=".IFile."
- permission="Zope.View"
- factory=".Views.Browser.FileView." />
-
- <browser:defaultView
- for=".IFile."
- name="view" />
-
- <browser:view
- for=".IFile."
- permission="Zope.View"
- factory=".Views.Browser.FileEdit.">
-
- <browser:page name="editForm.html" attribute="index" />
- <browser:page name="edit.html" attribute="action" />
- </browser:view>
-
- <browser:view
- name="view"
- for=".I18nFile.II18nFile."
- permission="Zope.View"
- factory=".Views.Browser.I18nFileView." />
-
- <browser:view
- for="Zope.App.OFS.Content.File.I18nFile.II18nFile."
- permission="Zope.View"
- factory=".Views.Browser.I18nFileEdit.">
-
- <browser:page name="editForm.html" template="Views/Browser/i18n_edit.pt" />
- <browser:page name="edit.html" attribute="action" />
- </browser:view>
-
-
- <!-- Registering all the field views for the browser -->
-
- <browser:view
- name="DataFieldView"
- for=".IFile."
- factory=".FileFields.DataField.
- Zope.App.Formulator.Widgets.Browser.TextAreaWidget." />
-
- <browser:view
- name="ContentTypeFieldView"
- 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>
-
- <browser:menuItem menu="add_content"
- for="Zope.App.OFS.Container.IAdding."
- title="File" action="File"
- description="A file object, suitable for large data." />
-
- <browser:menuItem menu="add_content"
- for="Zope.App.OFS.Container.IAdding."
- title="I18n File" action="I18nFile"
- description="A file that supports multiple locales." />
-
- <browser:menuItem menu="add_content"
- for="Zope.App.OFS.Container.IAdding."
- title="Naive File" action="NaiveFile"
- description="A simple, non-scalable file." />
+ xmlns="http://namespaces.zope.org/zope"
+ xmlns:browser="http://namespaces.zope.org/browser"
+ package="Zope.App.OFS.Content.File">
+
+<!-- File View Directives -->
+
+<browser:defaultView for=".IFile." name="view" />
+
+<browser:view
+ name="view"
+ for=".IFile."
+ permission="Zope.View"
+ factory=".Views.Browser.FileView." />
+
+<browser:view
+ for=".IFile."
+ permission="Zope.View"
+ factory=".Views.Browser.FileEdit.">
+
+ <browser:page name="editForm.html" attribute="index" />
+ <browser:page name="edit.html" attribute="action" />
+
+</browser:view>
+
+<browser:view
+ name="view"
+ for=".I18nFile.II18nFile."
+ permission="Zope.View"
+ factory=".Views.Browser.I18nFileView." />
+
+<browser:view
+ for="Zope.App.OFS.Content.File.I18nFile.II18nFile."
+ permission="Zope.View"
+ factory=".Views.Browser.I18nFileEdit.">
+
+ <browser:page name="editForm.html" template="Views/Browser/i18n_edit.pt" />
+ <browser:page name="edit.html" attribute="action" />
+
+</browser:view>
+
+
+<!-- Registering all the field views for the browser -->
+
+<browser:view
+ name="DataFieldView"
+ for=".IFile."
+ factory=".FileFields.DataField.
+ Zope.App.Formulator.Widgets.Browser.TextAreaWidget." />
+
+<browser:view
+ name="ContentTypeFieldView"
+ 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>
+
+<browser:menuItem menu="add_content"
+ for="Zope.App.OFS.Container.IAdding."
+ title="File" action="File"
+ description="A file object, suitable for large data." />
+
+<browser:menuItem menu="add_content"
+ for="Zope.App.OFS.Container.IAdding."
+ title="I18n File" action="I18nFile"
+ description="A file that supports multiple locales." />
+
+<browser:menuItem menu="add_content"
+ for="Zope.App.OFS.Container.IAdding."
+ title="Naive File" action="NaiveFile"
+ description="A simple, non-scalable file." />
-
- <browser:icon name="zmi_icon" for=".IFile." file="File_icon.gif" />
+<browser:icon name="zmi_icon" for=".IFile." file="File_icon.gif" />
</zopeConfigure>