Commit d1d3efbf authored by Ivan Tyagov's avatar Ivan Tyagov

Use dedicated file system based Gadget class.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32562 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 674a41f4
...@@ -35,7 +35,9 @@ ...@@ -35,7 +35,9 @@
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>icon</string> </key> <key> <string>icon</string> </key>
...@@ -53,6 +55,10 @@ ...@@ -53,6 +55,10 @@
</tuple> </tuple>
</value> </value>
</item> </item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Action Information</string> </value>
</item>
<item> <item>
<key> <string>priority</string> </key> <key> <string>priority</string> </key>
<value> <float>2.0</float> </value> <value> <float>2.0</float> </value>
...@@ -79,7 +85,7 @@ ...@@ -79,7 +85,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>python: \'%s/%s?is_gadget_mode=0\' %(object.absolute_url(), getattr(object, \'edit_form_id\'))</string> </value> <value> <string>python: \'%s/%s?is_gadget_mode=0\' %(object.absolute_url(), object.getEditFormId())</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
...@@ -95,7 +101,7 @@ ...@@ -95,7 +101,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>python: getattr(object, \'edit_form_id\', None) is not None</string> </value> <value> <string>python: object.getEditFormId() is not None</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -33,7 +33,9 @@ ...@@ -33,7 +33,9 @@
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>icon</string> </key> <key> <string>icon</string> </key>
...@@ -51,6 +53,10 @@ ...@@ -51,6 +53,10 @@
</tuple> </tuple>
</value> </value>
</item> </item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Action Information</string> </value>
</item>
<item> <item>
<key> <string>priority</string> </key> <key> <string>priority</string> </key>
<value> <float>1.0</float> </value> <value> <float>1.0</float> </value>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="BaseCategory" module="Products.ERP5Type.Document.BaseCategory"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_folders_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Copy_or_Move_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Delete_objects_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_count</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_mt_index</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>_tree</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>gadget_render_type</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>gadget_render_type</string> </value>
</item>
<item>
<key> <string>last_id</string> </key>
<value> <string>2</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Base Category</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Gadget Render Type</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Length" module="BTrees.Length"/>
</pickle>
<pickle> <int>0</int> </pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="OOBTree" module="BTrees._OOBTree"/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="OOBTree" module="BTrees._OOBTree"/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Category" module="Products.ERP5Type.Document.Category"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_folders_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Copy_or_Move_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Delete_objects_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>gadget_render_type/gadget_render_type</string>
<string>gadget_render_type/synchronous</string>
<string>gadget_render_type/synchronous</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>asynchronous</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Category</string> </value>
</item>
<item>
<key> <string>short_title</string> </key>
<value> <string>Asynchronous</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Asynchronous</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Category" module="Products.ERP5Type.Document.Category"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_folders_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Copy_or_Move_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Delete_objects_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>gadget_render_type/gadget_render_type</string>
<string>gadget_render_type/synchronous</string>
<string>gadget_render_type/synchronous</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>synchronous</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Category</string> </value>
</item>
<item>
<key> <string>short_title</string> </key>
<value> <string>Synchronous</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Synchronous</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Folder" module="Products.ERP5Type.Document.Folder"/> <global name="Gadget" module="Products.ERP5.Document.Gadget"/>
<tuple/> <tuple/>
</tuple> </tuple>
</pickle> </pickle>
...@@ -13,30 +13,16 @@ ...@@ -13,30 +13,16 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<list> <list>
<string>Assignor</string> <string>Anonymous</string>
<string>Manager</string>
<string>Owner</string>
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <list>
<string>Assignor</string> <string>Anonymous</string>
<string>Manager</string> </list>
<string>Owner</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Folder" module="Products.ERP5Type.Document.Folder"/> <global name="Gadget" module="Products.ERP5.Document.Gadget"/>
<tuple/> <tuple/>
</tuple> </tuple>
</pickle> </pickle>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Folder" module="Products.ERP5Type.Document.Folder"/> <global name="Gadget" module="Products.ERP5.Document.Gadget"/>
<tuple/> <tuple/>
</tuple> </tuple>
</pickle> </pickle>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Folder" module="Products.ERP5Type.Document.Folder"/> <global name="Gadget" module="Products.ERP5.Document.Gadget"/>
<tuple/> <tuple/>
</tuple> </tuple>
</pickle> </pickle>
...@@ -13,30 +13,16 @@ ...@@ -13,30 +13,16 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<list> <list>
<string>Assignor</string> <string>Anonymous</string>
<string>Manager</string>
<string>Owner</string>
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <list>
<string>Assignor</string> <string>Anonymous</string>
<string>Manager</string> </list>
<string>Owner</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Folder" module="Products.ERP5Type.Document.Folder"/> <global name="Gadget" module="Products.ERP5.Document.Gadget"/>
<tuple/> <tuple/>
</tuple> </tuple>
</pickle> </pickle>
...@@ -13,30 +13,16 @@ ...@@ -13,30 +13,16 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<list> <list>
<string>Assignor</string> <string>Anonymous</string>
<string>Manager</string>
<string>Owner</string>
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <list>
<string>Assignor</string> <string>Anonymous</string>
<string>Manager</string> </list>
<string>Owner</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Folder" module="Products.ERP5Type.Document.Folder"/> <global name="Gadget" module="Products.ERP5.Document.Gadget"/>
<tuple/> <tuple/>
</tuple> </tuple>
</pickle> </pickle>
...@@ -13,30 +13,16 @@ ...@@ -13,30 +13,16 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<list> <list>
<string>Assignor</string> <string>Anonymous</string>
<string>Manager</string>
<string>Owner</string>
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <list>
<string>Assignor</string> <string>Anonymous</string>
<string>Manager</string> </list>
<string>Owner</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Folder" module="Products.ERP5Type.Document.Folder"/> <global name="Gadget" module="Products.ERP5.Document.Gadget"/>
<tuple/> <tuple/>
</tuple> </tuple>
</pickle> </pickle>
...@@ -13,30 +13,16 @@ ...@@ -13,30 +13,16 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<list> <list>
<string>Assignor</string> <string>Anonymous</string>
<string>Manager</string>
<string>Owner</string>
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <list>
<string>Assignor</string> <string>Anonymous</string>
<string>Manager</string> </list>
<string>Owner</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Folder" module="Products.ERP5Type.Document.Folder"/> <global name="Gadget" module="Products.ERP5.Document.Gadget"/>
<tuple/> <tuple/>
</tuple> </tuple>
</pickle> </pickle>
...@@ -13,30 +13,16 @@ ...@@ -13,30 +13,16 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<list> <list>
<string>Assignor</string> <string>Anonymous</string>
<string>Manager</string>
<string>Owner</string>
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <list>
<string>Assignor</string> <string>Anonymous</string>
<string>Manager</string> </list>
<string>Owner</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Folder" module="Products.ERP5Type.Document.Folder"/> <global name="Gadget" module="Products.ERP5.Document.Gadget"/>
<tuple/> <tuple/>
</tuple> </tuple>
</pickle> </pickle>
...@@ -13,30 +13,16 @@ ...@@ -13,30 +13,16 @@
<key> <string>_Access_contents_information_Permission</string> </key> <key> <string>_Access_contents_information_Permission</string> </key>
<value> <value>
<list> <list>
<string>Assignor</string> <string>Anonymous</string>
<string>Manager</string>
<string>Owner</string>
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>_View_Permission</string> </key> <key> <string>_View_Permission</string> </key>
<value> <value>
<tuple> <list>
<string>Assignor</string> <string>Anonymous</string>
<string>Manager</string> </list>
<string>Owner</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
...@@ -172,6 +158,12 @@ ...@@ -172,6 +158,12 @@
<key> <string>edit_form_id</string> </key> <key> <string>edit_form_id</string> </key>
<value> <string>ERP5Site_viewGoogleSearchGadgetPreferenceDialog</string> </value> <value> <string>ERP5Site_viewGoogleSearchGadgetPreferenceDialog</string> </value>
</item> </item>
<item>
<key> <string>gadget_type</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>google_search</string> </value> <value> <string>google_search</string> </value>
......
<base_category_list> <base_category_list>
<portal_type id="Gadget">
<item>gadget_type</item>
</portal_type>
<portal_type id="Knowledge Box"> <portal_type id="Knowledge Box">
<item>specialise</item> <item>specialise</item>
</portal_type> </portal_type>
<portal_type id="Knowledge Pad"> <portal_type id="Knowledge Pad">
<item>publication_section</item>
<item>group</item> <item>group</item>
<item>publication_section</item>
</portal_type> </portal_type>
</base_category_list> </base_category_list>
\ No newline at end of file
...@@ -28,35 +28,15 @@ ...@@ -28,35 +28,15 @@
</dictionary> </dictionary>
</value> </value>
</item> </item>
<item>
<key> <string>acquire_local_roles</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>content_icon</string> </key>
<value> <string>document_icon.gif</string> </value>
</item>
<item>
<key> <string>content_meta_type</string> </key>
<value> <string>ERP5 Gadget</string> </value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>ERP5 gadget</string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>factory</string> </key> <key> <string>factory</string> </key>
<value> <string>addXMLObject</string> </value> <value> <string>addGadget</string> </value>
</item>
<item>
<key> <string>filter_content_types</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<tuple/>
</value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
...@@ -75,8 +55,8 @@ ...@@ -75,8 +55,8 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>portal_type</string> </key>
<value> <string></string> </value> <value> <string>Base Type</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
2010-02-15 ivan
* Use dedicated file system based Gadget class
2009-11-26 Fabien 2009-11-26 Fabien
* add two more gadgets : google maps and google search. Add title on google calendar * add two more gadgets : google maps and google search. Add title on google calendar
......
452 466
\ No newline at end of file \ No newline at end of file
gadget_render_type
gadget_type gadget_type
\ No newline at end of file
portal_categories/gadget_render_type/**
portal_categories/gadget_type/** portal_categories/gadget_type/**
portal_gadgets/clock portal_gadgets/clock
portal_gadgets/clock/** portal_gadgets/clock/**
......
Gadget | gadget_type
Knowledge Box | specialise Knowledge Box | specialise
Knowledge Pad | group Knowledge Pad | group
Knowledge Pad | publication_section Knowledge Pad | publication_section
\ 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