Commit afc19ecb authored by Jérome Perrin's avatar Jérome Perrin

Use portal_selections.getSelectionInvertModeFor instead of accessing Selection directly

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14876 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af6d3a63
...@@ -80,8 +80,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -80,8 +80,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
XXX: Folder_filter accesses selection directly\n XXX: Folder_filter accesses selection directly\n
-->\n -->\n
</tal:block>\n </tal:block>\n
\n
\n
<tal:block metal:define-macro="master">\n <tal:block metal:define-macro="master">\n
<span id="jump" metal:define-macro="jump">\n <span id="jump" metal:define-macro="jump">\n
<select name="select_jump"\n <select name="select_jump"\n
...@@ -118,7 +116,6 @@ XXX: Folder_filter accesses selection directly\n ...@@ -118,7 +116,6 @@ XXX: Folder_filter accesses selection directly\n
</span>\n </span>\n
\n \n
<span class="separator"></span>\n <span class="separator"></span>\n
\n
\n \n
<span id="action" metal:define-macro="action">\n <span id="action" metal:define-macro="action">\n
<select name="select_action"\n <select name="select_action"\n
...@@ -275,8 +272,7 @@ XXX: Folder_filter accesses selection directly\n ...@@ -275,8 +272,7 @@ XXX: Folder_filter accesses selection directly\n
<span class="description" i18n:translate="" i18n:domain="ui">Show All</span>\n <span class="description" i18n:translate="" i18n:domain="ui">Show All</span>\n
</button>\n </button>\n
<button type="submit" name="Folder_filter:method" title="Filter"\n <button type="submit" name="Folder_filter:method" title="Filter"\n
tal:define="selection python: here.portal_selections.getSelectionFor(request[\'selection_name\'])"\n tal:attributes="class python: here.portal_selections.getSelectionInvertModeFor(request[\'selection_name\']) and \'filter_on\' or \'filter\';"\n
tal:attributes="class python:(selection is not None and selection.isInvertMode()) and \'filter_on\' or \'filter\';"\n
i18n:attributes="title" i18n:domain="ui">\n i18n:attributes="title" i18n:domain="ui">\n
<span class="image"></span>\n <span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">Filter</span>\n <span class="description" i18n:translate="" i18n:domain="ui">Filter</span>\n
...@@ -333,8 +329,7 @@ XXX: Folder_filter accesses selection directly\n ...@@ -333,8 +329,7 @@ XXX: Folder_filter accesses selection directly\n
<span class="description" i18n:translate="" i18n:domain="ui">Help</span>\n <span class="description" i18n:translate="" i18n:domain="ui">Help</span>\n
</a>\n </a>\n
<a tal:condition="preferred_html_style_developper_mode"\n <a tal:condition="preferred_html_style_developper_mode"\n
class="inspect_object" title="Inspect object"\n class="inspect_object" title="Inspect object" href="Base_viewInspectionReport"\n
tal:attributes="href python: \'Base_viewInspectionReport\'"\n
i18n:attributes="title" i18n:domain="ui">\n i18n:attributes="title" i18n:domain="ui">\n
<span class="image"></span>\n <span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">Inspect object</span>\n <span class="description" i18n:translate="" i18n:domain="ui">Inspect object</span>\n
...@@ -347,13 +342,9 @@ XXX: Folder_filter accesses selection directly\n ...@@ -347,13 +342,9 @@ XXX: Folder_filter accesses selection directly\n
<span class="description" i18n:translate="" i18n:domain="ui">Activity Pending</span>\n <span class="description" i18n:translate="" i18n:domain="ui">Activity Pending</span>\n
</a>\n </a>\n
</span>\n </span>\n
\n
</span>\n </span>\n
\n
<p class="clear"></p>\n <p class="clear"></p>\n
\n </tal:block>
</tal:block>\n
]]></string> </value> ]]></string> </value>
</item> </item>
......
374 376
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment