[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Image/Views/Browser - configure.zcml:1.8
Stephan Richter
srichter@cbu.edu
Wed, 10 Jul 2002 23:51:33 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Image/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv4873/lib/python/Zope/App/OFS/Content/Image/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/Image/Views/Browser/configure.zcml 1.7 => 1.8 ===
<zopeConfigure
- xmlns='http://namespaces.zope.org/zope'
- xmlns:browser='http://namespaces.zope.org/browser'
- package="Zope.App.OFS.Content.Image"
->
-
- <!-- Image View Directives -->
-
- <browser:view
- name="data"
- for=".Image.IImage."
- permission="Zope.View"
- allowed_attributes="__call__ tag"
- factory=".Views.Browser.ImageData." />
-
- <browser:defaultView
- for=".Image.IImage."
- name="data" />
-
- <browser:view
- for=".Image.IImage."
- permission="Zope.ManageContent"
- factory=".Views.Browser.ImageEdit.">
-
- <browser:page
- name="editForm.html"
- attribute="index" />
- <browser:page
- name="edit.html"
- attribute="action" />
- </browser:view>
-
- <!-- Formulator directives -->
-
- <browser:view
- name="DataFieldView"
- for=".Image.IImage."
- factory=".ImageFields.DataField.
- Zope.App.Formulator.Widgets.Browser.FileWidget." />
-
- <browser:view
- name="ContentTypeFieldView"
- for=".Image.IImage."
- factory=".ImageFields.ContentTypeField.
- Zope.App.Formulator.Widgets.Browser.TextWidget." />
-
- <!-- I18n Image View Directives -->
-
- <browser:view
- name="data"
- for="Zope.App.OFS.Content.Image.I18nImage.II18nImage"
- permission="Zope.View"
- allowed_attributes="__call__ tag"
- factory=".Views.Browser.I18nImageData." />
-
- <browser:defaultView
- for="Zope.App.OFS.Content.Image.I18nImage.II18nImage"
- name="data" />
-
- <browser:view
- for="Zope.App.OFS.Content.Image.I18nImage.II18nImage"
- permission="Zope.ManageContent"
- factory=".Views.Browser.I18nImageEdit.">
-
- <browser:page
- name="editForm.html"
- template="Views/Browser/i18n_edit.pt" />
- <browser:page
- name="edit.html"
- attribute="action" />
- </browser:view>
-
- <!-- tabs for image -->
-
- <browser:menuItems menu="zmi_views" for=".Image.IImage.">
- <browser:menuItem title="Edit" action="editForm.html"/>
- <browser:menuItem title="View" action="."/>
- <browser:menuItem title="Role Permissions"
- action="AllRolePermissions.html"/>
- </browser:menuItems>
-
- <browser:icon name="zmi_icon" for=".Image.IImage." file="Image_icon.gif" />
-
- <browser:menuItem menu="add_content"
- for="Zope.App.OFS.Container.IAdding."
- title="Image" action="Image"
- description="This object helps you manage your images." />
-
- <browser:menuItem menu="add_content"
- for="Zope.App.OFS.Container.IAdding."
- title="I18n Image" action="I18nImage"
- description="A multi-locale version of an Image." />
+ xmlns="http://namespaces.zope.org/zope"
+ xmlns:browser="http://namespaces.zope.org/browser"
+ package="Zope.App.OFS.Content.Image">
+
+<!-- Image View Directives -->
+
+<browser:view
+ name="data"
+ for=".Image.IImage."
+ permission="Zope.View"
+ allowed_attributes="__call__ tag"
+ factory=".Views.Browser.ImageData." />
+
+<browser:defaultView for=".Image.IImage." name="data" />
+
+<browser:view
+ for=".Image.IImage."
+ permission="Zope.ManageContent"
+ factory=".Views.Browser.ImageEdit.">
+
+ <browser:page name="editForm.html" attribute="index" />
+ <browser:page name="edit.html" attribute="action" />
+
+</browser:view>
+
+<!-- Formulator directives -->
+
+<browser:view
+ name="DataFieldView"
+ for=".Image.IImage."
+ factory=".ImageFields.DataField.
+ Zope.App.Formulator.Widgets.Browser.FileWidget." />
+
+<browser:view
+ name="ContentTypeFieldView"
+ for=".Image.IImage."
+ factory=".ImageFields.ContentTypeField.
+ Zope.App.Formulator.Widgets.Browser.TextWidget." />
+
+<!-- I18n Image View Directives -->
+
+<browser:view
+ name="data"
+ for="Zope.App.OFS.Content.Image.I18nImage.II18nImage"
+ permission="Zope.View"
+ allowed_attributes="__call__ tag"
+ factory=".Views.Browser.I18nImageData." />
+
+<browser:defaultView
+ for="Zope.App.OFS.Content.Image.I18nImage.II18nImage"
+ name="data" />
+
+<browser:view
+ for="Zope.App.OFS.Content.Image.I18nImage.II18nImage"
+ permission="Zope.ManageContent"
+ factory=".Views.Browser.I18nImageEdit.">
+
+ <browser:page name="editForm.html" template="Views/Browser/i18n_edit.pt" />
+ <browser:page name="edit.html" attribute="action" />
+
+</browser:view>
+
+<!-- tabs for image -->
+
+<browser:menuItems menu="zmi_views" for=".Image.IImage.">
+ <browser:menuItem title="Edit" action="editForm.html"/>
+ <browser:menuItem title="View" action="."/>
+ <browser:menuItem title="Role Permissions"
+ action="AllRolePermissions.html"/>
+</browser:menuItems>
+
+<browser:icon name="zmi_icon" for=".Image.IImage." file="Image_icon.gif" />
+
+<browser:menuItem menu="add_content"
+ for="Zope.App.OFS.Container.IAdding."
+ title="Image" action="Image"
+ description="This object helps you manage your images." />
+
+<browser:menuItem menu="add_content"
+ for="Zope.App.OFS.Container.IAdding."
+ title="I18n Image" action="I18nImage"
+ description="A multi-locale version of an Image." />
</zopeConfigure>