From fd5758caae1bf6ccbbe3dd283633ad2045b346f4 Mon Sep 17 00:00:00 2001 From: Ivan Tyagov <ivan@nexedi.com> Date: Thu, 28 Oct 2010 13:22:59 +0000 Subject: [PATCH] Add a basic gadget preference edit form and make all basic gadgets use it. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39608 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_gadgets/erp5_persons.xml | 11 ++++------- .../portal_gadgets/erp5_worklists.xml | 13 ++++--------- ...xml => Base_viewBasicGadgetPreferenceDialog.xml} | 8 ++++++-- .../my_listbox_selection_list_lines.xml | 7 ++++++- .../my_preferred_header_title.xml | 0 bt5/erp5_knowledge_pad/bt/revision | 2 +- 6 files changed, 21 insertions(+), 20 deletions(-) rename bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/{ERP5Site_viewPersonListGadgetPreferenceDialog.xml => Base_viewBasicGadgetPreferenceDialog.xml} (93%) rename bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/{ERP5Site_viewPersonListGadgetPreferenceDialog => Base_viewBasicGadgetPreferenceDialog}/my_listbox_selection_list_lines.xml (92%) rename bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/{ERP5Site_viewPersonListGadgetPreferenceDialog => Base_viewBasicGadgetPreferenceDialog}/my_preferred_header_title.xml (100%) diff --git a/bt5/erp5_knowledge_pad/PathTemplateItem/portal_gadgets/erp5_persons.xml b/bt5/erp5_knowledge_pad/PathTemplateItem/portal_gadgets/erp5_persons.xml index 4b6638a824..4860247243 100644 --- a/bt5/erp5_knowledge_pad/PathTemplateItem/portal_gadgets/erp5_persons.xml +++ b/bt5/erp5_knowledge_pad/PathTemplateItem/portal_gadgets/erp5_persons.xml @@ -2,10 +2,7 @@ <ZopeData> <record id="1" aka="AAAAAAAAAAE="> <pickle> - <tuple> - <global name="Gadget" module="Products.ERP5.Document.Gadget"/> - <tuple/> - </tuple> + <global name="Gadget" module="Products.ERP5.Document.Gadget"/> </pickle> <pickle> <dictionary> @@ -200,7 +197,7 @@ </item> <item> <key> <string>edit_form_id</string> </key> - <value> <string>ERP5Site_viewPersonListGadgetPreferenceDialog</string> </value> + <value> <string>Base_viewBasicGadgetPreferenceDialog</string> </value> </item> <item> <key> <string>gadget_type</string> </key> @@ -284,7 +281,7 @@ </record> <record id="3" aka="AAAAAAAAAAM="> <pickle> - <global name="OOBTree" module="BTrees._OOBTree"/> + <global name="OOBTree" module="BTrees.OOBTree"/> </pickle> <pickle> <none/> @@ -292,7 +289,7 @@ </record> <record id="4" aka="AAAAAAAAAAQ="> <pickle> - <global name="OOBTree" module="BTrees._OOBTree"/> + <global name="OOBTree" module="BTrees.OOBTree"/> </pickle> <pickle> <none/> diff --git a/bt5/erp5_knowledge_pad/PathTemplateItem/portal_gadgets/erp5_worklists.xml b/bt5/erp5_knowledge_pad/PathTemplateItem/portal_gadgets/erp5_worklists.xml index 83ded260e5..bf0e24cc06 100644 --- a/bt5/erp5_knowledge_pad/PathTemplateItem/portal_gadgets/erp5_worklists.xml +++ b/bt5/erp5_knowledge_pad/PathTemplateItem/portal_gadgets/erp5_worklists.xml @@ -2,10 +2,7 @@ <ZopeData> <record id="1" aka="AAAAAAAAAAE="> <pickle> - <tuple> - <global name="Gadget" module="Products.ERP5.Document.Gadget"/> - <tuple/> - </tuple> + <global name="Gadget" module="Products.ERP5.Document.Gadget"/> </pickle> <pickle> <dictionary> @@ -118,9 +115,7 @@ </item> <item> <key> <string>edit_form_id</string> </key> - <value> - <none/> - </value> + <value> <string>Base_viewBasicGadgetPreferenceDialog</string> </value> </item> <item> <key> <string>id</string> </key> @@ -165,7 +160,7 @@ </record> <record id="3" aka="AAAAAAAAAAM="> <pickle> - <global name="OOBTree" module="BTrees._OOBTree"/> + <global name="OOBTree" module="BTrees.OOBTree"/> </pickle> <pickle> <none/> @@ -173,7 +168,7 @@ </record> <record id="4" aka="AAAAAAAAAAQ="> <pickle> - <global name="OOBTree" module="BTrees._OOBTree"/> + <global name="OOBTree" module="BTrees.OOBTree"/> </pickle> <pickle> <none/> diff --git a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewPersonListGadgetPreferenceDialog.xml b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/Base_viewBasicGadgetPreferenceDialog.xml similarity index 93% rename from bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewPersonListGadgetPreferenceDialog.xml rename to bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/Base_viewBasicGadgetPreferenceDialog.xml index 29f5a361f2..7119c5dd89 100644 --- a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewPersonListGadgetPreferenceDialog.xml +++ b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/Base_viewBasicGadgetPreferenceDialog.xml @@ -39,7 +39,7 @@ </item> <item> <key> <string>description</string> </key> - <value> <string>Auto generated form</string> </value> + <value> <string>Basic gadget preferences edit form.</string> </value> </item> <item> <key> <string>edit_order</string> </key> @@ -109,7 +109,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>ERP5Site_viewPersonListGadgetPreferenceDialog</string> </value> + <value> <string>Base_viewBasicGadgetPreferenceDialog</string> </value> </item> <item> <key> <string>method</string> </key> @@ -143,6 +143,10 @@ <key> <string>update_action</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>update_action_title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </pickle> </record> diff --git a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewPersonListGadgetPreferenceDialog/my_listbox_selection_list_lines.xml b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/Base_viewBasicGadgetPreferenceDialog/my_listbox_selection_list_lines.xml similarity index 92% rename from bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewPersonListGadgetPreferenceDialog/my_listbox_selection_list_lines.xml rename to bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/Base_viewBasicGadgetPreferenceDialog/my_listbox_selection_list_lines.xml index 119e380cc9..e13f2248ec 100644 --- a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewPersonListGadgetPreferenceDialog/my_listbox_selection_list_lines.xml +++ b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/Base_viewBasicGadgetPreferenceDialog/my_listbox_selection_list_lines.xml @@ -11,6 +11,7 @@ <value> <list> <string>default</string> + <string>description</string> <string>items</string> <string>title</string> </list> @@ -83,6 +84,10 @@ <key> <string>default</string> </key> <value> <string>10</string> </value> </item> + <item> + <key> <string>description</string> </key> + <value> <string>Using this property you can set number of listbox lines in gadget.</string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string>my_gadget_preferences_list_field</string> </value> @@ -103,7 +108,7 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Show items by page</string> </value> + <value> <string>Number of lines displayed (if any)</string> </value> </item> </dictionary> </value> diff --git a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewPersonListGadgetPreferenceDialog/my_preferred_header_title.xml b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/Base_viewBasicGadgetPreferenceDialog/my_preferred_header_title.xml similarity index 100% rename from bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewPersonListGadgetPreferenceDialog/my_preferred_header_title.xml rename to bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/Base_viewBasicGadgetPreferenceDialog/my_preferred_header_title.xml diff --git a/bt5/erp5_knowledge_pad/bt/revision b/bt5/erp5_knowledge_pad/bt/revision index ec28ec146d..7b5a1ce4fd 100644 --- a/bt5/erp5_knowledge_pad/bt/revision +++ b/bt5/erp5_knowledge_pad/bt/revision @@ -1 +1 @@ -588 \ No newline at end of file +589 \ No newline at end of file -- 2.30.9