Commit 60284e52 authored by Ivan Tyagov's avatar Ivan Tyagov

Allow setting listbox preferred items length in basic gadget preferences if we...

Allow setting listbox preferred items length in basic gadget preferences if we have multiple listboxes in one gadget.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40207 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent da348ee1
......@@ -147,7 +147,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:\'listbox\' in getattr(here, here.getSpecialiseValue().view_form_id).objectIds()</string> </value>
<value> <string>python: len([x for x in in getattr(here, here.getSpecialiseValue().view_form_id).objectIds() if x.startswith(\'listbox\')])</string> </value>
</item>
</dictionary>
</pickle>
......
605
\ No newline at end of file
606
\ 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