web/request.py
branchstable
changeset 2202 cb374512949f
parent 1977 606923dff11b
child 2245 7463e1a748dd
--- a/web/request.py	Tue Jun 30 08:05:18 2009 +0200
+++ b/web/request.py	Tue Jun 30 08:05:57 2009 +0200
@@ -150,6 +150,11 @@
                 del self.form[k]
             else:
                 self.form[k] = v
+        # special key for created entity, added in controller's reset method
+        if '__createdpath' in params:
+            self.message += ' (<a href="%s">%s</a>)' % (
+                self.build_url(params.pop('__createdpath')),
+                self._('click here to see created entity'))
 
     def no_script_form_param(self, param, default=None, value=None):
         """ensure there is no script in a user form param