diff --git a/bt5/erp5_osoe_web_renderjs_ui/ActionTemplateItem/portal_types/Types%20Tool/list_all_portal_type_to_create.xml b/bt5/erp5_osoe_web_renderjs_ui/ActionTemplateItem/portal_types/Types%20Tool/list_all_portal_type_to_create.xml new file mode 100644 index 0000000000000000000000000000000000000000..88e9649f823deb27416a10529ff8e8fa82eef4a3 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/ActionTemplateItem/portal_types/Types%20Tool/list_all_portal_type_to_create.xml @@ -0,0 +1,81 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>action_type/object_onlyjio_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_onlyjio_action</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>list_all_portal_type_to_create</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>5.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>New Document</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/TypesTool_viewAllPortalTypeDialog</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/ActionTemplateItem/portal_types/Types%20Tool/list_all_report.xml b/bt5/erp5_osoe_web_renderjs_ui/ActionTemplateItem/portal_types/Types%20Tool/list_all_report.xml new file mode 100644 index 0000000000000000000000000000000000000000..669e12cca5f4d24c98c6f44fb2eb2f6b3de01171 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/ActionTemplateItem/portal_types/Types%20Tool/list_all_report.xml @@ -0,0 +1,81 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>action_type/object_onlyjio_jump</string> + </tuple> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_onlyjio_jump</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>list_all_report</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>4.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Site Reports</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/TypesTool_viewAllReportDialog</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/portal_tests/osoe_rjs_zuite.xml b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/portal_tests/osoe_rjs_zuite.xml new file mode 100644 index 0000000000000000000000000000000000000000..3ababf3634ec0e917e353feec22d254591a87f78 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/portal_tests/osoe_rjs_zuite.xml @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Zuite" module="Products.Zelenium.zuite"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>osoe_rjs_zuite</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/portal_tests/osoe_rjs_zuite/testPageOsoeAccessPanel.xml b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/portal_tests/osoe_rjs_zuite/testPageOsoeAccessPanel.xml new file mode 100644 index 0000000000000000000000000000000000000000..56df35dec35a9233ace33c569e91fda92d4f549d --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/portal_tests/osoe_rjs_zuite/testPageOsoeAccessPanel.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> + </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> + <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>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>testPageOsoeAccessPanel</string> </value> + </item> + <item> + <key> <string>output_encoding</string> </key> + <value> <string>utf-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <unicode></unicode> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/portal_tests/osoe_rjs_zuite/testPageOsoeAccessPanel.zpt b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/portal_tests/osoe_rjs_zuite/testPageOsoeAccessPanel.zpt new file mode 100644 index 0000000000000000000000000000000000000000..48dfb249f33576f0bb3126f98fbab4c256a6b5dc --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/portal_tests/osoe_rjs_zuite/testPageOsoeAccessPanel.zpt @@ -0,0 +1,102 @@ +<html xmlns:tal="http://xml.zope.org/namespaces/tal" + xmlns:metal="http://xml.zope.org/namespaces/metal"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>Test Page Front</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Test Page Front</td></tr> +</thead><tbody> +<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" /> + +<tr> + <td>open</td> + <td>${base_url}/web_site_module/renderjs_runner/#/?page=osoe_access</td> + <td></td> +</tr> +<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded" /> + +<tr> + <td>assertElementPresent</td> + <td>//div[@data-gadget-scope='panel']//a[text()='Site Reports' and contains(@class, 'active')]</td> + <td></td> +</tr> +<tr> + <td>assertElementNotPresent</td> + <td>//div[@data-gadget-scope='panel']//a[text()='New' and contains(@class, 'active')]</td> + <td></td> +</tr> +<tr> + <td>assertElementNotPresent</td> + <td>//div[@data-gadget-scope='panel']//a[text()='Contribute File' and contains(@class, 'active')]</td> + <td></td> +</tr> + +<tal:block tal:define="click_configuration python: {'text': 'New'}"> + <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link" /> +</tal:block> +<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" /> + +<tr> + <td>assertElementNotPresent</td> + <td>//div[@data-gadget-scope='panel']//a[text()='Site Reports' and contains(@class, 'active')]</td> + <td></td> +</tr> +<tr> + <td>assertElementPresent</td> + <td>//div[@data-gadget-scope='panel']//a[text()='New' and contains(@class, 'active')]</td> + <td></td> +</tr> +<tr> + <td>assertElementNotPresent</td> + <td>//div[@data-gadget-scope='panel']//a[text()='Contribute File' and contains(@class, 'active')]</td> + <td></td> +</tr> + +<tal:block tal:define="click_configuration python: {'text': 'Contribute File'}"> + <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link" /> +</tal:block> +<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" /> + +<tr> + <td>assertElementNotPresent</td> + <td>//div[@data-gadget-scope='panel']//a[text()='Site Reports' and contains(@class, 'active')]</td> + <td></td> +</tr> +<tr> + <td>assertElementNotPresent</td> + <td>//div[@data-gadget-scope='panel']//a[text()='New' and contains(@class, 'active')]</td> + <td></td> +</tr> +<tr> + <td>assertElementPresent</td> + <td>//div[@data-gadget-scope='panel']//a[text()='Contribute File' and contains(@class, 'active')]</td> + <td></td> +</tr> + +<tal:block tal:define="click_configuration python: {'text': 'Site Reports'}"> + <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link" /> +</tal:block> +<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" /> + +<tr> + <td>assertElementPresent</td> + <td>//div[@data-gadget-scope='panel']//a[text()='Site Reports' and contains(@class, 'active')]</td> + <td></td> +</tr> +<tr> + <td>assertElementNotPresent</td> + <td>//div[@data-gadget-scope='panel']//a[text()='New' and contains(@class, 'active')]</td> + <td></td> +</tr> +<tr> + <td>assertElementNotPresent</td> + <td>//div[@data-gadget-scope='panel']//a[text()='Contribute File' and contains(@class, 'active')]</td> + <td></td> +</tr> + +</tbody></table> +</body> +</html> \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_access_html.html b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_access_html.html new file mode 100644 index 0000000000000000000000000000000000000000..28ebbca8e50446183517dc2b4cc3d78dcca4cfb7 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_access_html.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> + <!-- + data-i18n=List All Report + data-i18n=Contribute File + data-i18n=New + --> + <head> + <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> + <meta name="viewport" content="width=device-width" /> + <title>Osoe Access</title> + <link rel="http://www.renderjs.org/rel/interface" href="interface_page.html"> + + <!-- renderjs --> + <script src="rsvp.js" type="text/javascript"></script> + <script src="renderjs.js" type="text/javascript"></script> + + <script src="gadget_erp5_page_osoe_access.js" type="text/javascript"></script> + + </head> + <body> + <div data-gadget-url="gadget_erp5_page_access.html" + data-gadget-scope="access" /> + </body> +</html> \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_access_html.xml b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_access_html.xml new file mode 100644 index 0000000000000000000000000000000000000000..532b0f4c6f0450a319f61a7b08f5e2fe2a9fd129 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_access_html.xml @@ -0,0 +1,334 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Web Page" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Access_contents_information_Permission</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Add_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Change_local_roles_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> + </tuple> + </value> + </item> + <item> + <key> <string>_View_Permission</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>content_md5</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>gadget_erp5_page_osoe_access.html</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>osoe_rjs_access_html</string> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> <string>en</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Web Page</string> </value> + </item> + <item> + <key> <string>short_title</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Osoe Access</string> </value> + </item> + <item> + <key> <string>version</string> </key> + <value> <string>001</string> </value> + </item> + <item> + <key> <string>workflow_history</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>document_publication_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>edit_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>processing_status_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>publish_alive</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612776665.56</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + <item> + <key> <string>validation_state</string> </key> + <value> <string>published_alive</string> </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>edit</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>989.60638.59347.18585</string> </value> + </item> + <item> + <key> <string>state</string> </key> + <value> <string>current</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612967027.82</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="5" aka="AAAAAAAAAAU="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>detect_converted_file</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_processing_state</string> </key> + <value> <string>converted</string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>0.0.0.0</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612776517.34</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_access_js.js b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_access_js.js new file mode 100644 index 0000000000000000000000000000000000000000..f34083eccb411f02bb931812bdbecf0a00e0421f --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_access_js.js @@ -0,0 +1,34 @@ +/*jslint indent: 2, maxerr: 3, maxlen: 80 */ +/*global window, rJS, RSVP */ +(function (window, rJS, RSVP) { + "use strict"; + + rJS(window) + .declareAcquiredMethod("getTranslationDict", "getTranslationDict") + .declareMethod('render', function (options) { + return new RSVP.Queue(RSVP.hash({ + access_gadget: this.getDeclaredGadget('access'), + translation_dict: this.getTranslationDict([ + 'Site Reports', + 'Contribute File', + 'New' + ]) + })) + .push(function (result_dict) { + return result_dict.access_gadget.render(options, [{ + title: result_dict.translation_dict['Site Reports'], + jio_key: 'portal_types', + erp5_action: 'list_all_report' + }, { + title: result_dict.translation_dict.New, + jio_key: 'portal_types', + erp5_action: 'list_all_portal_type_to_create' + }, { + title: result_dict.translation_dict['Contribute File'], + jio_key: 'document_module', + erp5_action: 'contribute_file' + }]); + }); + }); + +}(window, rJS, RSVP)); \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_access_js.xml b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_access_js.xml new file mode 100644 index 0000000000000000000000000000000000000000..e962deff8f67c69172549c2e217021e151b82241 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_access_js.xml @@ -0,0 +1,336 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Web Script" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Access_contents_information_Permission</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Add_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Change_local_roles_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> + </tuple> + </value> + </item> + <item> + <key> <string>_View_Permission</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>content_md5</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>gadget_erp5_page_osoe_access.js</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>osoe_rjs_access_js</string> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> <string>en</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Web Script</string> </value> + </item> + <item> + <key> <string>short_title</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Osoe Access JS</string> </value> + </item> + <item> + <key> <string>version</string> </key> + <value> <string>001</string> </value> + </item> + <item> + <key> <string>workflow_history</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>document_publication_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>edit_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>processing_status_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>publish_alive</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612776682.57</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + <item> + <key> <string>validation_state</string> </key> + <value> <string>published_alive</string> </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>edit</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>989.60636.39444.34389</string> </value> + </item> + <item> + <key> <string>state</string> </key> + <value> <string>current</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612966999.58</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="5" aka="AAAAAAAAAAU="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>detect_converted_file</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_processing_state</string> </key> + <value> <string>converted</string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>0.0.0.0</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612776517.32</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_document_creator_html.html b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_document_creator_html.html new file mode 100644 index 0000000000000000000000000000000000000000..75961756871d1899a832a844be67dfa8b30d6c04 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_document_creator_html.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> + <meta name="viewport" content="width=device-width" /> + <title>Site Documents Creator</title> + <!--link rel="http://www.renderjs.org/rel/interface" href="interface_page.html"--> + + <!-- renderjs --> + <script src="rsvp.js" type="text/javascript"></script> + <script src="renderjs.js" type="text/javascript"></script> + + <!-- custom script --> + <script src="jiodev.js" type="text/javascript"></script> + <script src="gadget_global.js" type="text/javascript"></script> + <script src="domsugar.js" type="text/javascript"></script> + + <script src="gadget_erp5_site_document_creator.js" type="text/javascript"></script> + + </head> + <body> + </body> +</html> \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_document_creator_html.xml b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_document_creator_html.xml new file mode 100644 index 0000000000000000000000000000000000000000..83a1ac037b12b35432fc2d05ab4955a93770b69b --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_document_creator_html.xml @@ -0,0 +1,334 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Web Page" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Access_contents_information_Permission</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Add_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Change_local_roles_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> + </tuple> + </value> + </item> + <item> + <key> <string>_View_Permission</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>content_md5</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>gadget_erp5_site_document_creator.html</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>osoe_rjs_site_document_creator_html</string> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> <string>en</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Web Page</string> </value> + </item> + <item> + <key> <string>short_title</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Site Document Creator</string> </value> + </item> + <item> + <key> <string>version</string> </key> + <value> <string>001</string> </value> + </item> + <item> + <key> <string>workflow_history</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>document_publication_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>edit_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>processing_status_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>publish_alive</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612886089.59</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + <item> + <key> <string>validation_state</string> </key> + <value> <string>published_alive</string> </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>edit</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>989.59290.36599.63539</string> </value> + </item> + <item> + <key> <string>state</string> </key> + <value> <string>current</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612886081.26</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="5" aka="AAAAAAAAAAU="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>detect_converted_file</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_processing_state</string> </key> + <value> <string>converted</string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>0.0.0.0</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612885957.6</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_document_creator_js.js b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_document_creator_js.js new file mode 100644 index 0000000000000000000000000000000000000000..61e9d601ba75a7b06c45579184f25d6306939e10 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_document_creator_js.js @@ -0,0 +1,74 @@ +/*jslint nomen: true, indent: 2, maxerr: 3, maxlen: 80 */ +/*global domsugar, window, rJS */ +(function (domsugar, window, rJS) { + "use strict"; + + rJS(window) + .declareAcquiredMethod("notifySubmit", "notifySubmit") + .declareMethod('render', function (options) { + return this.changeState({ + key: options.key, + erp5_add_list: JSON.stringify(options.erp5_add_list) + }); + }) + .onStateChange(function () { + var gadget = this, + erp5_add_list = JSON.parse(gadget.state.erp5_add_list), + i, + j, + k, + business_application_element_list = [], + module_element_list; + + + for (i = 0; i < erp5_add_list.length; i += 1) { + module_element_list = []; + + for (j = 0; j < erp5_add_list[i][1].length; j += 1) { + for (k = 0; k < erp5_add_list[i][1][j][2].length; k += 1) { + module_element_list.push( + domsugar('li', [domsugar('button', { + type: 'submit', + 'data-value': erp5_add_list[i][1][j][1] + ' ' + + erp5_add_list[i][1][j][2][k][1], + text: erp5_add_list[i][1][j][2][k][0] + })]) + ); + } + } + + business_application_element_list.push(domsugar('li', [ + domsugar('h2', { + text: erp5_add_list[i][0] + }), + domsugar('ul', module_element_list) + ])); + } + + domsugar(gadget.element, [ + domsugar('ul', {'class': 'ui-list-grid'}, + business_application_element_list) + ]); + + }) + + .declareMethod('getContent', function () { + var result = {}; + if (this.state.value !== undefined) { + result[this.state.key] = this.state.value; + } + return result; + }, {mutex: 'changestate'}) + + .declareMethod('checkValidity', function () { + return (this.state.value !== undefined); + }, {mutex: 'changestate'}) + + .onEvent('click', function (evt) { + if (evt.target.tagName === 'BUTTON') { + this.state.value = evt.target.getAttribute('data-value'); + } + return this.notifySubmit(); + }, false); + +}(domsugar, window, rJS)); \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_document_creator_js.xml b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_document_creator_js.xml new file mode 100644 index 0000000000000000000000000000000000000000..f0cebefa2722d7be857acfd82b00d4f4a1f9c783 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_document_creator_js.xml @@ -0,0 +1,336 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Web Script" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Access_contents_information_Permission</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Add_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Change_local_roles_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> + </tuple> + </value> + </item> + <item> + <key> <string>_View_Permission</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>content_md5</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>gadget_erp5_site_document_creator.js</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>osoe_rjs_site_document_creator_js</string> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> <string>en</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Web Script</string> </value> + </item> + <item> + <key> <string>short_title</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Site Document Creator JS</string> </value> + </item> + <item> + <key> <string>version</string> </key> + <value> <string>001</string> </value> + </item> + <item> + <key> <string>workflow_history</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>document_publication_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>edit_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>processing_status_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>publish_alive</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612886101.35</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + <item> + <key> <string>validation_state</string> </key> + <value> <string>published_alive</string> </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>edit</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>989.60636.39444.34389</string> </value> + </item> + <item> + <key> <string>state</string> </key> + <value> <string>current</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612969693.16</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="5" aka="AAAAAAAAAAU="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>detect_converted_file</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_processing_state</string> </key> + <value> <string>converted</string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>0.0.0.0</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612886023.04</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_report_viewer_html.html b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_report_viewer_html.html new file mode 100644 index 0000000000000000000000000000000000000000..07f5d141ea638af9bbe49262ce64f0fa92a1f37c --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_report_viewer_html.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> + <meta name="viewport" content="width=device-width" /> + <title>Site Reports</title> + <!--link rel="http://www.renderjs.org/rel/interface" href="interface_page.html"--> + + <!-- renderjs --> + <script src="rsvp.js" type="text/javascript"></script> + <script src="renderjs.js" type="text/javascript"></script> + + <!-- custom script --> + <script src="jiodev.js" type="text/javascript"></script> + <script src="gadget_global.js" type="text/javascript"></script> + <script src="domsugar.js" type="text/javascript"></script> + + <script src="gadget_erp5_site_report_viewer.js" type="text/javascript"></script> + + </head> + <body> + </body> +</html> \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_report_viewer_html.xml b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_report_viewer_html.xml new file mode 100644 index 0000000000000000000000000000000000000000..49b4dca7a98bcb503a986bff5d5a040efd6c7b8e --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_report_viewer_html.xml @@ -0,0 +1,334 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Web Page" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Access_contents_information_Permission</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Add_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Change_local_roles_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> + </tuple> + </value> + </item> + <item> + <key> <string>_View_Permission</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>content_md5</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>gadget_erp5_site_report_viewer.html</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>osoe_rjs_site_report_viewer_html</string> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> <string>en</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Web Page</string> </value> + </item> + <item> + <key> <string>short_title</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Site Reports Viewer</string> </value> + </item> + <item> + <key> <string>version</string> </key> + <value> <string>001</string> </value> + </item> + <item> + <key> <string>workflow_history</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>document_publication_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>edit_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>processing_status_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>publish_alive</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612803135.65</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + <item> + <key> <string>validation_state</string> </key> + <value> <string>published_alive</string> </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>edit</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>989.57912.14275.11827</string> </value> + </item> + <item> + <key> <string>state</string> </key> + <value> <string>current</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612870987.77</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="5" aka="AAAAAAAAAAU="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>detect_converted_file</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_processing_state</string> </key> + <value> <string>converted</string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>0.0.0.0</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612803037.8</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_report_viewer_js.js b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_report_viewer_js.js new file mode 100644 index 0000000000000000000000000000000000000000..1da2b333f5c75a83ab8b326806a26ff3fa59b3f9 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_report_viewer_js.js @@ -0,0 +1,95 @@ +/*jslint nomen: true, indent: 2, maxerr: 3, maxlen: 80 */ +/*global domsugar, window, rJS, RSVP */ +(function (domsugar, window, rJS, RSVP) { + "use strict"; + + rJS(window) + ///////////////////////////////////////////////////////////////// + // Acquired methods + ///////////////////////////////////////////////////////////////// + .declareAcquiredMethod("updateHeader", "updateHeader") + .declareAcquiredMethod("getTranslationDict", "getTranslationDict") + .declareAcquiredMethod("getUrlForDict", "getUrlForDict") + .declareAcquiredMethod("redirect", "redirect") + .declareAcquiredMethod("jio_getAttachment", "jio_getAttachment") + + .declareMethod('triggerSubmit', function () { + return; + }) + + .allowPublicAcquisition('updateHeader', function () { + return; + }) + .allowPublicAcquisition('updatePanel', function () { + return; + }) + + //////////////////////////////////////////////////////////////////// + // Go + //////////////////////////////////////////////////////////////////// + .declareMethod('render', function (options) { + var gadget = this, + erp5_report_list = options.erp5_report_list, + i, + j, + k, + business_application_element_list = [], + module_element_list, + url_for_dict = {}; + + for (i = 0; i < erp5_report_list.length; i += 1) { + for (j = 0; j < erp5_report_list[i][1].length; j += 1) { + for (k = 0; k < erp5_report_list[i][1][j][2].length; k += 1) { + url_for_dict[erp5_report_list[i][1][j][1] + + erp5_report_list[i][1][j][2][k][1]] = { + command: 'display_erp5_dialog_with_history', + options: { + jio_key: erp5_report_list[i][1][j][1], + page: erp5_report_list[i][1][j][2][k][1] + } + }; + } + } + } + + return new RSVP.Queue(gadget.getUrlForDict(url_for_dict)) + .push(function (url_dict) { + + for (i = 0; i < erp5_report_list.length; i += 1) { + module_element_list = []; + + for (j = 0; j < erp5_report_list[i][1].length; j += 1) { + module_element_list.push( + domsugar('li', [domsugar('h3', { + text: erp5_report_list[i][1][j][0] + })]) + ); + + for (k = 0; k < erp5_report_list[i][1][j][2].length; k += 1) { + module_element_list.push( + domsugar('li', [domsugar('a', { + href: url_dict[erp5_report_list[i][1][j][1] + + erp5_report_list[i][1][j][2][k][1]], + text: erp5_report_list[i][1][j][2][k][0] + })]) + ); + } + } + + business_application_element_list.push(domsugar('li', [ + domsugar('h2', { + text: erp5_report_list[i][0] + }), + domsugar('ul', module_element_list) + ])); + } + + domsugar(gadget.element, [ + domsugar('ul', {'class': 'ui-list-grid'}, + business_application_element_list) + ]); + }); + + }); + +}(domsugar, window, rJS, RSVP)); \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_report_viewer_js.xml b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_report_viewer_js.xml new file mode 100644 index 0000000000000000000000000000000000000000..9dee7a0a06f61c3791dd5007d4d2ef573a8d478f --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_report_viewer_js.xml @@ -0,0 +1,336 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Web Script" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Access_contents_information_Permission</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Add_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Change_local_roles_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> + </tuple> + </value> + </item> + <item> + <key> <string>_View_Permission</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>content_md5</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>gadget_erp5_site_report_viewer.js</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>osoe_rjs_site_report_viewer_js</string> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> <string>en</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Web Script</string> </value> + </item> + <item> + <key> <string>short_title</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Site Reports Viewer JS</string> </value> + </item> + <item> + <key> <string>version</string> </key> + <value> <string>001</string> </value> + </item> + <item> + <key> <string>workflow_history</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>document_publication_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>edit_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>processing_status_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>publish_alive</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612803203.18</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + <item> + <key> <string>validation_state</string> </key> + <value> <string>published_alive</string> </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>edit</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>989.60684.2185.53452</string> </value> + </item> + <item> + <key> <string>state</string> </key> + <value> <string>current</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1613559827.13</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="5" aka="AAAAAAAAAAU="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>detect_converted_file</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_processing_state</string> </key> + <value> <string>converted</string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>0.0.0.0</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1612803037.77</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs.xml b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs.xml new file mode 100644 index 0000000000000000000000000000000000000000..3ca20f6f5ff05ce6aaa349ebda35213be40b6748 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs.xml @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Folder" module="OFS.Folder"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>erp5_osoe_web_renderjs</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/Base_doSiteAction.py b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/Base_doSiteAction.py new file mode 100644 index 0000000000000000000000000000000000000000..fd06afcd58e8eccde6780375b063aa0322c9a2b4 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/Base_doSiteAction.py @@ -0,0 +1,6 @@ +portal = context.getPortalObject() + +module_id, select_action = select_action.split(' ', 1) +module = portal.restrictedTraverse(module_id) + +return module.Base_doAction(select_action, dialog_id, **kw) diff --git a/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/Base_doSiteAction.xml b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/Base_doSiteAction.xml new file mode 100644 index 0000000000000000000000000000000000000000..a8083277bc3d7e517dd3f90b4de9a6240b7dbd0c --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/Base_doSiteAction.xml @@ -0,0 +1,62 @@ +<?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>_params</string> </key> + <value> <string>select_action, dialog_id, **kw</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Base_doSiteAction</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_getCategorizedModuleActionInformationDict.py b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_getCategorizedModuleActionInformationDict.py new file mode 100644 index 0000000000000000000000000000000000000000..f59660aea36b2e05cea60eff5359337a9199fb33 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_getCategorizedModuleActionInformationDict.py @@ -0,0 +1,107 @@ +from Products.ERP5Type.Cache import CachingMethod + +portal = context.getPortalObject() + +def getModuleActionInformationDict(**kw): + Base_translateString = portal.Base_translateString + result_dict = {} + + # If the user is not allowed to get the category, return immediately. + business_application = portal.restrictedTraverse('portal_categories/business_application', + None) + if business_application is None: + return result_dict + + listFilteredActionsFor = portal.portal_actions.listFilteredActionsFor + + # Use searchFolder, because security checks are required, and sorting + # is not supported by listFolderContents. + for o in business_application.searchFolder(sort_on='int_index'): + module_category = o.getObject() + module_list = module_category.getBusinessApplicationRelatedValueList( + checked_permission='View', + portal_type=portal.getPortalModuleTypeList()) + + # It is necessary to sort the modules by translated titles for convenience. + titled_module_list = [(module.getTranslatedTitle(), module) for module in module_list] + titled_module_list.sort(key=lambda x: x[0]) + + view_list = [] + add_list = [] + search_list = [] + exchange_list = [] + report_list = [] + print_list = [] + + for translated_title, module in titled_module_list: + action_dict = module.Base_filterDuplicateActions(listFilteredActionsFor(module)) + + # Collect view actions. + # view_list.append((translated_title, module.getId())) + + # Collect add actions. + module_add_list = [] + for content_type in module.getVisibleAllowedContentTypeList(): + action = 'add %s' % content_type + module_add_list.append((Base_translateString(content_type), action)) + for template in module.getDocumentTemplateList(): + action = 'template %s' % template.getRelativeUrl() + template_name = Base_translateString('${template_title} (Template)', + mapping=dict(template_title=template.getTitle())) + module_add_list.append((template_name, action)) + if module_add_list: + add_list.append((translated_title, module.getId(), module_add_list)) + + """ + # Collect exchange actions. + module_exchange_list = [] + for exchange_action in action_dict.get('object_exchange', ()): + url = renderCustomLink(exchange_action['url'], + dict(cancel_url=cancel_url, + form_id=form_id, + selection_name=selection_name, + dialog_category='object_exchange')).strip() + module_exchange_list.append((Base_translateString(exchange_action['name']), url)) + if module_exchange_list: + exchange_list.append((translated_title, module_exchange_list)) + """ + # Collect report actions. + module_report_list = [] + for report_action in action_dict.get('object_jio_report', ()): + module_report_list.append((Base_translateString(report_action['name']), report_action['id'])) + if module_report_list: + report_list.append((translated_title, module.getId(), module_report_list)) + + """ + # Collect print actions. + module_print_list = [] + for print_action in action_dict.get('object_print', ()): + url = renderCustomLink(print_action['url'], + dict(cancel_url=cancel_url, + form_id=form_id, + selection_name=selection_name, + dialog_category='object_print')).strip() + module_print_list.append((Base_translateString(print_action['name']), url)) + if module_print_list: + print_list.append((translated_title, module_print_list)) + """ + + # Add the actions, only if they are not empty. + for k, v in (('add', add_list), + ('exchange', exchange_list), ('report', report_list), + ('print', print_list), ('view', view_list)): + if v: + result_dict.setdefault(k, []).append((module_category.getTranslatedTitle(), v)) + + return result_dict + +""" +getModuleActionInformationDict = CachingMethod(getModuleActionInformationDict, + id='ERP5Site_getModuleActionInformationDict', + cache_factory='erp5_ui_long') +""" +# those parameters are only used for the caching key +return getModuleActionInformationDict( + user = portal.portal_membership.getAuthenticatedMember().getId(), + server_url = portal.REQUEST.SERVER_URL, + language = portal.Localizer.get_selected_language()) diff --git a/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_getCategorizedModuleActionInformationDict.xml b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_getCategorizedModuleActionInformationDict.xml new file mode 100644 index 0000000000000000000000000000000000000000..1772ff60192cfb4b8d1e1cde17ac45cb61cbd917 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_getCategorizedModuleActionInformationDict.xml @@ -0,0 +1,62 @@ +<?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>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TypesTool_getCategorizedModuleActionInformationDict</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_viewAllPortalTypeDialog.xml b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_viewAllPortalTypeDialog.xml new file mode 100644 index 0000000000000000000000000000000000000000..ddfaf8ac8eeadfd68cc4d619d651aa0f76bc96cd --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_viewAllPortalTypeDialog.xml @@ -0,0 +1,139 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ERP5 Form" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string>Base_doSiteAction</string> </value> + </item> + <item> + <key> <string>action_title</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>left</string> + <string>right</string> + <string>center</string> + <string>bottom</string> + <string>hidden</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list> + <string>your_select_action</string> + </list> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TypesTool_viewAllPortalTypeDialog</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>TypesTool_viewAllPortalTypeDialog</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>ERP5 Form</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_dialog</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>New Document</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> + <item> + <key> <string>update_action_title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_viewAllPortalTypeDialog/your_select_action.xml b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_viewAllPortalTypeDialog/your_select_action.xml new file mode 100644 index 0000000000000000000000000000000000000000..edb3d23e302322012f3acfb5301896064994c148 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_viewAllPortalTypeDialog/your_select_action.xml @@ -0,0 +1,137 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>default</string> + <string>description</string> + <string>gadget_url</string> + <string>renderjs_extra</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>your_select_action</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> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <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>gadget_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>renderjs_extra</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_text_content</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>gadget_url</string> </key> + <value> <string>gadget_erp5_site_document_creator.html</string> </value> + </item> + <item> + <key> <string>renderjs_extra</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Grid</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(\'erp5_add_list\', here.TypesTool_getCategorizedModuleActionInformationDict().get(\'add\', []))]</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_viewAllReportDialog.xml b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_viewAllReportDialog.xml new file mode 100644 index 0000000000000000000000000000000000000000..ee2f66145523368bf709f2a39f69ead6525ab48a --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_viewAllReportDialog.xml @@ -0,0 +1,139 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ERP5 Form" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>action_title</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>left</string> + <string>right</string> + <string>center</string> + <string>bottom</string> + <string>hidden</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list> + <string>report_grid</string> + </list> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TypesTool_viewAllReportDialog</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>TypesTool_viewAllReportDialog</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>ERP5 Form</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_dialog</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>Site Reports</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> + <item> + <key> <string>update_action_title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_viewAllReportDialog/report_grid.xml b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_viewAllReportDialog/report_grid.xml new file mode 100644 index 0000000000000000000000000000000000000000..b7705c701e1519660471bae9f7b16a7c4c8ae36f --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_viewAllReportDialog/report_grid.xml @@ -0,0 +1,132 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>default</string> + <string>gadget_url</string> + <string>renderjs_extra</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>report_grid</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> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <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>gadget_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>renderjs_extra</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_gadget_field</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>gadget_url</string> </key> + <value> <string>gadget_erp5_site_report_viewer.html</string> </value> + </item> + <item> + <key> <string>renderjs_extra</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Grid</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(\'erp5_report_list\', here.TypesTool_getCategorizedModuleActionInformationDict().get(\'report\', []))]</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/TestTemplateItem/portal_components/test.erp5.testFunctionalOsoeRJS.py b/bt5/erp5_osoe_web_renderjs_ui/TestTemplateItem/portal_components/test.erp5.testFunctionalOsoeRJS.py new file mode 100644 index 0000000000000000000000000000000000000000..0ad31531342595b1983120cae60c70c730b48e8d --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/TestTemplateItem/portal_components/test.erp5.testFunctionalOsoeRJS.py @@ -0,0 +1,50 @@ +############################################################################## +# +# Copyright (c) 2011 Nexedi SARL and Contributors. All Rights Reserved. +# Kazuhiko <kazuhiko@nexedi.com> +# Rafael Monnerat <rafael@nexedi.com> +# +# WARNING: This program as such is intended to be used by professional +# programmers who take the whole responsability of assessing all potential +# consequences resulting from its eventual inadequacies and bugs +# End users who are looking for a ready-to-use solution with commercial +# garantees and support are strongly adviced to contract a Free Software +# Service Company +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +############################################################################## +import unittest + +from Products.ERP5Type.tests.ERP5TypeFunctionalTestCase import ERP5TypeFunctionalTestCase + +class TestOsoeRJS(ERP5TypeFunctionalTestCase): + foreground = 0 + run_only = "osoe_rjs_zuite" + + def getBusinessTemplateList(self): + return ( + 'erp5_web_renderjs_ui', + 'erp5_web_renderjs_ui_test', + 'erp5_ui_test_core', + 'erp5_accounting', + 'erp5_test_result', + 'erp5_osoe_web_renderjs_ui', + ) + +def test_suite(): + suite = unittest.TestSuite() + suite.addTest(unittest.makeSuite(TestOsoeRJS)) + return suite \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/TestTemplateItem/portal_components/test.erp5.testFunctionalOsoeRJS.xml b/bt5/erp5_osoe_web_renderjs_ui/TestTemplateItem/portal_components/test.erp5.testFunctionalOsoeRJS.xml new file mode 100644 index 0000000000000000000000000000000000000000..525039a92bff9f4d01075db4050d8fcf44b68b87 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/TestTemplateItem/portal_components/test.erp5.testFunctionalOsoeRJS.xml @@ -0,0 +1,133 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Test Component" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_recorded_property_dict</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>testFunctionalOsoeRJS</string> </value> + </item> + <item> + <key> <string>default_source_reference</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>test.erp5.testFunctionalOsoeRJS</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Test Component</string> </value> + </item> + <item> + <key> <string>sid</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>text_content_error_message</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>text_content_warning_message</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>version</string> </key> + <value> <string>erp5</string> </value> + </item> + <item> + <key> <string>workflow_history</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>component_validation_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>validate</string> </value> + </item> + <item> + <key> <string>validation_state</string> </key> + <value> <string>validated</string> </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_osoe_web_renderjs_ui/bt/dependency_list b/bt5/erp5_osoe_web_renderjs_ui/bt/dependency_list new file mode 100644 index 0000000000000000000000000000000000000000..6b7b89794e2f0be0bfa5249c01c6fbdb760a024f --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/bt/dependency_list @@ -0,0 +1 @@ +erp5_web_renderjs_ui \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/bt/license b/bt5/erp5_osoe_web_renderjs_ui/bt/license new file mode 100644 index 0000000000000000000000000000000000000000..3a3e12bcad97e4b3bdd6a8bb499fd23a4bcb0819 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/bt/license @@ -0,0 +1 @@ +GPL \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/bt/template_action_path_list b/bt5/erp5_osoe_web_renderjs_ui/bt/template_action_path_list new file mode 100644 index 0000000000000000000000000000000000000000..8e0372354aa35026112d4961a66fa3db303593db --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/bt/template_action_path_list @@ -0,0 +1,2 @@ +Types Tool | list_all_portal_type_to_create +Types Tool | list_all_report \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/bt/template_format_version b/bt5/erp5_osoe_web_renderjs_ui/bt/template_format_version new file mode 100644 index 0000000000000000000000000000000000000000..56a6051ca2b02b04ef92d5150c9ef600403cb1de --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/bt/template_format_version @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/bt/template_keep_last_workflow_history_only_path_list b/bt5/erp5_osoe_web_renderjs_ui/bt/template_keep_last_workflow_history_only_path_list new file mode 100644 index 0000000000000000000000000000000000000000..5ec49102a29664a0c48c465cbe11668985ea2407 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/bt/template_keep_last_workflow_history_only_path_list @@ -0,0 +1 @@ +web_page_module/osoe_rjs_* \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/bt/template_keep_workflow_path_list b/bt5/erp5_osoe_web_renderjs_ui/bt/template_keep_workflow_path_list new file mode 100644 index 0000000000000000000000000000000000000000..5ec49102a29664a0c48c465cbe11668985ea2407 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/bt/template_keep_workflow_path_list @@ -0,0 +1 @@ +web_page_module/osoe_rjs_* \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/bt/template_path_list b/bt5/erp5_osoe_web_renderjs_ui/bt/template_path_list new file mode 100644 index 0000000000000000000000000000000000000000..3f822d9335499221f02776c953454580e62a5d0d --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/bt/template_path_list @@ -0,0 +1,3 @@ +portal_tests/osoe_rjs_zuite +portal_tests/osoe_rjs_zuite/** +web_page_module/osoe_rjs_* \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/bt/template_skin_id_list b/bt5/erp5_osoe_web_renderjs_ui/bt/template_skin_id_list new file mode 100644 index 0000000000000000000000000000000000000000..ecd982ca875494bd3c6d6adcf7ceede739d5c116 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/bt/template_skin_id_list @@ -0,0 +1 @@ +erp5_osoe_web_renderjs \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/bt/template_test_id_list b/bt5/erp5_osoe_web_renderjs_ui/bt/template_test_id_list new file mode 100644 index 0000000000000000000000000000000000000000..43466066d40d1b3fc8e1048da4dfa3a67a3b8c30 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/bt/template_test_id_list @@ -0,0 +1 @@ +test.erp5.testFunctionalOsoeRJS \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/bt/test_dependency_list b/bt5/erp5_osoe_web_renderjs_ui/bt/test_dependency_list new file mode 100644 index 0000000000000000000000000000000000000000..8661479c95a4b73723dab3979d66b130b79ae2bf --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/bt/test_dependency_list @@ -0,0 +1,2 @@ +erp5_web_renderjs_ui_test +erp5_full_text_mroonga_catalog \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/bt/title b/bt5/erp5_osoe_web_renderjs_ui/bt/title new file mode 100644 index 0000000000000000000000000000000000000000..ab4ebffbad9ea3d65839808c9b99cac7de08b6df --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/bt/title @@ -0,0 +1 @@ +erp5_osoe_web_renderjs_ui \ No newline at end of file diff --git a/bt5/erp5_osoe_web_renderjs_ui/bt/version b/bt5/erp5_osoe_web_renderjs_ui/bt/version new file mode 100644 index 0000000000000000000000000000000000000000..ceab6e11ece0bcec917c12e11d350946f085d549 --- /dev/null +++ b/bt5/erp5_osoe_web_renderjs_ui/bt/version @@ -0,0 +1 @@ +0.1 \ No newline at end of file