[Erp5-report] r26392 - /erp5/trunk/products/ERP5Form/SelectionTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Apr 10 14:09:54 CEST 2009


Author: kazuhiko
Date: Fri Apr 10 14:09:53 2009
New Revision: 26392

URL: http://svn.erp5.org?rev=26392&view=rev
Log:
keep ignore_layout in viewFirst, viewLast, viewNext and viewPrevious.

Modified:
    erp5/trunk/products/ERP5Form/SelectionTool.py

Modified: erp5/trunk/products/ERP5Form/SelectionTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/SelectionTool.py?rev=26392&r1=26391&r2=26392&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/SelectionTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/SelectionTool.py [utf8] Fri Apr 10 14:09:53 2009
@@ -554,7 +554,8 @@
           url = REQUEST.getURL()
       else:
         url = REQUEST.getURL()
-      url = '%s/%s?selection_index=%s&selection_name=%s' % (url, form_id, 0, selection_name)
+      ignore_layout = int(REQUEST.get('ignore_layout', 0))
+      url = '%s/%s?selection_index=%s&selection_name=%s&ignore_layout:int=%s' % (url, form_id, 0, selection_name, ignore_layout)
       REQUEST.RESPONSE.redirect(url)
 
     security.declareProtected(ERP5Permissions.View, 'viewLast')
@@ -575,7 +576,8 @@
           url = REQUEST.getURL()
       else:
         url = REQUEST.getURL()
-      url = '%s/%s?selection_index=%s&selection_name=%s' % (url, form_id, -1, selection_name)
+      ignore_layout = int(REQUEST.get('ignore_layout', 0))
+      url = '%s/%s?selection_index=%s&selection_name=%s&ignore_layout:int=%s' % (url, form_id, -1, selection_name, ignore_layout)
       REQUEST.RESPONSE.redirect(url)
 
     security.declareProtected(ERP5Permissions.View, 'viewNext')
@@ -596,7 +598,8 @@
           url = REQUEST.getURL()
       else:
         url = REQUEST.getURL()
-      url = '%s/%s?selection_index=%s&selection_name=%s' % (url, form_id, int(selection_index) + 1, selection_name)
+      ignore_layout = int(REQUEST.get('ignore_layout', 0))
+      url = '%s/%s?selection_index=%s&selection_name=%s&ignore_layout:int=%s' % (url, form_id, int(selection_index) + 1, selection_name, ignore_layout)
       REQUEST.RESPONSE.redirect(url)
 
     security.declareProtected(ERP5Permissions.View, 'viewPrevious')
@@ -617,7 +620,8 @@
           url = REQUEST.getURL()
       else:
         url = REQUEST.getURL()
-      url = '%s/%s?selection_index=%s&selection_name=%s' % (url, form_id, int(selection_index) - 1, selection_name)
+      ignore_layout = int(REQUEST.get('ignore_layout', 0))
+      url = '%s/%s?selection_index=%s&selection_name=%s&ignore_layout:int=%s' % (url, form_id, int(selection_index) - 1, selection_name, ignore_layout)
       REQUEST.RESPONSE.redirect(url)
 
 




More information about the Erp5-report mailing list