[Zope-CVS] CVS: Packages/JobBoardEx - Tutorial.html:1.22
Steve Alexander
steve@cat-box.net
Tue, 18 Jun 2002 08:13:24 -0400
Update of /cvs-repository/Packages/JobBoardEx
In directory cvs.zope.org:/tmp/cvs-serv29047
Modified Files:
Tutorial.html
Log Message:
Updated zcml example fragments to follow the zcml coding style and be
consistent with the configure.zcml file.
=== Packages/JobBoardEx/Tutorial.html 1.21 => 1.22 ===
<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>