web/controller.py
changeset 2234 1fbcf202882d
parent 2058 7ef12c03447c
parent 2202 cb374512949f
child 2381 caad2367d940
--- a/web/controller.py	Mon Jun 29 14:12:18 2009 +0200
+++ b/web/controller.py	Thu Jul 02 10:35:03 2009 +0200
@@ -184,6 +184,12 @@
         elif '__redirectpath' in self.req.form:
             # if redirect path was explicitly specified in the form, use it
             path = self.req.form['__redirectpath']
+            if self._edited_entity:
+                msg = newparams.get('__message', '')
+                msg += ' (<a href="%s">%s</a>)' % (
+                    self._edited_entity.absolute_url(),
+                    self.req._('click here to see created entity'))
+                newparams['__createdpath'] = self._edited_entity.rest_path()
         elif self._after_deletion_path:
             # else it should have been set during form processing
             path, params = self._after_deletion_path