[Zope-CVS] CVS: Packages/JobBoardEx - ApproveJobs.pt:1.5.2.2 JobEditView.pt:1.3.2.2 JobList.zcml:1.13.2.2 JobListView.pt:1.4.2.2 JobPreviewView.pt:1.3.2.1 JobView.pt:1.6.2.2
Gary Poster
garyposter@earthlink.net
Tue, 2 Apr 2002 21:46:08 -0500
Update of /cvs-repository/Packages/JobBoardEx
In directory cvs.zope.org:/tmp/cvs-serv5618
Modified Files:
Tag: gary-pre_create_views_example-branch
ApproveJobs.pt JobEditView.pt JobList.zcml JobListView.pt
JobPreviewView.pt JobView.pt
Log Message:
changed pts back to view/context of SteveA, and changed zcml to new syntax of Stephan's
=== Packages/JobBoardEx/ApproveJobs.pt 1.5.2.1 => 1.5.2.2 ===
<body>
- <form action="" method="post">
+ <form action="." method="post">
<table border=0>
<tr><th colspan=3>Action</th>
- <th rowspan=2>Summary</th>
+ <th rowspan=2>Summary</th>
</tr>
<tr><th>Defer</th><th>Approve</th><th>Discard</th>
</tr>
- <tr tal:repeat="job container/getPendingJobs"
- style="text-align:center">
- <td><input name="job_N" type="radio" value="defer" checked
- tal:attributes="name string:job_${job/id}"></td>
- <td><input name="job_N" type="radio" value="approve"
- tal:attributes="name string:job_${job/id}"></td>
- <td><input name="job_N" type="radio" value="discard"
- tal:attributes="name string:job_${job/id}"></td>
- <td tal:content="job/summary">The best job on the Internet</td>
+ <tr tal:repeat="job view/getPendingJobs"
+ style="text-align:center">
+ <td><input name="job_N" type="radio" value="defer" checked
+ tal:attributes="name string:job_${job/id}"></td>
+ <td><input name="job_N" type="radio" value="approve"
+ tal:attributes="name string:job_${job/id}"></td>
+ <td><input name="job_N" type="radio" value="discard"
+ tal:attributes="name string:job_${job/id}"></td>
+ <td tal:content="job/summary">The best job on the Internet</td>
</tr>
<tr><td colspan="3">
- <input name="submit:method" type="submit" value="Submit">
- <input name="back:method" type="submit" value="Back to summary">
+ <input name="submit:method" type="submit" value="Submit">
+ <input name="back:method" type="submit" value="Back to summary">
</td></tr>
</table>
</form>
-
+
</body>
</html>
=== Packages/JobBoardEx/JobEditView.pt 1.3.2.1 => 1.3.2.2 ===
<body>
<h1>Enter new job data</h1>
- <form action="" method="post">
+ <form action="." method="post">
<table border=0>
<tr><td>Submitter:</td>
- <td><input name="submitter" type="text" value="" size="72"
- tal:attributes="value container/getSubmitter|default" />
- </td>
+ <td><input name="submitter" type="text" value="" size="72"
+ tal:attributes="value view/getSubmitter|default" />
+ </td>
</tr>
<tr><td>Summary:</td>
- <td><input name="summary" type="text" value="" size="72"
- tal:attributes="value container/getSummary|default" />
- </td>
+ <td><input name="summary" type="text" value="" size="72"
+ tal:attributes="value view/getSummary|default" />
+ </td>
</tr>
<tr><td>Description:</td>
- <td><textarea cols=72 rows=20 name="description" type="text"
- ><span tal:replace="container/getDescription|nothing"
+ <td><textarea cols=72 rows=20 name="description" type="text"
+ ><span tal:replace="view/getDescription|nothing"
/></textarea>
- </td>
+ </td>
</tr>
<tr><td>Contact:</td>
- <td><input name="contact" type="text" value="" size="72"
- tal:attributes="value container/getContact|default" />
- </td>
+ <td><input name="contact" type="text" value="" size="72"
+ tal:attributes="value view/getContact|default" />
+ </td>
</tr>
<tr><td colspan="2">
- <input name="preview:method" type="submit" value="Preview">
- <input name="cancel:method" type="submit" value="Cancel">
- <input name="reset" type="reset" value="Reset">
- </td>
+ <input name="preview:method" type="submit" value="Preview">
+ <input name="cancel:method" type="submit" value="Cancel">
+ <input name="reset" type="reset" value="Reset">
+ </td>
</tr>
</table>
</form>
=== Packages/JobBoardEx/JobList.zcml 1.13.2.1 => 1.13.2.2 ===
<!-- JobList -->
-
-<zmi:factoryFromClass
- name=".JobList."
- permission_id="Zope.Public"
- title="JobList"
-/>
+<zmi:factoryFromClass name="JobList"
+ class=".JobList."
+ permission_id="Zope.ManageContent"
+ title="JobList"
+ description="A Job Board" />
<security:protectClass
name=".JobList."
@@ -23,18 +22,16 @@
<!-- Job -->
-<!-- NO LONGER TRUE: This doesn't need a factory, since jobs are always
-created by
- Python code. -->
-<!-- ideally this would be a placeful factory, only to be within a
-JobList; that is not an option now, so "Job" will be available
-everywhere at the moment. Note the marker_interface is the only new
-animal here. -->
+<!-- ideally jobs would be created within a placeful factory, only to
+be within a JobList; that is not an option now, so "Job" will be
+available everywhere at the moment. Note the marker_interface is the
+only new animal here. -->
<zmi:factoryFromClass
- name=".Job."
+ name="Job"
+ class=".Job."
permission_id="Zope.Public"
- title="Job"
+ title="A job to be placed within a JobList"
marker_interface=".IJob.IJobCreator."
/>
=== Packages/JobBoardEx/JobListView.pt 1.4.2.1 => 1.4.2.2 ===
<h1>Job Board</h1>
-<A href="../.Job.;create">Submit a new job</A>
+<A href="../Job;create">Submit a new job</A>
<H2>Job Listings</H2>
<table>
-<tr tal:repeat="job container/getApprovedJobs">
+<tr tal:repeat="job view/getApprovedJobs">
<td>
<a href="jobid" tal:attributes="href string:../${job/id}">
<span tal:replace="job/summary">A job summary</span></A>
=== Packages/JobBoardEx/JobPreviewView.pt 1.3 => 1.3.2.1 ===
<body>
- <form action="" method="post">
+ <form action="." method="post">
- <table border=0>
- <tr><td>Submitter:</td>
- <td tal:content="view/getSubmitter">aperson@dom.ain</td>
- </tr>
- <tr><td>Summary:</td>
- <td tal:content="view/getSummary">The best job on the net</td>
- </tr>
- <tr><td>Description:</td>
- <td tal:content="view/getDescription">This is really really
- really the best job on the Internet</td>
- </tr>
- <tr><td>Contact:</td>
- <td tal:content="view/getContact">bperson@dom.ain</td>
- </tr>
- </table>
+ <table border=0>
+ <tr><td>Submitter:</td>
+ <td tal:content="view/getSubmitter">aperson@dom.ain</td>
+ </tr>
+ <tr><td>Summary:</td>
+ <td tal:content="view/getSummary">The best job on the net</td>
+ </tr>
+ <tr><td>Description:</td>
+ <td tal:content="view/getDescription">This is really really
+ really the best job on the Internet</td>
+ </tr>
+ <tr><td>Contact:</td>
+ <td tal:content="view/getContact">bperson@dom.ain</td>
+ </tr>
+ </table>
<table border=0>
- <tr><td>
- <input name="submit:method" type="submit" value="Submit">
- <input name="edit:method" type="submit" value="Edit">
- <input name="cancel:method" type="submit" value="Cancel">
- </td></tr>
+ <tr><td>
+ <input name="submit:method" type="submit" value="Submit">
+ <input name="edit:method" type="submit" value="Edit">
+ <input name="cancel:method" type="submit" value="Cancel">
+ </td></tr>
</table>
- <input name="submitter" type="hidden" value="Submitter" size="72"
- tal:attributes="value view/getSubmitter" />
- <input name="summary" type="hidden" value="Summary" size="72"
- tal:attributes="value view/getSummary" />
- <input name="description" type="hidden" value=""
- tal:attributes="value view/getDescription" />
- <input name="contact" type="hidden" value="" size="72"
- tal:attributes="value view/getContact" />
+ <input name="submitter" type="hidden" value="Submitter" size="72"
+ tal:attributes="value view/getSubmitter" />
+ <input name="summary" type="hidden" value="Summary" size="72"
+ tal:attributes="value view/getSummary" />
+ <input name="description" type="hidden" value=""
+ tal:attributes="value view/getDescription" />
+ <input name="contact" type="hidden" value="" size="72"
+ tal:attributes="value view/getContact" />
</form>
</body>
=== Packages/JobBoardEx/JobView.pt 1.6.2.1 => 1.6.2.2 ===
<form action=".." method="get">
- <table border=0>
- <tr><td>Submitter:</td>
- <td tal:content="container/getSubmitter">aperson@dom.ain</td>
- </tr>
- <tr><td>Summary:</td>
- <td tal:content="container/getSummary">The best job on the net</td>
- </tr>
- <tr><td>Description:</td>
- <td tal:content="container/getDescription">This is really really
- really the best job on the Internet</td>
- </tr>
- <tr><td>Contact:</td>
- <td tal:content="container/getContact">bperson@dom.ain</td>
- </tr>
- </table>
+ <table border=0>
+ <tr><td>Submitter:</td>
+ <td tal:content="view/getSubmitter">aperson@dom.ain</td>
+ </tr>
+ <tr><td>Summary:</td>
+ <td tal:content="view/getSummary">The best job on the net</td>
+ </tr>
+ <tr><td>Description:</td>
+ <td tal:content="view/getDescription">This is really really
+ really the best job on the Internet</td>
+ </tr>
+ <tr><td>Contact:</td>
+ <td tal:content="view/getContact">bperson@dom.ain</td>
+ </tr>
+ </table>
<table border=0>
- <tr><td>
- <input type="submit" value="Back to summary">
- </td></tr>
+ <tr><td>
+ <input type="submit" value="Back to summary">
+ </td></tr>
</table>
</form>