Commit f31dc147 authored by Ivan Tyagov's avatar Ivan Tyagov

Allow to add only gadgets which are allowed to be added (i.e. check validation_state).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42498 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 92e4a9c0
...@@ -292,7 +292,7 @@ ...@@ -292,7 +292,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:[[\'gadget_type_uid\', context.getPortalObject().restrictedTraverse(\'portal_categories/gadget_type/%s\' %request.get(\'mode\', None) , None) is not None and context.getPortalObject().restrictedTraverse(\'portal_categories/gadget_type/%s\' %request.get(\'mode\',None), None).getUid() or \'\'],]</string> </value> <value> <string>python:[[\'validation_state\', \'!=invisible\'], [\'gadget_type_uid\', context.getPortalObject().restrictedTraverse(\'portal_categories/gadget_type/%s\' %request.get(\'mode\', None) , None) is not None and context.getPortalObject().restrictedTraverse(\'portal_categories/gadget_type/%s\' %request.get(\'mode\',None), None).getUid() or \'\'],]</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
679 680
\ 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