[Zope-CVS] CVS: Packages/JobBoardEx - ApproveJobs.pt:1.6 JobEditView.pt:1.4 JobPreviewView.pt:1.4 JobView.pt:1.7
Steve Alexander
steve@cat-box.net
Tue, 2 Apr 2002 08:32:59 -0500
Update of /cvs-repository/Packages/JobBoardEx
In directory cvs.zope.org:/tmp/cvs-serv15265
Modified Files:
ApproveJobs.pt JobEditView.pt JobPreviewView.pt JobView.pt
Log Message:
Converted tabs to spaces.
Changed action="" to action="." so that it works with Zope3 in cvs.
This is because the browser was going to a page foo/bar/index.html
and seeing a form with action="".
On submitting the form, the URL goes in place of the action.
The Zope publisher gets a request for foo/bar/index.html, with the
request to call a method "preview" (for example). So, the publisher
was trying to traverse to foo/bar/index.html/preview, which fails of
course.
Perhaps what the publisher should say is: if I'm traversing, and I can't
traverse any further, but I've got a method from a form, I should back up
one step then traverse the method.
If that were implemented, then action="" and action="." should work the
same.
=== Packages/JobBoardEx/ApproveJobs.pt 1.5 => 1.6 ===
<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 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>
+ 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 => 1.4 ===
<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 view/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 view/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="view/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 view/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/JobPreviewView.pt 1.3 => 1.4 ===
<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 => 1.7 ===
<form action=".." method="get">
- <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 type="submit" value="Back to summary">
- </td></tr>
+ <tr><td>
+ <input type="submit" value="Back to summary">
+ </td></tr>
</table>
</form>