[Zope-CVS] CVS: Packages/JobBoardEx - ApproveJobs.pt:1.3 ApproveJobs.py:1.4 JobList.zcml:1.10

Guido van Rossum guido@python.org
Fri, 22 Mar 2002 21:10:14 -0500


Update of /cvs-repository/Packages/JobBoardEx
In directory cvs.zope.org:/tmp/cvs-serv32137

Modified Files:
	ApproveJobs.pt ApproveJobs.py JobList.zcml 
Log Message:
Get rid of the "cancel" button; a "back to summary" button is enough.
Also, action="" works just as well and doesn't show an annoying "/."
at the end of the URL.


=== Packages/JobBoardEx/ApproveJobs.pt 1.2 => 1.3 ===
 <body>
 
-    <form action="." method="post">
+    <form action="" method="post">
     <table border=0>
     <tr><th colspan=3>Action</th>
 	<th rowspan=2>Summary</th>
@@ -21,7 +21,6 @@
     </tr>
     <tr><td colspan="3">
 	<input name="submit:method" type="submit" value="Submit">
-	<input name="cancel:method" type="submit" value="Cancel">
 	<input name="back:method" type="submit" value="Back to summary">
     </td></tr>
     </table>


=== Packages/JobBoardEx/ApproveJobs.py 1.3 => 1.4 ===
     index = PageTemplateFile('ApproveJobs.pt')
 
-    def cancel(self, REQUEST):
+    def back(self, REQUEST):
         return REQUEST.response.redirect('..')
-
-    back = cancel
 
     def submit(self, REQUEST):
         """Approve a job."""


=== Packages/JobBoardEx/JobList.zcml 1.9 => 1.10 ===
 	name=".JobBoardEx.ApproveJobs."
 	permission_id="Zope.View"
-	methods="index, cancel, submit"
+	methods="index, back, submit"
 />
 
 </zopeConfigure>