Commit 42954da7 authored by Thierry's avatar Thierry

2007-08-04 Thierry

* Add some fields in Base_viewFieldLibrary and define some new field rendering properties in preferences

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16034 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b30378f7
...@@ -16,17 +16,8 @@ ...@@ -16,17 +16,8 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Authenticated</string>
<string>Author</string>
<string>Manager</string> <string>Manager</string>
<string>Member</string>
<string>Owner</string> <string>Owner</string>
<string>Reviewer</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -43,17 +34,8 @@ ...@@ -43,17 +34,8 @@
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <tuple>
<string>Anonymous</string>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Authenticated</string>
<string>Author</string>
<string>Manager</string> <string>Manager</string>
<string>Member</string>
<string>Owner</string> <string>Owner</string>
<string>Reviewer</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -98,6 +80,26 @@ ...@@ -98,6 +80,26 @@
<value> <string>string</string> </value> <value> <string>string</string> </value>
</item> </item>
</dictionary> </dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>preferred_quantity_field_width</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>preferred_money_quantity_field_width</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -415,17 +417,39 @@ It\'s the lowest priority one; ie. managers can create higher priority preferenc ...@@ -415,17 +417,39 @@ It\'s the lowest priority one; ie. managers can create higher priority preferenc
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>preferred_campaign_resource</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>preferred_category_child_item_list_method_id</string> </key> <key> <string>preferred_category_child_item_list_method_id</string> </key>
<value> <string>getCategoryChildTranslatedLogicalPathItemList</string> </value> <value> <string>getCategoryChildTranslatedLogicalPathItemList</string> </value>
</item> </item>
<item>
<key> <string>preferred_date_order</string> </key>
<value> <string>ymd</string> </value>
</item>
<item>
<key> <string>preferred_event_assessment_form_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>preferred_event_resource</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>preferred_html_style_contextual_help</string> </key> <key> <string>preferred_html_style_contextual_help</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>preferred_html_style_developper_mode</string> </key> <key> <string>preferred_html_style_developper_mode</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>preferred_html_style_translator_mode</string> </key> <key> <string>preferred_html_style_translator_mode</string> </key>
...@@ -439,6 +463,16 @@ It\'s the lowest priority one; ie. managers can create higher priority preferenc ...@@ -439,6 +463,16 @@ It\'s the lowest priority one; ie. managers can create higher priority preferenc
<key> <string>preferred_listbox_view_mode_line_count</string> </key> <key> <string>preferred_listbox_view_mode_line_count</string> </key>
<value> <int>15</int> </value> <value> <int>15</int> </value>
</item> </item>
<item>
<key> <string>preferred_meeting_resource</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>preferred_money_quantity_field_width</string> </key>
<value> <int>10</int> </value>
</item>
<item> <item>
<key> <string>preferred_ooodoc_server_address</string> </key> <key> <string>preferred_ooodoc_server_address</string> </key>
<value> <string>localhost</string> </value> <value> <string>localhost</string> </value>
...@@ -447,6 +481,16 @@ It\'s the lowest priority one; ie. managers can create higher priority preferenc ...@@ -447,6 +481,16 @@ It\'s the lowest priority one; ie. managers can create higher priority preferenc
<key> <string>preferred_ooodoc_server_port_number</string> </key> <key> <string>preferred_ooodoc_server_port_number</string> </key>
<value> <int>8008</int> </value> <value> <int>8008</int> </value>
</item> </item>
<item>
<key> <string>preferred_quantity_field_width</string> </key>
<value> <int>5</int> </value>
</item>
<item>
<key> <string>preferred_sale_opportunity_resource</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>preferred_section_category</string> </key> <key> <string>preferred_section_category</string> </key>
<value> <value>
...@@ -469,6 +513,12 @@ It\'s the lowest priority one; ie. managers can create higher priority preferenc ...@@ -469,6 +513,12 @@ It\'s the lowest priority one; ie. managers can create higher priority preferenc
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>preferred_support_request_resource</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>preferred_textarea_height</string> </key> <key> <string>preferred_textarea_height</string> </key>
<value> <string>4</string> </value> <value> <string>4</string> </value>
......
...@@ -110,10 +110,14 @@ ...@@ -110,10 +110,14 @@
<string>my_view_mode_listbox</string> <string>my_view_mode_listbox</string>
<string>my_description</string> <string>my_description</string>
<string>my_translated_workflow_state_title</string> <string>my_translated_workflow_state_title</string>
<string>my_currency_value</string>
<string>my_integer_value</string> <string>my_integer_value</string>
<string>my_category_list</string>
<string>my_password</string> <string>my_password</string>
<string>my_text_area_field</string>
<string>my_multi_relation_field</string>
<string>my_category_list</string>
<string>my_money_quantity</string>
<string>my_title</string>
<string>my_quantity</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.Formulator.StandardFields</string> <string>Products.ERP5Form.ParallelListField</string>
<string>MultiListField</string> <string>ParallelListField</string>
</tuple> </tuple>
<none/> <none/>
</tuple> </tuple>
...@@ -75,6 +75,14 @@ ...@@ -75,6 +75,14 @@
<key> <string>extra_item</string> </key> <key> <string>extra_item</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>first_item</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hash_script_id</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -146,6 +154,14 @@ ...@@ -146,6 +154,14 @@
<key> <string>extra_item</string> </key> <key> <string>extra_item</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>first_item</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hash_script_id</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -221,6 +237,14 @@ ...@@ -221,6 +237,14 @@
<key> <string>extra_item</string> </key> <key> <string>extra_item</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>first_item</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>hash_script_id</string> </key>
<value> <string>Base_hashCategoryList</string> </value>
</item>
<item> <item>
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
...@@ -237,7 +261,7 @@ ...@@ -237,7 +261,7 @@
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>4</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
...@@ -275,7 +299,7 @@ ...@@ -275,7 +299,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: here.portal_categories[field.getId().replace(\'my_\', \'\', 1).replace(\'_list\', \'\')].getCategoryChildCompactLogicalPathItemList()</string> </value> <value> <string>python: here.portal_categories[field.getId().replace(\'my_\', \'\', 1).replace(\'_list\', \'\')].getCategoryChildCompactLogicalPathItemList(display_none_category=0)</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -136,7 +136,9 @@ ...@@ -136,7 +136,9 @@
</item> </item>
<item> <item>
<key> <string>display_width</string> </key> <key> <string>display_width</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>editable</string> </key> <key> <string>editable</string> </key>
...@@ -255,4 +257,23 @@ ...@@ -255,4 +257,23 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: preferences.getPreference(\'preferred_quantity_field_width\', 80)</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_currency_value</string> </value> <value> <string>my_quantity</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Currency</string> </value> <value> <string>Quantity</string> </value>
</item> </item>
<item> <item>
<key> <string>whitespace_preserve</string> </key> <key> <string>whitespace_preserve</string> </key>
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: preferences.getPreference(\'preferred_string_field_width\', 30)</string> </value> <value> <string>python: preferences.getPreference(\'preferred_quantity_field_width\', 5)</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -96,7 +96,10 @@ ...@@ -96,7 +96,10 @@
<item> <item>
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <value>
<list/> <list>
<string>listbox_delivery_start_date</string>
<string>listbox_delivery_stop_date</string>
</list>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
<value> <value>
<list> <list>
<string>lines</string> <string>lines</string>
<string>list_method</string>
<string>count_method</string>
<string>search</string> <string>search</string>
<string>select</string> <string>select</string>
</list> </list>
...@@ -86,12 +84,6 @@ ...@@ -86,12 +84,6 @@
<persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>list_method</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>search</string> </key> <key> <string>search</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -111,10 +103,6 @@ ...@@ -111,10 +103,6 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>count_method</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>listbox</string> </value> <value> <string>listbox</string> </value>
...@@ -127,15 +115,9 @@ ...@@ -127,15 +115,9 @@
<key> <string>lines</string> </key> <key> <string>lines</string> </key>
<value> <int>10</int> </value> <value> <int>10</int> </value>
</item> </item>
<item>
<key> <string>list_method</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>search</string> </key> <key> <string>search</string> </key>
<value> <int>1</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>select</string> </key> <key> <string>select</string> </key>
...@@ -227,42 +209,4 @@ ...@@ -227,42 +209,4 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="6" aka="AAAAAAAAAAY=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>request/proxy_form_id_list_method | string:searchFolder</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="7" aka="AAAAAAAAAAc=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.MethodField</string>
<string>Method</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <string>contentValues</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -85,7 +85,6 @@ ...@@ -85,7 +85,6 @@
<list> <list>
<string>my_priority</string> <string>my_priority</string>
<string>my_preferred_section_category</string> <string>my_preferred_section_category</string>
<string>my_preferred_date_order</string>
<string>my_preferred_ooodoc_server_address</string> <string>my_preferred_ooodoc_server_address</string>
<string>my_preferred_ooodoc_server_port_number</string> <string>my_preferred_ooodoc_server_port_number</string>
<string>my_translated_preference_state_title</string> <string>my_translated_preference_state_title</string>
......
...@@ -85,6 +85,8 @@ ...@@ -85,6 +85,8 @@
<string>my_preferred_html_style_translator_mode</string> <string>my_preferred_html_style_translator_mode</string>
<string>my_preferred_html_style_documentation_base_url</string> <string>my_preferred_html_style_documentation_base_url</string>
<string>my_preferred_category_child_item_list_method_id</string> <string>my_preferred_category_child_item_list_method_id</string>
<string>my_preferred_listbox_view_mode_line_count</string>
<string>my_preferred_listbox_list_mode_line_count</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -92,11 +94,12 @@ ...@@ -92,11 +94,12 @@
<key> <string>right</string> </key> <key> <string>right</string> </key>
<value> <value>
<list> <list>
<string>my_preferred_date_order</string>
<string>my_preferred_string_field_width</string> <string>my_preferred_string_field_width</string>
<string>my_preferred_textarea_width</string> <string>my_preferred_textarea_width</string>
<string>my_preferred_textarea_height</string> <string>my_preferred_textarea_height</string>
<string>my_preferred_listbox_view_mode_line_count</string> <string>my_preferred_money_quantity_field_width</string>
<string>my_preferred_listbox_list_mode_line_count</string> <string>my_preferred_quantity_field_width</string>
</list> </list>
</value> </value>
</item> </item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.ProxyField</string>
<string>ProxyField</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>title</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_preferred_money_quantity_field_width</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_integer_value</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Money Amounts Fields Width</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.ProxyField</string>
<string>ProxyField</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>title</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_preferred_quantity_field_width</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_integer_value</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Quantity Fields Width</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
429 423
\ 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