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 @@ ...@@ -14,7 +14,6 @@
<value> <value>
<list> <list>
<string>portal_type</string> <string>portal_type</string>
<string>proxy_listbox_ids</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -70,12 +69,6 @@ ...@@ -70,12 +69,6 @@
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>proxy_listbox_ids</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -106,10 +99,6 @@ ...@@ -106,10 +99,6 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>proxy_listbox_ids</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
...@@ -136,20 +125,4 @@ ...@@ -136,20 +125,4 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </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> </ZopeData>
...@@ -117,7 +117,14 @@ ...@@ -117,7 +117,14 @@
</item> </item>
<item> <item>
<key> <string>proxy_listbox_ids</string> </key> <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>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
...@@ -160,7 +167,7 @@ ...@@ -160,7 +167,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
<value> <value>
<list> <list>
<string>columns</string> <string>columns</string>
<string>proxy_listbox_ids</string>
<string>sort</string> <string>sort</string>
</list> </list>
</value> </value>
...@@ -69,12 +68,6 @@ ...@@ -69,12 +68,6 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>proxy_listbox_ids</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>sort</string> </key> <key> <string>sort</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -125,12 +118,6 @@ ...@@ -125,12 +118,6 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string>Transformation_viewFieldLibrary</string> </value> <value> <string>Transformation_viewFieldLibrary</string> </value>
</item> </item>
<item>
<key> <string>proxy_listbox_ids</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>sort</string> </key> <key> <string>sort</string> </key>
<value> <value>
...@@ -156,20 +143,4 @@ ...@@ -156,20 +143,4 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </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> </ZopeData>
487 488
\ 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