Commit 7cb0b557 authored by Fabien Morin's avatar Fabien Morin

change tales expression to check the key exists and remove a debug field not used

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23809 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d4116631
No related merge requests found
......@@ -55,8 +55,9 @@
<key> <string>_body</string> </key>
<value> <string>params = context.portal_selections.getSelectionParamsFor(\'attachment_selection\',\n
REQUEST=context.REQUEST)\n
\n
return params[\'attachment_list\']\n
if params.has_key(\'attachment_list\'):\n
return params[\'attachment_list\']\n
return []\n
</string> </value>
</item>
<item>
......
......@@ -98,7 +98,6 @@
<key> <string>white_background</string> </key>
<value>
<list>
<string>debug</string>
<string>section_title</string>
<string>section_state</string>
<string>missing</string>
......
......@@ -291,7 +291,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:context.portal_selections.getSelectionParamsFor(\'attachment_selection\', REQUEST=context.REQUEST)[\'requirement\'] == context.getPortalObject().Base_translateString(\'Required\') and not len(context.EGov_getAttachmentListFromReportSelection())</string> </value>
<value> <string>python:context.portal_selections.getSelectionParamsFor(\'attachment_selection\', REQUEST=context.REQUEST).has_key(\'requirement\') and context.portal_selections.getSelectionParamsFor(\'attachment_selection\', REQUEST=context.REQUEST)[\'requirement\'] == context.getPortalObject().Base_translateString(\'Required\') and not len(context.EGov_getAttachmentListFromReportSelection())</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -275,7 +275,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:context.portal_selections.getSelectionParamsFor(\'attachment_selection\', REQUEST=context.REQUEST)[\'requirement\']</string> </value>
<value> <string>python:context.portal_selections.getSelectionParamsFor(\'attachment_selection\', REQUEST=context.REQUEST).has_key(\'requirement\') and context.portal_selections.getSelectionParamsFor(\'attachment_selection\', REQUEST=context.REQUEST)[\'requirement\']</string> </value>
</item>
</dictionary>
</pickle>
......@@ -291,7 +291,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:not context.portal_selections.getSelectionParamsFor(\'attachment_selection\', REQUEST=context.REQUEST)[\'requirement\'] == context.getPortalObject().Base_translateString(\'Required\') and not len(context.EGov_getAttachmentListFromReportSelection())</string> </value>
<value> <string>python:context.portal_selections.getSelectionParamsFor(\'attachment_selection\', REQUEST=context.REQUEST).has_key(\'requirement\') and not context.portal_selections.getSelectionParamsFor(\'attachment_selection\', REQUEST=context.REQUEST)[\'requirement\'] == context.getPortalObject().Base_translateString(\'Required\') and not len(context.EGov_getAttachmentListFromReportSelection())</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -273,7 +273,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:context.portal_selections.getSelectionParamsFor(\'attachment_selection\', REQUEST=context.REQUEST)[\'title\']</string> </value>
<value> <string>python:context.portal_selections.getSelectionParamsFor(\'attachment_selection\', REQUEST=context.REQUEST).has_key(\'title\') and context.portal_selections.getSelectionParamsFor(\'attachment_selection\', REQUEST=context.REQUEST)[\'title\']</string> </value>
</item>
</dictionary>
</pickle>
......
359
\ No newline at end of file
360
\ 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