[Zope-CVS] CVS: Packages/JobBoardI18n - Tutorial.html:1.2 configure.zcml:1.4
Steve Alexander
steve@cat-box.net
Tue, 18 Jun 2002 12:57:52 -0400
Update of /cvs-repository/Packages/JobBoardI18n
In directory cvs.zope.org:/tmp/cvs-serv9981
Modified Files:
Tutorial.html configure.zcml
Log Message:
reformatted configure.zcml to use the recommended style.
Updated tutorial accordingly.
=== Packages/JobBoardI18n/Tutorial.html 1.1 => 1.2 ===
<pre>
-<browser:view name="index.html"
- for=".IJob."
- template="JobView.pt"
- permission="Zope.View"
- />
+<browser:view
+ name="index.html"
+ for=".IJob."
+ template="JobView.pt"
+ permission="Zope.View" />
</pre>
<p>This tells Zope that there is a view named index.html which applies
@@ -164,9 +164,7 @@
view for such objects:
<pre>
-<browser:defaultView for=".IJob."
- name="index.html"
- />
+<browser:defaultView for=".IJob." name="index.html" />
</pre>
@@ -223,15 +221,13 @@
by the following configuration directives:
<pre>
-<browser:view name="index.html"
- for=".IJobList."
- template="JobListView.pt"
- permission="Zope.View"
- />
-
-<browser:defaultView for=".IJobList."
- name="index.html"
- />
+<browser:view
+ name="index.html"
+ for=".IJobList."
+ template="JobListView.pt"
+ permission="Zope.View" />
+
+<browser:defaultView for=".IJobList." name="index.html" />
</pre>
@@ -328,15 +324,14 @@
following configuration directives:
<pre>
-<browser:view for=".IJobList."
- factory=".JobCreateView."
- permission="Zope.ManageContent"
- >
+<browser:view
+ for=".IJobList."
+ factory=".JobCreateView."
+ permission="Zope.ManageContent">
<browser:page name="edit.html" attribute="edit" />
<browser:page name="preview.html" attribute="preview" />
<browser:page name="create.method" attribute="create" />
-
</browser:view>
</pre>
@@ -387,14 +382,13 @@
directives for a change:
<pre>
-<browser:view for=".IJobList."
- factory=".ApproveJobsView."
- permission="Zope.ManageContent"
- >
+<browser:view
+ for=".IJobList."
+ factory=".ApproveJobsView."
+ permission="Zope.ManageContent">
<browser:page name="review.html" attribute="review" />
<browser:page name="approve.method" attribute="approve" />
-
</browser:view>
</pre>
=== Packages/JobBoardI18n/configure.zcml 1.3 => 1.4 ===
- xmlns='http://namespaces.zope.org/zope'
- xmlns:zmi='http://namespaces.zope.org/zmi'
- xmlns:security='http://namespaces.zope.org/security'
- xmlns:browser='http://namespaces.zope.org/browser'
- xmlns:gts='http://namespaces.zope.org/gts'
+ xmlns='http://namespaces.zope.org/zope'
+ xmlns:zmi='http://namespaces.zope.org/zmi'
+ xmlns:security='http://namespaces.zope.org/security'
+ xmlns:browser='http://namespaces.zope.org/browser'
+ xmlns:gts='http://namespaces.zope.org/gts'
>
<content class=".JobList.">
- <zmi:factory title="I18n Job List"
- id="i18nJobList"
- permission="Zope.ManageContent"
- />
- <security:allow interface=".IJobList." />
- <implements interface="Zope.App.OFS.Container.IContainer.IItemContainer" />
+ <zmi:factory
+ title="I18n Job List"
+ id="i18nJobList"
+ permission="Zope.ManageContent" />
+ <security:allow interface=".IJobList." />
+ <implements interface="Zope.App.OFS.Container.IContainer.IItemContainer" />
</content>
<content class=".Job.">
- <security:allow interface=".IJob." />
+ <security:allow interface=".IJob." />
</content>
-<browser:view name="index.html"
- for=".IJobList."
- template="JobListView.pt"
- permission="Zope.View"
- />
-
-<browser:defaultView for=".IJobList."
- name="index.html"
- />
-
-<browser:view for=".IJobList."
- factory=".JobCreateView."
- permission="Zope.View"
- >
+<browser:view
+ name="index.html"
+ for=".IJobList."
+ template="JobListView.pt"
+ permission="Zope.View" />
+
+<browser:defaultView for=".IJobList." name="index.html" />
+
+<browser:view
+ for=".IJobList."
+ factory=".JobCreateView."
+ permission="Zope.View">
<browser:page name="edit.html" attribute="edit" />
<browser:page name="preview.html" attribute="preview" />
<browser:page name="create.method" attribute="create" />
-
</browser:view>
-<browser:view name="index.html"
- for=".IJob."
- template="JobView.pt"
- permission="Zope.View"
- />
-
-<browser:defaultView for=".IJob."
- name="index.html"
- />
-
-<browser:view for=".IJobList."
- factory=".ApproveJobsView."
- permission="Zope.ManageContent"
- >
+<browser:view
+ name="index.html"
+ for=".IJob."
+ template="JobView.pt"
+ permission="Zope.View" />
+
+<browser:defaultView for=".IJob." name="index.html" />
+
+<browser:view
+ for=".IJobList."
+ factory=".ApproveJobsView."
+ permission="Zope.ManageContent">
<browser:page name="review.html" attribute="review" />
<browser:page name="approve.method" attribute="approve" />
-
</browser:view>
-
<zmi:icon for=".IJobList." file="joblist.gif" />
+
<gts:registerTranslations directory="./locale" />
</zopeConfigure>