[Erp5-report] r7084 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/po...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu May 4 20:27:15 CEST 2006


Author: yo
Date: Thu May  4 20:27:13 2006
New Revision: 7084

URL: http://svn.erp5.org?rev=7084&view=rev
Log:
2006-05-04 yo
* Rewrite Folder_show.


Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_show.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_show.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_show.xml?rev=7084&r1=7083&r2=7084&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_show.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_show.xml Thu May  4 20:27:13 2006
@@ -68,15 +68,9 @@
             <key> <string>_body</string> </key>
             <value> <string>request = context.REQUEST\n
 \n
-# saved_checkeduid = context.portal_selections.getSelectionCheckedUidsFor(selection_name, REQUEST=request)\n
-\n
-context.portal_selections.setSelectionToAll(selection_name, REQUEST=request)\n
-url = context.portal_selections.getSelectionListUrlFor(selection_name, REQUEST=request)\n
-\n
-# XXX when showing all the content of a folder, shall we reset selected uids or not ? \n
-#  no for now, until we find a good way to uncheck all (not only on the current page)\n
-# context.portal_selections.checkAll(selection_name, saved_checkeduid, REQUEST=request)\n
-\n
+ps = context.portal_selections\n
+ps.setSelectionToAll(selection_name, REQUEST=request, reset_domain_tree=True, reset_report_tree=True)\n
+url = ps.getSelectionListUrlFor(selection_name, REQUEST=request)\n
 request.RESPONSE.redirect(url)\n
 </string> </value>
         </item>
@@ -122,6 +116,8 @@
                             <string>_getattr_</string>
                             <string>context</string>
                             <string>request</string>
+                            <string>ps</string>
+                            <string>True</string>
                             <string>url</string>
                           </tuple>
                         </value>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log?rev=7084&r1=7083&r2=7084&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log Thu May  4 20:27:13 2006
@@ -1,3 +1,6 @@
+2006-05-04 yo
+* Rewrite Folder_show.
+
 2006-05-04 Kevin
 * Increase url lenght test Base_callDialogMethod.
 




More information about the Erp5-report mailing list