Commit 3de11d4a authored by Jérome Perrin's avatar Jérome Perrin

delegate proxy listbox id, and make more complex tales

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34103 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 039a13f8
......@@ -14,7 +14,6 @@
<value>
<list>
<string>portal_type</string>
<string>proxy_listbox_ids</string>
</list>
</value>
</item>
......@@ -70,12 +69,6 @@
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>proxy_listbox_ids</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
......@@ -106,10 +99,6 @@
</list>
</value>
</item>
<item>
<key> <string>proxy_listbox_ids</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......@@ -136,20 +125,4 @@
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:[(\'%sModule_view%sList/listbox\' % (x.replace(\' \',\'\'), x.replace(\' \', \'\')), x) for x in (here.getPortalProductTypeList() + here.getPortalServiceTypeList()) if context.Base_checkPermission(context.getDefaultModuleId(x), \'View\')]</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -117,7 +117,14 @@
</item>
<item>
<key> <string>proxy_listbox_ids</string> </key>
<value> <string></string> </value>
<value>
<list>
<tuple>
<string>Base_viewRelatedObjectListBase/listbox</string>
<string>All</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>target</string> </key>
......@@ -160,7 +167,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:[(\'%sModule_view%sList/listbox\' % (x.replace(\' \',\'\'), x.replace(\' \', \'\')), x) for x in context.getPortalProductTypeList() if context.Base_checkPermission(context.getDefaultModuleId(x), \'View\')]</string> </value>
<value> <string>python: field.get_orig_value(\'proxy_listbox_ids\') + [(\'%sModule_view%sList/listbox\' % (x.replace(\' \',\'\'), x.replace(\' \', \'\')), x) for x in zip(*field.get_value(\'portal_type\'))[0] if context.Base_checkPermission(context.getDefaultModuleId(x), \'View\')]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -14,7 +14,6 @@
<value>
<list>
<string>columns</string>
<string>proxy_listbox_ids</string>
<string>sort</string>
</list>
</value>
......@@ -69,12 +68,6 @@
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>proxy_listbox_ids</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>sort</string> </key>
<value> <string></string> </value>
......@@ -125,12 +118,6 @@
<key> <string>form_id</string> </key>
<value> <string>Transformation_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>proxy_listbox_ids</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>sort</string> </key>
<value>
......@@ -156,20 +143,4 @@
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:[(\'%sModule_view%sList/listbox\' % (x.replace(\' \',\'\'), x.replace(\' \', \'\')), x) for x in context.getPortalProductTypeList() if context.Base_checkPermission(context.getDefaultModuleId(x), \'View\')]</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
487
\ No newline at end of file
488
\ 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