[Checkins] SVN: z3ext.layoutform/trunk/ Redirect to nextURL after success 'apply'

Nikolay Kim fafhrd at datacom.kz
Mon Jun 2 07:09:34 EDT 2008


Log message for revision 87096:
  Redirect to nextURL after success 'apply'

Changed:
  U   z3ext.layoutform/trunk/CHANGES.txt
  U   z3ext.layoutform/trunk/src/z3ext/layoutform/edit.py

-=-
Modified: z3ext.layoutform/trunk/CHANGES.txt
===================================================================
--- z3ext.layoutform/trunk/CHANGES.txt	2008-06-02 07:43:13 UTC (rev 87095)
+++ z3ext.layoutform/trunk/CHANGES.txt	2008-06-02 11:09:28 UTC (rev 87096)
@@ -2,6 +2,12 @@
 CHANGES
 =======
 
+1.0.1 (2008-06-02)
+------------------
+
+- Redirect to nextURL after success 'apply'
+
+
 1.0.0 (2008-05-13)
 ------------------
 

Modified: z3ext.layoutform/trunk/src/z3ext/layoutform/edit.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/edit.py	2008-06-02 07:43:13 UTC (rev 87095)
+++ z3ext.layoutform/trunk/src/z3ext/layoutform/edit.py	2008-06-02 11:09:28 UTC (rev 87096)
@@ -51,6 +51,10 @@
             else:
                 IStatusMessage(self.request).add(self.noChangesMessage)
 
+            nextUrl = self.nextURL()
+            if nextURL:
+                self.redirect(nextURL)
+
     @button.buttonAndHandler(_(u'Cancel'), name='cancel',
                              provides=interfaces.ICancelButton)
     def handleCancel(self, action):
@@ -58,8 +62,7 @@
         IStatusMessage(self.request).add(self.formCancelMessage)
 
     def nextURL(self):
-        return '%s/@@SelectedManagementView.html'%\
-            absoluteURL(self.context, self.request)
+        return ''
 
     def cancelURL(self):
         return '%s/@@SelectedManagementView.html'%\



More information about the Checkins mailing list