[Zope3-checkins] CVS: Products3/bugtracker/browser - bug.py:1.4

Stephan Richter srichter@cosmos.phy.tufts.edu
Sat, 26 Jul 2003 13:11:48 -0400


Update of /cvs-repository/Products3/bugtracker/browser
In directory cvs.zope.org:/tmp/cvs-serv16559/browser

Modified Files:
	bug.py 
Log Message:
Usually we do not want to return to the edit screen after we edited the bug.
Return to the overview instead. This saves loading one screen in 95% of the
usage.


=== Products3/bugtracker/browser/bug.py 1.3 => 1.4 ===
--- Products3/bugtracker/browser/bug.py:1.3	Sat Jul 26 12:59:14 2003
+++ Products3/bugtracker/browser/bug.py	Sat Jul 26 13:11:45 2003
@@ -138,7 +138,12 @@
 
 
 class EditBug(BugBaseView, BugForm):
-    pass
+
+    def update(self):
+        status = super(EditBug, self).update()
+        if status.startswith('Updated'):
+            return self.request.response.redirect('./@@overview.html')
+        return status
 
 
 class Overview(BugBaseView):