Commit d743b1a7 authored by Ivan Tyagov's avatar Ivan Tyagov

History gadget uses listbox. Deprecate admin gadget toolbox.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38606 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5086081b
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Document import newTempBase\n
\n
request = context.REQUEST\n
portal = context.getPortalObject()\n
\n
# we can use current_web_document in case it\'s "embedded" into a Web Section\n
document = request.get(\'current_web_document\', context)\n
\n
event_document_list = []\n
event_list = document.Base_getWorkflowEventInfoList()\n
for event in event_list:\n
event_document = newTempBase(context, \'Event Info\')\n
event_document.edit(**{\'date\': event.time,\n
\'action\': event.action,\n
\'actor\': event.actor\n
})\n
event_document_list.append(event_document)\n
\n
return event_document_list\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>kw</string>
<string>Products.ERP5Type.Document</string>
<string>newTempBase</string>
<string>_getattr_</string>
<string>context</string>
<string>request</string>
<string>portal</string>
<string>document</string>
<string>event_document_list</string>
<string>event_list</string>
<string>_getiter_</string>
<string>event</string>
<string>event_document</string>
<string>_apply_</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Base_getWorkflowEventInfoAsDocumentList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/> <global name="ERP5Form" module="Products.ERP5Form.Form"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/> <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>gadget</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>gadget</string> </key>
<value>
<list>
<string>document_history</string>
</list>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Document_viewHistoryGadget</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>Document_viewHistoryGadget</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>gadget_view</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Document History</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/> <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts85230314.89</string> </value> <value> <string>ts85309775.94</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -203,6 +203,10 @@ div.edit-form fieldset{\n ...@@ -203,6 +203,10 @@ div.edit-form fieldset{\n
border: none;\n border: none;\n
}\n }\n
\n \n
div.edit-form label{\n
display: block;\n
}\n
\n
div.edit-form button{\n div.edit-form button{\n
margin-top: 0.5em;\n margin-top: 0.5em;\n
}\n }\n
...@@ -316,11 +320,6 @@ div.gadget-website-browser ul.second_level{\n ...@@ -316,11 +320,6 @@ div.gadget-website-browser ul.second_level{\n
div.gadget-website-browser ul.first_level {\n div.gadget-website-browser ul.first_level {\n
padding-bottom: 0.5em;\n padding-bottom: 0.5em;\n
}\n }\n
/*\n
div.gadget-website-browser .section-link{\n
font-size: 115%;\n
}\n
*/\n
\n \n
div.gadget-website-browser ul.second_level{\n div.gadget-website-browser ul.second_level{\n
padding-left: 0.7em;\n padding-left: 0.7em;\n
...@@ -428,49 +427,18 @@ div.gadget-rss-reader table.listbox td.listbox-table-no-result-row{\n ...@@ -428,49 +427,18 @@ div.gadget-rss-reader table.listbox td.listbox-table-no-result-row{\n
display: none;\n display: none;\n
}\n }\n
\n \n
/* Other versions gadget needs no listbox headers */\n /* "Other versions" gadget needs no listbox headers */\n
div.gadget-other-versions div.listbox-head-content\n div.gadget-other-versions div.listbox-head-content\n
{\n {\n
display: none;\n display: none;\n
}\n }\n
\n \n
\n /* "history" gadget needs no listbox headers */\n
/* Gadget admin toolbox (deprecated)*/\n div.gadget-history div.listbox-head-content\n
.gadget .adminToolbox > label{\n {\n
\n display: none;\n
display:none;\n
\n
}\n
\n
.gadget .adminToolbox .inner select{\n
\n
width: 100%;\n
\n
}\n
\n
div.adminToolbox button[type="submit"] {\n
\n
display:none;\n
\n
}\n
\n
div.adminToolbox fieldset {\n
display:block;\n
}\n
\n
div.adminToolbox fieldset .clone-button{\n
text-align: center;\n
}\n
\n
div.adminToolbox fieldset {\n
display:block;\n
}\n
\n
div.adminToolbox fieldset .clone-button{\n
text-align: center;\n
}\n }\n
\n \n
\n
div.block {\n div.block {\n
margin-bottom: 5px;\n margin-bottom: 5px;\n
}\n }\n
...@@ -525,22 +493,6 @@ div.wait_block p{\n ...@@ -525,22 +493,6 @@ div.wait_block p{\n
div.portal-column-undraggable .handle{\n div.portal-column-undraggable .handle{\n
cursor: default;\n cursor: default;\n
}\n }\n
\n
/* admin toolbox gadget fix */\n
div.block div.adminToolbox li{\n
list-style-type:none;\n
}\n
\n
/* h3 tags containing spans get affected by gadget box title */\n
div.block div.adminToolbox h3 span{\n
display:inline ;\n
float:none ;\n
}\n
\n
\n
div.block div.adminToolbox .inner label{\n
color: #9D968D;\n
}\n
]]></string> </value> ]]></string> </value>
...@@ -551,7 +503,7 @@ div.block div.adminToolbox .inner label{\n ...@@ -551,7 +503,7 @@ div.block div.adminToolbox .inner label{\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>9505</int> </value> <value> <int>8868</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/> <global name="ERP5Form" module="Products.ERP5Form.Form"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -74,7 +71,8 @@ ...@@ -74,7 +71,8 @@
<key> <string>gadget</string> </key> <key> <string>gadget</string> </key>
<value> <value>
<list> <list>
<string>document_history</string> <string>listbox</string>
<string>listbox_date</string>
</list> </list>
</value> </value>
</item> </item>
......
1557 1558
\ 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