diff --git a/bt5/erp5_api_style/ActionTemplateItem/portal_types/Error%20Record%20Module/view.xml b/bt5/erp5_api_style/ActionTemplateItem/portal_types/Error%20Record%20Module/view.xml new file mode 100644 index 0000000000000000000000000000000000000000..9fdd4457c18b2db8f94dad77627751cf59eaec1a --- /dev/null +++ b/bt5/erp5_api_style/ActionTemplateItem/portal_types/Error%20Record%20Module/view.xml @@ -0,0 +1,83 @@ +<?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_list</string> + </tuple> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_list</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>view</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Action Information</string> </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>1.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>View</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}/ErrorRecordModule_viewErrorRecordList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/ActionTemplateItem/portal_types/Error%20Record/view.xml b/bt5/erp5_api_style/ActionTemplateItem/portal_types/Error%20Record/view.xml new file mode 100644 index 0000000000000000000000000000000000000000..ec2f4c3f82dd360e28355284e69a747917d208fb --- /dev/null +++ b/bt5/erp5_api_style/ActionTemplateItem/portal_types/Error%20Record/view.xml @@ -0,0 +1,83 @@ +<?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_view</string> + </tuple> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>view</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Action Information</string> </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>1.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>View</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}/ErrorRecord_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/layout_configuration.xml b/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/layout_configuration.xml new file mode 100644 index 0000000000000000000000000000000000000000..aecb126dc8b07002d32d6ca0b5941f48fbc25dbb --- /dev/null +++ b/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/layout_configuration.xml @@ -0,0 +1,94 @@ +<?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_view</string> + </tuple> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>layout_configuration</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>Layout Configuration</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}/${here/getLayoutConfigurationFormId}</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>here/getLayoutConfigurationFormId</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/local_permission.xml b/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/local_permission.xml new file mode 100644 index 0000000000000000000000000000000000000000..b4a9f57748c975e5132679bc06ead69013fef3ec --- /dev/null +++ b/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/local_permission.xml @@ -0,0 +1,94 @@ +<?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_view</string> + </tuple> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>local_permission</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>7.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Local Roles</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}/Base_viewLocalPermissionList</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>python: \'Role Definition\' in portal.portal_types[\'Web Section\'].getTypeAllowedContentTypeList()</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/predicate.xml b/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/predicate.xml new file mode 100644 index 0000000000000000000000000000000000000000..3d9eb482580f927ba8aadd4b443a90158310f0f4 --- /dev/null +++ b/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/predicate.xml @@ -0,0 +1,79 @@ +<?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_view</string> + </tuple> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>predicate</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>Modify portal content</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>Predicate</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}/Predicate_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/section_content.xml b/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/section_content.xml new file mode 100644 index 0000000000000000000000000000000000000000..97e0f277c72f5de7b7876372afecc0f26dfa55a9 --- /dev/null +++ b/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/section_content.xml @@ -0,0 +1,79 @@ +<?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_view</string> + </tuple> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>section_content</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>6.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Contents</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}/WebSection_viewContent</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/view.xml b/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/view.xml new file mode 100644 index 0000000000000000000000000000000000000000..00571ce7c8b1b3096066f0fd49e9b0ffb44d2bbd --- /dev/null +++ b/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/view.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_view</string> + </tuple> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</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>view</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>1.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>View</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}/WebSection_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/web_view.xml b/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/web_view.xml new file mode 100644 index 0000000000000000000000000000000000000000..833e4260c69195430d4138ee5b1b49e850880cdf --- /dev/null +++ b/bt5/erp5_api_style/ActionTemplateItem/portal_types/jIO%20Web%20Section/web_view.xml @@ -0,0 +1,96 @@ +<?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_web_view</string> + </tuple> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_web_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </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>web_view</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>0.1</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Web View</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}/WebSection_viewAsWeb</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>python: object is not None and object.isWebMode() and not object.isEditableMode()</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/DocumentTemplateItem/portal_components/document.erp5.jIOWebSection.py b/bt5/erp5_api_style/DocumentTemplateItem/portal_components/document.erp5.jIOWebSection.py new file mode 100644 index 0000000000000000000000000000000000000000..275286db18d328e564c04130b2b34026e398027b --- /dev/null +++ b/bt5/erp5_api_style/DocumentTemplateItem/portal_components/document.erp5.jIOWebSection.py @@ -0,0 +1,94 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Copyright (c) 2016 Nexedi SA and Contributors. All Rights Reserved. +# Cédric Le Ninivin <cedric.leninivin@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. +# +############################################################################## + +from AccessControl import ClassSecurityInfo +from Acquisition import aq_base, aq_inner +from erp5.component.document.WebSection import WebSection +from Products.ERP5Type import Permissions + +MARKER = [] +class jIOWebSection(WebSection): + """ + This Web Section is a wrapper to jIO to pass content in the body + """ + + portal_type = 'jIO Web Section' + security = ClassSecurityInfo() + security.declareObjectProtected(Permissions.AccessContentsInformation) + + security.declareProtected(Permissions.AccessContentsInformation, 'getLayoutProperty') + def getLayoutProperty(self, key, default=None): + """ + A simple method to get a property of the current by + acquiring it from the current section or its parents. + """ + section = aq_inner(self) + while section.getPortalType() in ('Web Section', 'Web Site', 'Static Web Section', 'Static Web Site', + 'jIO Web Section'): + result = section.getProperty(key, MARKER) + if result not in (MARKER, None): + return result + section = section.aq_parent + return default + + security.declareProtected(Permissions.View, 'get') + def get(self): + """ + Taken from WebSection Bobo Traverse, the difference is that + __bobo_traverse__ from DocumentExtensibleTraversableMixin is not called + """ + # Register current web site physical path for later URL generation + return self.ERP5Site_asjIOStyle(mode="get", text_content=self.REQUEST.get('BODY')) + + security.declareProtected(Permissions.View, 'post') + def post(self): + """ + Taken from WebSection Bobo Traverse, the difference is that + __bobo_traverse__ from DocumentExtensibleTraversableMixin is not called + """ + # Register current web site physical path for later URL generation + return self.ERP5Site_asjIOStyle(mode="post", text_content=self.REQUEST.get('BODY')) + + security.declareProtected(Permissions.View, 'put') + def put(self): + """ + Taken from WebSection Bobo Traverse, the difference is that + __bobo_traverse__ from DocumentExtensibleTraversableMixin is not called + """ + # Register current web site physical path for later URL generation + return self.ERP5Site_asjIOStyle(mode="put", text_content=self.REQUEST.get('BODY')) + + security.declareProtected(Permissions.View, 'allDocs') + def allDocs(self): + """ + Taken from WebSection Bobo Traverse, the difference is that + __bobo_traverse__ from DocumentExtensibleTraversableMixin is not called + """ + # Register current web site physical path for later URL generation + return self.ERP5Site_asjIOStyle(mode="allDocs", text_content=self.REQUEST.get('BODY')) diff --git a/bt5/erp5_api_style/DocumentTemplateItem/portal_components/document.erp5.jIOWebSection.xml b/bt5/erp5_api_style/DocumentTemplateItem/portal_components/document.erp5.jIOWebSection.xml new file mode 100644 index 0000000000000000000000000000000000000000..614b75f59121dac0a927a2cc6d723e3da19e081c --- /dev/null +++ b/bt5/erp5_api_style/DocumentTemplateItem/portal_components/document.erp5.jIOWebSection.xml @@ -0,0 +1,136 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Document 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>jIOWebSection</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>document.erp5.jIOWebSection</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Document 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> + <string>W: 61, 2: Arguments number differs from overridden \'get\' method (arguments-differ)</string> + <string>W: 31, 0: Unused aq_base imported from Acquisition (unused-import)</string> + </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_api_style/ModuleTemplateItem/error_record_module.xml b/bt5/erp5_api_style/ModuleTemplateItem/error_record_module.xml new file mode 100644 index 0000000000000000000000000000000000000000..7f11cb4125e5db65739868682faf83663ac904e3 --- /dev/null +++ b/bt5/erp5_api_style/ModuleTemplateItem/error_record_module.xml @@ -0,0 +1,99 @@ +<module> + <category_list> + <category>business_application/flow</category> + </category_list> + <id>error_record_module</id> + <permission_list> + <permission type='tuple'> + <name>Access Transient Objects</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Access contents information</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Access session data</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add portal content</name> + <role>Assignor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add portal folders</name> + <role>Assignor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change local roles</name> + <role>Assignor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Copy or Move</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Delete objects</name> + <role>Assignor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>List folder contents</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Modify portal content</name> + <role>Assignor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>View</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>View History</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + </permission_list> + <portal_type>Error Record Module</portal_type> + <title>Error Records</title> +</module> \ No newline at end of file diff --git a/bt5/erp5_api_style/PathTemplateItem/web_page_module/api-style_alldocs-response-schema.json.json b/bt5/erp5_api_style/PathTemplateItem/web_page_module/api-style_alldocs-response-schema.json.json new file mode 100644 index 0000000000000000000000000000000000000000..3d2b4f92ea056bceb3628c89d8ac82f7f431d4bb --- /dev/null +++ b/bt5/erp5_api_style/PathTemplateItem/web_page_module/api-style_alldocs-response-schema.json.json @@ -0,0 +1,18 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "alldocs-response-schema.json", + "title": "allDocs: Response Payload", + "description": "Payload returned by allDocs method.", + "properties": { + "result_list": { + "title": "Result List", + "description": "Contains a representation of the items", + "type": "array", + "items": { + "type": "object", + "title": "Item" + } + } + } +} + diff --git a/bt5/erp5_api_style/PathTemplateItem/web_page_module/api-style_alldocs-response-schema.json.xml b/bt5/erp5_api_style/PathTemplateItem/web_page_module/api-style_alldocs-response-schema.json.xml new file mode 100644 index 0000000000000000000000000000000000000000..68b54b3633c8afc400a4568c6f161303d35c2256 --- /dev/null +++ b/bt5/erp5_api_style/PathTemplateItem/web_page_module/api-style_alldocs-response-schema.json.xml @@ -0,0 +1,336 @@ +<?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>application/schema+json</string> </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>alldocs-response-schema.json</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>api-style_alldocs-response-schema.json</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>alldocs-response-schema.json</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>1643193336.44</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>997.50205.35952.16605</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>1643193466.95</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> + <none/> + </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>empty</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>1643193036.17</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_api_style/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml new file mode 100644 index 0000000000000000000000000000000000000000..e8517b1f940a99648521a037690a07faa2f43554 --- /dev/null +++ b/bt5/erp5_api_style/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -0,0 +1,16 @@ +<allowed_content_type_list> + <portal_type id="Error Record Module"> + <item>Error Record</item> + </portal_type> + <portal_type id="Web Section"> + <item>jIO Web Section</item> + </portal_type> + <portal_type id="Web Site"> + <item>jIO Web Section</item> + </portal_type> + <portal_type id="jIO Web Section"> + <item>File</item> + <item>Image</item> + <item>Role Definition</item> + </portal_type> +</allowed_content_type_list> \ No newline at end of file diff --git a/bt5/erp5_api_style/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_api_style/PortalTypeBaseCategoryTemplateItem/base_category_list.xml new file mode 100644 index 0000000000000000000000000000000000000000..a62e599cebbfc1a1d7fcc372f8dbf68f61475260 --- /dev/null +++ b/bt5/erp5_api_style/PortalTypeBaseCategoryTemplateItem/base_category_list.xml @@ -0,0 +1,12 @@ +<base_category_list> + <portal_type id="Error Record"> + <item>creator</item> + </portal_type> + <portal_type id="Error Record Module"> + <item>business_application</item> + </portal_type> + <portal_type id="jIO Web Section"> + <item>aggregate</item> + <item>caching_policy</item> + </portal_type> +</base_category_list> \ No newline at end of file diff --git a/bt5/erp5_api_style/PortalTypePropertySheetTemplateItem/property_sheet_list.xml b/bt5/erp5_api_style/PortalTypePropertySheetTemplateItem/property_sheet_list.xml new file mode 100644 index 0000000000000000000000000000000000000000..96626efa77d19bdf90356a743dd710a25f8a211f --- /dev/null +++ b/bt5/erp5_api_style/PortalTypePropertySheetTemplateItem/property_sheet_list.xml @@ -0,0 +1,9 @@ +<property_sheet_list> + <portal_type id="Error Record"> + <item>TextDocument</item> + </portal_type> + <portal_type id="jIO Web Section"> + <item>SortIndex</item> + <item>WebSectionUpgradeConstraint</item> + </portal_type> +</property_sheet_list> \ No newline at end of file diff --git a/bt5/erp5_api_style/PortalTypeTemplateItem/portal_types/Error%20Record%20Module.xml b/bt5/erp5_api_style/PortalTypeTemplateItem/portal_types/Error%20Record%20Module.xml new file mode 100644 index 0000000000000000000000000000000000000000..ed108dba04b52e49296557ccd099f3682735834f --- /dev/null +++ b/bt5/erp5_api_style/PortalTypeTemplateItem/portal_types/Error%20Record%20Module.xml @@ -0,0 +1,108 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Base Type" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_property_domain_dict</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> <string>folder_icon.gif</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addFolder</string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <tuple> + <string>module</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Error Record Module</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Base Type</string> </value> + </item> + <item> + <key> <string>type_class</string> </key> + <value> <string>Folder</string> </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>short_title</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>domain_name</string> </key> + <value> <string>erp5_ui</string> </value> + </item> + <item> + <key> <string>property_name</string> </key> + <value> <string>short_title</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>domain_name</string> </key> + <value> <string>erp5_ui</string> </value> + </item> + <item> + <key> <string>property_name</string> </key> + <value> <string>title</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/PortalTypeTemplateItem/portal_types/Error%20Record.xml b/bt5/erp5_api_style/PortalTypeTemplateItem/portal_types/Error%20Record.xml new file mode 100644 index 0000000000000000000000000000000000000000..3b6f0fe152a5f685adff082b93d61c78d08c0608 --- /dev/null +++ b/bt5/erp5_api_style/PortalTypeTemplateItem/portal_types/Error%20Record.xml @@ -0,0 +1,64 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Base Type" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>content_icon</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addXMLObject</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Error Record</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Base Type</string> </value> + </item> + <item> + <key> <string>type_class</string> </key> + <value> <string>XMLObject</string> </value> + </item> + <item> + <key> <string>type_interface</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>type_mixin</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/PortalTypeTemplateItem/portal_types/jIO%20Web%20Section.xml b/bt5/erp5_api_style/PortalTypeTemplateItem/portal_types/jIO%20Web%20Section.xml new file mode 100644 index 0000000000000000000000000000000000000000..ec769ad00749db074943e0d7e73b572c86dbd05f --- /dev/null +++ b/bt5/erp5_api_style/PortalTypeTemplateItem/portal_types/jIO%20Web%20Section.xml @@ -0,0 +1,135 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Base Type" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_property_domain_dict</string> </key> + <value> + <dictionary> + <item> + <key> <string>short_title</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>acquire_local_roles</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> <string>web_section.png</string> </value> + </item> + <item> + <key> <string>content_meta_type</string> </key> + <value> <string>ERP5 Web Section</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>A jIO Web Section defines makes jIO API avalaible throught direct http requests</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addWebSection</string> </value> + </item> + <item> + <key> <string>filter_content_types</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>jIO Web Section</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> <string>WebSection_init</string> </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>type_class</string> </key> + <value> <string>jIOWebSection</string> </value> + </item> + <item> + <key> <string>type_interface</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>type_mixin</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>domain_name</string> </key> + <value> <string>content_translation</string> </value> + </item> + <item> + <key> <string>property_name</string> </key> + <value> <string>short_title</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>domain_name</string> </key> + <value> <string>content_translation</string> </value> + </item> + <item> + <key> <string>property_name</string> </key> + <value> <string>title</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_api_style/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml new file mode 100644 index 0000000000000000000000000000000000000000..d5aae95c3dcd7907f13b419f48297bb97d506d3d --- /dev/null +++ b/bt5/erp5_api_style/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -0,0 +1,10 @@ +<workflow_chain> + <chain> + <type>Error Record</type> + <workflow>edit_workflow</workflow> + </chain> + <chain> + <type>jIO Web Section</type> + <workflow>category_publication_workflow, edit_workflow</workflow> + </chain> +</workflow_chain> \ No newline at end of file diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style.xml new file mode 100644 index 0000000000000000000000000000000000000000..396ceaee796dd8bc08836e6b704afb844539b460 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style.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_api_style</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/Base_createSetTextContentAndReturnID.py b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/Base_createSetTextContentAndReturnID.py new file mode 100644 index 0000000000000000000000000000000000000000..bd1a3d67b975b231fb3268ee93ac903cbebb003b --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/Base_createSetTextContentAndReturnID.py @@ -0,0 +1,11 @@ +import json +data_dict = json.loads(text_content) +portal_type = data_dict["portal_type"] +module = context.getPortalObject().getDefaultModule(portal_type) +document = module.newContent( + portal_type=portal_type, + text_content=text_content, +) +return json.dumps({ + "id": document.getRelativeUrl() +}) diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/Base_createSetTextContentAndReturnID.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/Base_createSetTextContentAndReturnID.xml new file mode 100644 index 0000000000000000000000000000000000000000..2136d5e98147867cf73703228a0606e3876b62a8 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/Base_createSetTextContentAndReturnID.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>text_content, form_reference</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Base_createSetTextContentAndReturnID</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/Base_setAndGetTextContent.py b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/Base_setAndGetTextContent.py new file mode 100644 index 0000000000000000000000000000000000000000..5ab009f5c236244163589e8303c3a9c7287df0bd --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/Base_setAndGetTextContent.py @@ -0,0 +1,10 @@ +if text_content: + context.edit(text_content=text_content) + +if response_schema: + import json + data = json.loads(context.getTextContent()) + data["$schema"] = response_schema + data["id"] = context.getRelativeUrl() + return json.dumps(data, indent=2) +return context.getTextContent() diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/Base_setAndGetTextContent.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/Base_setAndGetTextContent.xml new file mode 100644 index 0000000000000000000000000000000000000000..95ae04986e48ea311207da859578e72f35c93ff2 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/Base_setAndGetTextContent.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>text_content, response_schema</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Base_setAndGetTextContent</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_asjIOStyle.py b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_asjIOStyle.py new file mode 100644 index 0000000000000000000000000000000000000000..34a001672dbd0812c45e68f3bd3daddc09e1aa4c --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_asjIOStyle.py @@ -0,0 +1,145 @@ +# an external script is need to extract content from body: REQUEST.get('BODY') +mode = mode or context.REQUEST.form.get("mode", "get") +text_content = text_content or context.REQUEST.form.get("text_content", "") +document_id = document_id or context.REQUEST.form.get("document_id", "") +import json +portal = context.getPortalObject() + +response = container.REQUEST.RESPONSE + +# XXX Hardcoded, to be removed +def logError(e, error_name="", error_code=400, detail_list=None): + return portal.ERP5Site_logApiErrorAndReturn( + error_code=error_code, + error_message=e, + error_name=error_name, + detail_list=detail_list, + ) + +def getCorrespondingActionAndReturn(traversed_document, action_id, text_data, list_error=False): + return traversed_document.getTypeInfo().getDefaultViewFor( + traversed_document, view=action_id + )(text_data, list_error=list_error) + +# https://stackoverflow.com/a/33571117 +def _byteify(data, ignore_dicts = False): + if isinstance(data, str): + return data + + # if this is a list of values, return list of byteified values + if isinstance(data, list): + return [ _byteify(item, ignore_dicts=True) for item in data ] + # if this is a dictionary, return dictionary of byteified keys and values + # but only if we haven't already byteified it + if isinstance(data, dict) and not ignore_dicts: + return { + _byteify(key, ignore_dicts=True): _byteify(value, ignore_dicts=True) + for key, value in data.items() # changed to .items() for python 2.7/3 + } + + # python 3 compatible duck-typing + # if this is a unicode string, return its string representation + if str(type(data)) == "<type 'unicode'>": + return data.encode('utf-8') + + # if it's anything else, return it in its original form + return data + +def json_loads_byteified(json_text): + return _byteify( + json.loads(json_text, object_hook=_byteify), + ignore_dicts=True + ) + + +mode_dict = { + "put": "configuration_put_action_type", + "get": "configuration_get_action_type", + "post": "configuration_post_action_type", + "allDocs": "configuration_alldocs_action_type", +} + +if mode not in mode_dict: + return "Used Mode is not defined in the mode list %s" % mode_dict.keys() + +# Check JSON Form +try: + data = json_loads_byteified(text_content) +except BaseException as e: + return logError(str(e), error_name="API-JSON-INVALID-JSON") +if not isinstance(data, dict): + return logError("Did not received a JSON Object", error_name="API-JSON-NOT-JSON-OBJECT") + +# If get or put, valid Id is expected +if mode in ("get", "put"): + if not document_id: + try: + document_id = data["id"] + except KeyError: + return logError("Cannot find id property", error_name="API-JSON-NO-ID-PROPERTY") + except TypeError: + return logError("Did not received a JSON Object", error_name="API-JSON-NOT-JSON-OBJECT") + try: + document = portal.restrictedTraverse(str(document_id)) + except KeyError: + return logError("Document has not been found", error_name="API-DOCUMENT-NOT-FOUND", error_code=404) +else: + document = context + +result_list = [] +error_dict = {} +match = False + +# Get matching actions for current mode +action_type = context.getLayoutProperty(mode_dict[mode]) +erp5_action_dict = portal.Base_filterDuplicateActions( + portal.portal_actions.listFilteredActionsFor(document)) + +# Try to find an action matching the text_content +for erp5_action_key in erp5_action_dict.keys(): + for view_action in erp5_action_dict[erp5_action_key]: + if (action_type == view_action['category']): + try: + result = getCorrespondingActionAndReturn( + document, view_action['id'], data, list_error=True + ) + match = True + # If an object is created, 201 code is exptected + if mode == "post": + if response.getStatus() == 200: + response.setStatus(201) + # If not search, job is done and we can return result + if mode != "allDocs": + return result + result_list += result + except ValueError, e: + try: + error_dict.update(json.loads(str(e))) + except ValueError: + raise ValueError(e) + +# Return error if no action found or text content did not match +if not match: + error_kw = { + "error_name":"API-NO-ACTION-FOUND" + } + if mode in ("put", "get"): + error_message = "Unauthorized: No action with category %s found for %s" % ( + action_type, + document.getRelativeUrl() + ) + else: + error_message = "Data did not validate against interface schemas" + if error_dict: + error_kw["detail_list"] = sorted(error_dict.items()) + return logError(error_message, **error_kw) + +if mode == "allDocs": + return json.dumps({ + "$schema": "alldocs-response-schema.json", + "result_list":result_list + }, + indent=2 + ) + +raise ValueError("Unreachable code reached") diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_asjIOStyle.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_asjIOStyle.xml new file mode 100644 index 0000000000000000000000000000000000000000..0b3532f8c59cc31a334be56701ba3cd7c150d1c0 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_asjIOStyle.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>mode="", text_content="", document_id="", *arg, **kw</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ERP5Site_asjIOStyle</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIAllDocs.py b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIAllDocs.py new file mode 100644 index 0000000000000000000000000000000000000000..6ef729fb278fcb6bbd92290cd6f6cc2ef6e36485 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIAllDocs.py @@ -0,0 +1,4 @@ +return context.ERP5Site_getAllActionListForActionType( + context.getLayoutProperty("configuration_alldocs_action_type"), + parent_portal_type="jIO Web Section", +) diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIAllDocs.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIAllDocs.xml new file mode 100644 index 0000000000000000000000000000000000000000..12fd74f0eaaf1f3e34a9e0044883158752da39ac --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIAllDocs.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>**kw</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ERP5Site_getAllActionListForAPIAllDocs</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIGet.py b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIGet.py new file mode 100644 index 0000000000000000000000000000000000000000..9cc099507e602c55f8cf37e78122f2687a6f94af --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIGet.py @@ -0,0 +1,3 @@ +return context.ERP5Site_getAllActionListForActionType( + context.getLayoutProperty("configuration_get_action_type") +) diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIGet.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIGet.xml new file mode 100644 index 0000000000000000000000000000000000000000..dd7719ca0fd7468df42453dfcd80116a508fafe0 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIGet.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>**kw</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ERP5Site_getAllActionListForAPIGet</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIPost.py b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIPost.py new file mode 100644 index 0000000000000000000000000000000000000000..d81aeb937971284014e440d938a4aed1d280d15c --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIPost.py @@ -0,0 +1,4 @@ +return context.ERP5Site_getAllActionListForActionType( + context.getLayoutProperty("configuration_post_action_type"), + parent_portal_type="jIO Web Section", +) diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIPost.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIPost.xml new file mode 100644 index 0000000000000000000000000000000000000000..850bbd00f2db7c7b0ec46ee20e37832c12cc8035 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIPost.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>**kw</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ERP5Site_getAllActionListForAPIPost</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIPut.py b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIPut.py new file mode 100644 index 0000000000000000000000000000000000000000..8f3128bb7b4806689961e9dfaa3307641d5d5f75 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIPut.py @@ -0,0 +1,3 @@ +return context.ERP5Site_getAllActionListForActionType( + context.getLayoutProperty("configuration_put_action_type") +) diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIPut.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIPut.xml new file mode 100644 index 0000000000000000000000000000000000000000..0955cc0f3e81566c583855ac36d5b83720c4da2e --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForAPIPut.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>**kw</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ERP5Site_getAllActionListForAPIPut</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForActionType.py b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForActionType.py new file mode 100644 index 0000000000000000000000000000000000000000..dc4641c4c518c3bf19d76f04af45db78aa449480 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForActionType.py @@ -0,0 +1,11 @@ +portal = context.getPortalObject() +search_kw = { + "portal_type": "Action Information", + "strict_action_type_uid": portal.portal_categories.action_type.restrictedTraverse(action_type).getUid(), + "sort_on": (("float_index", "DESC"),) +} +if parent_portal_type: + search_kw['parent_uid'] = portal.portal_types.restrictedTraverse(parent_portal_type).getUid() +return portal.portal_catalog( + **search_kw +) diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForActionType.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForActionType.xml new file mode 100644 index 0000000000000000000000000000000000000000..664375400e3c2ca466c8f358667729d94b222fc3 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_getAllActionListForActionType.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>action_type, parent_portal_type="", **kw</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ERP5Site_getAllActionListForActionType</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_logApiErrorAndReturn.py b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_logApiErrorAndReturn.py new file mode 100644 index 0000000000000000000000000000000000000000..99fc6b9bcc2ba9d47ca69523ef0cfbf9c10ec1b8 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_logApiErrorAndReturn.py @@ -0,0 +1,26 @@ +import json +context.log(error_message) +if not text_content: + text_content = context.REQUEST.get("BODY") +error = context.getPortalObject().error_record_module.newContent( + portal_type="Error Record", + description=str(error_message), + text_content=str(text_content) +) +container.REQUEST.RESPONSE.setStatus(400) +# We follow here Paypal api guideline +# https://github.com/paypal/api-standards/blob/master/api-style-guide.md#error-schema +error_dict = { + "debug_id": error.getId(), + "status": error_code, + "message": error_message +} +if error_name: + error_dict["name"] = error_name + error.setTitle(error_name) +if error_link: + error_dict["link"] = error_link +if detail_list: + error_dict["details"] = detail_list + error.setDescription(str(error_message) + "\n".join([str(x) for x in detail_list])) +return json.dumps(error_dict, indent=2) diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_logApiErrorAndReturn.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_logApiErrorAndReturn.xml new file mode 100644 index 0000000000000000000000000000000000000000..20eb4beb9bef76a0e9ee08f17ac96ce17efef1f4 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_logApiErrorAndReturn.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>error_code=400, text_content="", error_message="", error_name="", error_link="", detail_list=None</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ERP5Site_logApiErrorAndReturn</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecordModule_viewErrorRecordList.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecordModule_viewErrorRecordList.xml new file mode 100644 index 0000000000000000000000000000000000000000..fd4dce567efa3e11fa72ebdc81244a0abad1530e --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecordModule_viewErrorRecordList.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_doSelect</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>listbox</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>ErrorRecordModule_viewErrorRecordList</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>ErrorRecordModule_viewErrorRecordList</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_list</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>Error Records</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_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecordModule_viewErrorRecordList/listbox.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecordModule_viewErrorRecordList/listbox.xml new file mode 100644 index 0000000000000000000000000000000000000000..b40ef4a00740894e60ec099c9a042a80fc786e2e --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecordModule_viewErrorRecordList/listbox.xml @@ -0,0 +1,149 @@ +<?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>all_columns</string> + <string>columns</string> + <string>selection_name</string> + <string>sort</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>listbox</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>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>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>all_columns</string> </key> + <value> + <list> + <tuple> + <string>creation_date</string> + <string>Creation Date</string> + </tuple> + <tuple> + <string>modification_date</string> + <string>Modification Date</string> + </tuple> + <tuple> + <string>owner_title</string> + <string>Owner</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>columns</string> </key> + <value> + <list> + <tuple> + <string>id</string> + <string>ID</string> + </tuple> + <tuple> + <string>title</string> + <string>Title</string> + </tuple> + <tuple> + <string>description</string> + <string>Error Message</string> + </tuple> + <tuple> + <string>creation_date</string> + <string>Creation Date</string> + </tuple> + <tuple> + <string>owner_title</string> + <string>Owner</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_list_mode_listbox</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string>error_record_module_selection</string> </value> + </item> + <item> + <key> <string>sort</string> </key> + <value> + <list> + <tuple> + <string>creation_date</string> + <string>descending</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Error Records</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view.xml new file mode 100644 index 0000000000000000000000000000000000000000..f5ada7efb9351d903dccdb556ad5f7d96a07cff5 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view.xml @@ -0,0 +1,147 @@ +<?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>my_text_content</string> + </list> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list> + <string>my_description</string> + </list> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list> + <string>my_id</string> + <string>my_title</string> + </list> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list> + <string>my_creation_date</string> + <string>my_creator_title</string> + </list> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ErrorRecord_view</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>ErrorRecord_view</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_view</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Error Record</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_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_creation_date.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_creation_date.xml new file mode 100644 index 0000000000000000000000000000000000000000..e657beb827e277638bb9606a3aaf982bed98e2d1 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_creation_date.xml @@ -0,0 +1,84 @@ +<?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>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_creation_date</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>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>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_date_time_field</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Creation Date</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_creator_title.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_creator_title.xml new file mode 100644 index 0000000000000000000000000000000000000000..33994da6744118f94577cbeb08f51f5ec0d2868b --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_creator_title.xml @@ -0,0 +1,84 @@ +<?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>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_creator_title</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>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>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_relation_field</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Creator</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_description.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_description.xml new file mode 100644 index 0000000000000000000000000000000000000000..eab7a8c775ccd6e665fef9566321f8ed0f84f3f2 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_description.xml @@ -0,0 +1,72 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_description</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>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>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_description</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_id.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_id.xml new file mode 100644 index 0000000000000000000000000000000000000000..bbff88298e61d1717d576145c25ba318e9ac892c --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_id.xml @@ -0,0 +1,84 @@ +<?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>editable</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_id</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>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>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>editable</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_id</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_text_content.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_text_content.xml new file mode 100644 index 0000000000000000000000000000000000000000..74ee025b576c8ecd4188b84846859363a20696a9 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_text_content.xml @@ -0,0 +1,78 @@ +<?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/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_text_content</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>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>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_text_content</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewJSONFieldLibrary</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_title.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_title.xml new file mode 100644 index 0000000000000000000000000000000000000000..43fefb1268348159c02673b94b5772525ecc166a --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ErrorRecord_view/my_title.xml @@ -0,0 +1,78 @@ +<?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/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_title</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>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>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_title</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference.xml new file mode 100644 index 0000000000000000000000000000000000000000..c11eb1d58e6003c91097d223df157ccfa6c202e8 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference.xml @@ -0,0 +1,160 @@ +<?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>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string>Base_edit</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>multipart/form-data</string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left</string> + <string>right</string> + <string>center</string> + <string>hidden</string> + <string>bottom</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list> + <string>your_put_action_list</string> + <string>your_get_action_list</string> + <string>your_post_action_list</string> + <string>your_alldocs_action_list</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> + <string>my_configuration_put_action_type</string> + <string>my_configuration_get_action_type</string> + <string>my_configuration_post_action_type</string> + <string>my_configuration_alldocs_action_type</string> + </list> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>WebSection_viewjIOStyleAPIPreference</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>WebSection_viewHateoasPreference</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_view</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Web Section Preference</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_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/my_configuration_alldocs_action_type.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/my_configuration_alldocs_action_type.xml new file mode 100644 index 0000000000000000000000000000000000000000..aa899fc4b781e9a046a2de52ca1a45a575b5a8d7 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/my_configuration_alldocs_action_type.xml @@ -0,0 +1,135 @@ +<?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>description</string> + <string>items</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_configuration_alldocs_action_type</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>description</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>items</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </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>description</string> </key> + <value> <string>Action must be defined on the Web Section Portal Type</string> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_category</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>AllDocs Action Type</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: getattr(here.portal_categories["action_type"], preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\')</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/my_configuration_get_action_type.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/my_configuration_get_action_type.xml new file mode 100644 index 0000000000000000000000000000000000000000..8f4cb482ada903ccd99518734f343d01d9f546e0 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/my_configuration_get_action_type.xml @@ -0,0 +1,135 @@ +<?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>description</string> + <string>items</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_configuration_get_action_type</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>description</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>items</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </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>description</string> </key> + <value> <string>Action must be defined on corresponding portal types</string> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_category</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Get Action Type</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: getattr(here.portal_categories["action_type"], preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\')</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/my_configuration_post_action_type.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/my_configuration_post_action_type.xml new file mode 100644 index 0000000000000000000000000000000000000000..93c497a72d826f9cf16768eca736cc6172e390d3 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/my_configuration_post_action_type.xml @@ -0,0 +1,135 @@ +<?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>description</string> + <string>items</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_configuration_post_action_type</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>description</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>items</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </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>description</string> </key> + <value> <string>Action must be defined on the Web Section Portal Type</string> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_category</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Post Action Type</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: getattr(here.portal_categories["action_type"], preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\')</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/my_configuration_put_action_type.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/my_configuration_put_action_type.xml new file mode 100644 index 0000000000000000000000000000000000000000..90bd3b30ae200c45ae77f52bedbc2c7de8ae680b --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/my_configuration_put_action_type.xml @@ -0,0 +1,135 @@ +<?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>description</string> + <string>items</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_configuration_put_action_type</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>description</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>items</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </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>description</string> </key> + <value> <string>Action must be defined on the Web Section Portal Type</string> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_category</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Put Action Type</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: getattr(here.portal_categories["action_type"], preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\')</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/your_alldocs_action_list.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/your_alldocs_action_list.xml new file mode 100644 index 0000000000000000000000000000000000000000..d01dad0fefffcd6bc911e3961868fa179c0049c9 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/your_alldocs_action_list.xml @@ -0,0 +1,124 @@ +<?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>columns</string> + <string>list_method</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>your_alldocs_action_list</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>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>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>columns</string> </key> + <value> + <list> + <tuple> + <string>title</string> + <string>Title</string> + </tuple> + <tuple> + <string>reference</string> + <string>Reference</string> + </tuple> + <tuple> + <string>action_text</string> + <string>Action</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_listbox</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>AllDocs Actions</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Method" module="Products.Formulator.MethodField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>method_name</string> </key> + <value> <string>ERP5Site_getAllActionListForAPIAllDocs</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/your_get_action_list.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/your_get_action_list.xml new file mode 100644 index 0000000000000000000000000000000000000000..340cf3c5db62334ed0972e5a449dd44f8b5a216d --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/your_get_action_list.xml @@ -0,0 +1,128 @@ +<?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>columns</string> + <string>list_method</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>your_get_action_list</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>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>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>columns</string> </key> + <value> + <list> + <tuple> + <string>parent_id</string> + <string>Portal Type</string> + </tuple> + <tuple> + <string>title</string> + <string>Title</string> + </tuple> + <tuple> + <string>reference</string> + <string>Reference</string> + </tuple> + <tuple> + <string>action_text</string> + <string>Action</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_listbox</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Get Actions</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Method" module="Products.Formulator.MethodField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>method_name</string> </key> + <value> <string>ERP5Site_getAllActionListForAPIGet</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/your_post_action_list.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/your_post_action_list.xml new file mode 100644 index 0000000000000000000000000000000000000000..84ab72b3257a4b55fbe70093417a041c0a7949e3 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/your_post_action_list.xml @@ -0,0 +1,124 @@ +<?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>columns</string> + <string>list_method</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>your_post_action_list</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>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>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>columns</string> </key> + <value> + <list> + <tuple> + <string>title</string> + <string>Title</string> + </tuple> + <tuple> + <string>reference</string> + <string>Reference</string> + </tuple> + <tuple> + <string>action_text</string> + <string>Action</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_listbox</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Post Actions</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Method" module="Products.Formulator.MethodField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>method_name</string> </key> + <value> <string>ERP5Site_getAllActionListForAPIPost</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/your_put_action_list.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/your_put_action_list.xml new file mode 100644 index 0000000000000000000000000000000000000000..591446d6d1f95cff9bef59133209b391afb1754a --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/WebSection_viewjIOStyleAPIPreference/your_put_action_list.xml @@ -0,0 +1,128 @@ +<?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>columns</string> + <string>list_method</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>your_put_action_list</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>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>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>columns</string> </key> + <value> + <list> + <tuple> + <string>parent_id</string> + <string>Portal Type</string> + </tuple> + <tuple> + <string>title</string> + <string>Title</string> + </tuple> + <tuple> + <string>reference</string> + <string>Reference</string> + </tuple> + <tuple> + <string>action_text</string> + <string>Action</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_listbox</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Put Actions</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Method" module="Products.Formulator.MethodField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>method_name</string> </key> + <value> <string>ERP5Site_getAllActionListForAPIPut</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/get-request-schema.json.json b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/get-request-schema.json.json new file mode 100644 index 0000000000000000000000000000000000000000..3a460876811382f5d8c19bae33b2c611e68e2c78 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/get-request-schema.json.json @@ -0,0 +1,14 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "get-request-schema.json", + "title": "Get: Get Object Data", + "description": "Schema used for jIO Get Method Data. This method is used to retrieve the data of an existing object.", + "properties": { + "id": { + "title": "ID", + "type": "string", + "description": "Unique Id of the object. This ID is defined by KD Portal. It is not editable." + } + }, + "required": ["id"] +} diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/get-request-schema.json.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/get-request-schema.json.xml new file mode 100644 index 0000000000000000000000000000000000000000..1133507453255dd73e8927c3970b377f90b168e8 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/get-request-schema.json.xml @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="File" module="OFS.Image"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__name__</string> </key> + <value> <string>get-request-schema.json</string> </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>application/schema+json</string> </value> + </item> + <item> + <key> <string>precondition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/id-response-schema.json.json b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/id-response-schema.json.json new file mode 100644 index 0000000000000000000000000000000000000000..5235216dca73bdf3b00f008e4a6224be4bfe4078 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/id-response-schema.json.json @@ -0,0 +1,12 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "id-response-schema.json", + "title": "Document ID Response", + "properties": { + "id": { + "title": "ID", + "type": "string", + "description": "Unique Id of the object. It can be used to retrieve the document" + } + }, +} diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/id-response-schema.json.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/id-response-schema.json.xml new file mode 100644 index 0000000000000000000000000000000000000000..655dae7e45c603736cca6b8841f1232fd01025de --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/id-response-schema.json.xml @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="File" module="OFS.Image"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__name__</string> </key> + <value> <string>id-response-schema.json</string> </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>application/schema+json</string> </value> + </item> + <item> + <key> <string>precondition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>id-response-schema.json</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/jIOWebSection_getAPIJSONHyperSchema.py b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/jIOWebSection_getAPIJSONHyperSchema.py new file mode 100644 index 0000000000000000000000000000000000000000..d76a41ddce31898383c01d614509416d21befda9 --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/jIOWebSection_getAPIJSONHyperSchema.py @@ -0,0 +1,41 @@ +base_url = context.absolute_url().strip("/") + "/" +data = { + "$schema": "https://json-schema.org/draft/2019-09/schema", + "base": base_url, + "links": [ + ] +} + +def generateActionInputSchemaUrl(url): + _, script = url.rsplit('/', 1) + return base_url + script + "/getTextContent" + +def populateLinks(jio_type, url, action_list): + result_list = [] + for action in action_list: + action = action.getObject() + result_list.append({ + "jio_type": jio_type, + "href": url, + "targetSchema": generateActionInputSchemaUrl(action.getActionText()), + "title": action.getTitle(), + "method": "POST", + "curl-example": 'curl -u user:password %s -H "Content-Type: application/json" --data @input.json' % (base_url + url,) + }) + return result_list +data["links"] = data["links"] + [{ + "jio_type": "get", + "href": "get/", + "targetSchema": "get-request-schema.json", + "title": "Get Document", + "method": "POST", + "curl-example": 'curl -u user:password %s -H "Content-Type: application/json" --data @input.json' % (base_url + "get/",) +}] +data["links"] = data["links"] + populateLinks("post", "post/", context.ERP5Site_getAllActionListForAPIPost()) +data["links"] = data["links"] + populateLinks("put", "put/", context.ERP5Site_getAllActionListForAPIPut()) +data["links"] = data["links"] + populateLinks("allDocs", "allDocs/", context.ERP5Site_getAllActionListForAPIAllDocs()) +import json +return json.dumps( + data, + indent=2, +) diff --git a/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/jIOWebSection_getAPIJSONHyperSchema.xml b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/jIOWebSection_getAPIJSONHyperSchema.xml new file mode 100644 index 0000000000000000000000000000000000000000..ac4a5012698a4af8b5edc6abe1eaec123d996a7e --- /dev/null +++ b/bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/jIOWebSection_getAPIJSONHyperSchema.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>jIOWebSection_getAPIJSONHyperSchema</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_api_style/bt/dependency_list b/bt5/erp5_api_style/bt/dependency_list new file mode 100644 index 0000000000000000000000000000000000000000..fb8c39c59aa0a744ce00a6c368812496765fa03c --- /dev/null +++ b/bt5/erp5_api_style/bt/dependency_list @@ -0,0 +1,2 @@ +erp5_json_form +erp5_web \ No newline at end of file diff --git a/bt5/erp5_api_style/bt/template_action_path_list b/bt5/erp5_api_style/bt/template_action_path_list new file mode 100644 index 0000000000000000000000000000000000000000..017ff9fe05e180b5fa32604d937e97e9b3cb22a4 --- /dev/null +++ b/bt5/erp5_api_style/bt/template_action_path_list @@ -0,0 +1,8 @@ +Error Record Module | view +Error Record | view +jIO Web Section | layout_configuration +jIO Web Section | local_permission +jIO Web Section | predicate +jIO Web Section | section_content +jIO Web Section | view +jIO Web Section | web_view \ No newline at end of file diff --git a/bt5/erp5_api_style/bt/template_document_id_list b/bt5/erp5_api_style/bt/template_document_id_list new file mode 100644 index 0000000000000000000000000000000000000000..31513a65e3a1b0e9a3e9292c8c8c684d2ea93f23 --- /dev/null +++ b/bt5/erp5_api_style/bt/template_document_id_list @@ -0,0 +1 @@ +document.erp5.jIOWebSection \ No newline at end of file diff --git a/bt5/erp5_api_style/bt/template_format_version b/bt5/erp5_api_style/bt/template_format_version new file mode 100644 index 0000000000000000000000000000000000000000..56a6051ca2b02b04ef92d5150c9ef600403cb1de --- /dev/null +++ b/bt5/erp5_api_style/bt/template_format_version @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/bt5/erp5_api_style/bt/template_keep_last_workflow_history_only_path_list b/bt5/erp5_api_style/bt/template_keep_last_workflow_history_only_path_list new file mode 100644 index 0000000000000000000000000000000000000000..49673ff84261051a95eb15e06f52556b816cf2f0 --- /dev/null +++ b/bt5/erp5_api_style/bt/template_keep_last_workflow_history_only_path_list @@ -0,0 +1 @@ +web_page_module/api-style_alldocs-response-schema.json \ No newline at end of file diff --git a/bt5/erp5_api_style/bt/template_module_id_list b/bt5/erp5_api_style/bt/template_module_id_list new file mode 100644 index 0000000000000000000000000000000000000000..eb49bdcbc33fa583065539f3f593a5e79ff4cbe2 --- /dev/null +++ b/bt5/erp5_api_style/bt/template_module_id_list @@ -0,0 +1 @@ +error_record_module \ No newline at end of file diff --git a/bt5/erp5_api_style/bt/template_path_list b/bt5/erp5_api_style/bt/template_path_list new file mode 100644 index 0000000000000000000000000000000000000000..49673ff84261051a95eb15e06f52556b816cf2f0 --- /dev/null +++ b/bt5/erp5_api_style/bt/template_path_list @@ -0,0 +1 @@ +web_page_module/api-style_alldocs-response-schema.json \ No newline at end of file diff --git a/bt5/erp5_api_style/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_api_style/bt/template_portal_type_allowed_content_type_list new file mode 100644 index 0000000000000000000000000000000000000000..a287b6a7de8dff826ba471b29b0ea919f1ebccf9 --- /dev/null +++ b/bt5/erp5_api_style/bt/template_portal_type_allowed_content_type_list @@ -0,0 +1,6 @@ +Error Record Module | Error Record +Web Section | jIO Web Section +Web Site | jIO Web Section +jIO Web Section | File +jIO Web Section | Image +jIO Web Section | Role Definition \ No newline at end of file diff --git a/bt5/erp5_api_style/bt/template_portal_type_base_category_list b/bt5/erp5_api_style/bt/template_portal_type_base_category_list new file mode 100644 index 0000000000000000000000000000000000000000..e0b5ea1b66edbcc7906fafad19b980808485a5d5 --- /dev/null +++ b/bt5/erp5_api_style/bt/template_portal_type_base_category_list @@ -0,0 +1,4 @@ +Error Record Module | business_application +Error Record | creator +jIO Web Section | aggregate +jIO Web Section | caching_policy \ No newline at end of file diff --git a/bt5/erp5_api_style/bt/template_portal_type_id_list b/bt5/erp5_api_style/bt/template_portal_type_id_list new file mode 100644 index 0000000000000000000000000000000000000000..4e42bc561a1dc298bd5f984e0d51dccb96679d20 --- /dev/null +++ b/bt5/erp5_api_style/bt/template_portal_type_id_list @@ -0,0 +1,3 @@ +Error Record +Error Record Module +jIO Web Section \ No newline at end of file diff --git a/bt5/erp5_api_style/bt/template_portal_type_property_sheet_list b/bt5/erp5_api_style/bt/template_portal_type_property_sheet_list new file mode 100644 index 0000000000000000000000000000000000000000..32446ab685b842873b50db9d302cd7e95b714c1a --- /dev/null +++ b/bt5/erp5_api_style/bt/template_portal_type_property_sheet_list @@ -0,0 +1,3 @@ +Error Record | TextDocument +jIO Web Section | SortIndex +jIO Web Section | WebSectionUpgradeConstraint \ No newline at end of file diff --git a/bt5/erp5_api_style/bt/template_portal_type_workflow_chain_list b/bt5/erp5_api_style/bt/template_portal_type_workflow_chain_list new file mode 100644 index 0000000000000000000000000000000000000000..f800487bce10a4fdc84afa3d07eefadc5c94b334 --- /dev/null +++ b/bt5/erp5_api_style/bt/template_portal_type_workflow_chain_list @@ -0,0 +1,3 @@ +Error Record | edit_workflow +jIO Web Section | category_publication_workflow +jIO Web Section | edit_workflow \ No newline at end of file diff --git a/bt5/erp5_api_style/bt/template_skin_id_list b/bt5/erp5_api_style/bt/template_skin_id_list new file mode 100644 index 0000000000000000000000000000000000000000..9734c71a81ee18b9b48faa9114687b3a1c507c38 --- /dev/null +++ b/bt5/erp5_api_style/bt/template_skin_id_list @@ -0,0 +1 @@ +erp5_api_style \ No newline at end of file diff --git a/bt5/erp5_api_style/bt/title b/bt5/erp5_api_style/bt/title new file mode 100644 index 0000000000000000000000000000000000000000..9734c71a81ee18b9b48faa9114687b3a1c507c38 --- /dev/null +++ b/bt5/erp5_api_style/bt/title @@ -0,0 +1 @@ +erp5_api_style \ No newline at end of file