From 0d748c9861b728ce33a946a9130afaea8d0a60c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Algrain?= <fxalgrain@tiolive.com> Date: Tue, 26 Apr 2011 14:44:59 +0000 Subject: [PATCH] Update bt Add Mobyt gateway git-svn-id: https://svn.erp5.org/repos/experimental@2070 bc57dcba-3610-0410-ab4f-dc20bb96b918 --- .../portal_types/Mobyt%20Gateway/view.xml | 85 ++++++++++ .../portal_types/SMS%20Tool/view.xml | 2 +- .../allowed_content_types.xml | 1 + .../portal_types/Essendex%20Gateway.xml | 57 +++++++ .../portal_types/Mobyt%20Gateway.xml | 111 +++++++++++++ .../SMSGateway_view/my_gateway_password.xml | 13 ++ .../erp5_short_message/SMSTool_afterSend.xml | 59 +------ .../erp5_short_message/SMSTool_pushNewSMS.xml | 61 ------- .../SMSTool_setMessageDelivery.xml | 57 ------- .../SMSTool_viewSMSGatewayList.xml | 152 ++++++++++++++++++ .../SMSTool_viewSMSGatewayList/listbox.xml | 116 +++++++++++++ .../erp5_short_message/ShortMessage_init.xml | 62 ------- .../erp5_short_message/ShortMessage_send.xml | 82 ---------- .../scripts/ShortMessage_send.xml | 55 ------- bt5/erp5_short_message/bt/categories_list | 0 bt5/erp5_short_message/bt/change_log | 0 bt5/erp5_short_message/bt/comment | 0 bt5/erp5_short_message/bt/provision_list | 0 bt5/erp5_short_message/bt/revision | 2 +- .../bt/template_action_path_list | 1 + .../bt/template_base_category_list | 0 .../bt/template_catalog_datetime_key_list | 0 .../bt/template_catalog_full_text_key_list | 0 .../bt/template_catalog_keyword_key_list | 0 .../bt/template_catalog_local_role_key_list | 0 .../bt/template_catalog_method_id_list | 0 .../bt/template_catalog_multivalue_key_list | 0 .../bt/template_catalog_related_key_list | 0 .../bt/template_catalog_request_key_list | 0 .../bt/template_catalog_result_key_list | 0 .../bt/template_catalog_result_table_list | 0 .../bt/template_catalog_role_key_list | 0 .../bt/template_catalog_scriptable_key_list | 0 .../bt/template_catalog_search_key_list | 0 .../bt/template_catalog_topic_key_list | 0 .../bt/template_constraint_id_list | 0 .../bt/template_document_id_list | 0 .../bt/template_extension_id_list | 0 .../bt/template_local_role_list | 0 .../bt/template_local_roles_list | 0 .../bt/template_message_translation_list | 0 .../bt/template_module_id_list | 0 bt5/erp5_short_message/bt/template_path_list | 0 ...late_portal_type_allowed_content_type_list | 3 +- .../template_portal_type_base_category_list | 0 ...plate_portal_type_hidden_content_type_list | 0 .../bt/template_portal_type_id_list | 1 + .../template_portal_type_property_sheet_list | 0 .../bt/template_portal_type_role_list | 0 .../bt/template_portal_type_roles_list | 0 .../template_portal_type_workflow_chain_list | 0 .../bt/template_preference_list | 0 .../bt/template_product_id_list | 0 .../bt/template_property_sheet_id_list | 0 .../template_registered_skin_selection_list | 0 bt5/erp5_short_message/bt/template_role_list | 0 .../bt/template_site_property_id_list | 0 .../bt/template_test_id_list | 0 .../bt/template_tool_id_list | 0 ...template_update_business_template_workflow | 1 - .../bt/template_update_tool | 1 - bt5/erp5_short_message/bt/version | 2 +- 62 files changed, 546 insertions(+), 378 deletions(-) create mode 100644 bt5/erp5_short_message/ActionTemplateItem/portal_types/Mobyt%20Gateway/view.xml create mode 100644 bt5/erp5_short_message/PortalTypeTemplateItem/portal_types/Mobyt%20Gateway.xml create mode 100644 bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_viewSMSGatewayList.xml create mode 100644 bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_viewSMSGatewayList/listbox.xml delete mode 100644 bt5/erp5_short_message/bt/categories_list delete mode 100644 bt5/erp5_short_message/bt/change_log delete mode 100644 bt5/erp5_short_message/bt/comment delete mode 100644 bt5/erp5_short_message/bt/provision_list delete mode 100644 bt5/erp5_short_message/bt/template_base_category_list delete mode 100644 bt5/erp5_short_message/bt/template_catalog_datetime_key_list delete mode 100644 bt5/erp5_short_message/bt/template_catalog_full_text_key_list delete mode 100644 bt5/erp5_short_message/bt/template_catalog_keyword_key_list delete mode 100644 bt5/erp5_short_message/bt/template_catalog_local_role_key_list delete mode 100644 bt5/erp5_short_message/bt/template_catalog_method_id_list delete mode 100644 bt5/erp5_short_message/bt/template_catalog_multivalue_key_list delete mode 100644 bt5/erp5_short_message/bt/template_catalog_related_key_list delete mode 100644 bt5/erp5_short_message/bt/template_catalog_request_key_list delete mode 100644 bt5/erp5_short_message/bt/template_catalog_result_key_list delete mode 100644 bt5/erp5_short_message/bt/template_catalog_result_table_list delete mode 100644 bt5/erp5_short_message/bt/template_catalog_role_key_list delete mode 100644 bt5/erp5_short_message/bt/template_catalog_scriptable_key_list delete mode 100644 bt5/erp5_short_message/bt/template_catalog_search_key_list delete mode 100644 bt5/erp5_short_message/bt/template_catalog_topic_key_list delete mode 100644 bt5/erp5_short_message/bt/template_constraint_id_list delete mode 100644 bt5/erp5_short_message/bt/template_document_id_list delete mode 100644 bt5/erp5_short_message/bt/template_extension_id_list delete mode 100644 bt5/erp5_short_message/bt/template_local_role_list delete mode 100644 bt5/erp5_short_message/bt/template_local_roles_list delete mode 100644 bt5/erp5_short_message/bt/template_message_translation_list delete mode 100644 bt5/erp5_short_message/bt/template_module_id_list delete mode 100644 bt5/erp5_short_message/bt/template_path_list delete mode 100644 bt5/erp5_short_message/bt/template_portal_type_base_category_list delete mode 100644 bt5/erp5_short_message/bt/template_portal_type_hidden_content_type_list delete mode 100644 bt5/erp5_short_message/bt/template_portal_type_property_sheet_list delete mode 100644 bt5/erp5_short_message/bt/template_portal_type_role_list delete mode 100644 bt5/erp5_short_message/bt/template_portal_type_roles_list delete mode 100644 bt5/erp5_short_message/bt/template_portal_type_workflow_chain_list delete mode 100644 bt5/erp5_short_message/bt/template_preference_list delete mode 100644 bt5/erp5_short_message/bt/template_product_id_list delete mode 100644 bt5/erp5_short_message/bt/template_property_sheet_id_list delete mode 100644 bt5/erp5_short_message/bt/template_registered_skin_selection_list delete mode 100644 bt5/erp5_short_message/bt/template_role_list delete mode 100644 bt5/erp5_short_message/bt/template_site_property_id_list delete mode 100644 bt5/erp5_short_message/bt/template_test_id_list delete mode 100644 bt5/erp5_short_message/bt/template_tool_id_list delete mode 100644 bt5/erp5_short_message/bt/template_update_business_template_workflow delete mode 100644 bt5/erp5_short_message/bt/template_update_tool diff --git a/bt5/erp5_short_message/ActionTemplateItem/portal_types/Mobyt%20Gateway/view.xml b/bt5/erp5_short_message/ActionTemplateItem/portal_types/Mobyt%20Gateway/view.xml new file mode 100644 index 0000000000..67c0f219cc --- /dev/null +++ b/bt5/erp5_short_message/ActionTemplateItem/portal_types/Mobyt%20Gateway/view.xml @@ -0,0 +1,85 @@ +<?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>portal_type</string> </key> + <value> <string>Action Information</string> </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>10.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}/SMSGateway_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_short_message/ActionTemplateItem/portal_types/SMS%20Tool/view.xml b/bt5/erp5_short_message/ActionTemplateItem/portal_types/SMS%20Tool/view.xml index 7eb0f6e311..7f63bbfb29 100644 --- a/bt5/erp5_short_message/ActionTemplateItem/portal_types/SMS%20Tool/view.xml +++ b/bt5/erp5_short_message/ActionTemplateItem/portal_types/SMS%20Tool/view.xml @@ -77,7 +77,7 @@ <dictionary> <item> <key> <string>text</string> </key> - <value> <string>string:${object_url}/Folder_viewContentList</string> </value> + <value> <string>string:${object_url}/SMSTool_viewSMSGatewayList</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_short_message/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_short_message/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml index 01ee04034c..6f19502937 100644 --- a/bt5/erp5_short_message/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml +++ b/bt5/erp5_short_message/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -1,5 +1,6 @@ <allowed_content_type_list> <portal_type id="SMS Tool"> <item>Essendex Gateway</item> + <item>Mobyt Gateway</item> </portal_type> </allowed_content_type_list> \ No newline at end of file diff --git a/bt5/erp5_short_message/PortalTypeTemplateItem/portal_types/Essendex%20Gateway.xml b/bt5/erp5_short_message/PortalTypeTemplateItem/portal_types/Essendex%20Gateway.xml index 910707eb63..9d88e77b58 100644 --- a/bt5/erp5_short_message/PortalTypeTemplateItem/portal_types/Essendex%20Gateway.xml +++ b/bt5/erp5_short_message/PortalTypeTemplateItem/portal_types/Essendex%20Gateway.xml @@ -6,6 +6,25 @@ </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>content_icon</string> </key> <value> @@ -55,4 +74,42 @@ </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>domain_name</string> </key> + <value> + <none/> + </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> + <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>domain_name</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>property_name</string> </key> + <value> <string>title</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_short_message/PortalTypeTemplateItem/portal_types/Mobyt%20Gateway.xml b/bt5/erp5_short_message/PortalTypeTemplateItem/portal_types/Mobyt%20Gateway.xml new file mode 100644 index 0000000000..51d471d2dc --- /dev/null +++ b/bt5/erp5_short_message/PortalTypeTemplateItem/portal_types/Mobyt%20Gateway.xml @@ -0,0 +1,111 @@ +<?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>content_icon</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Mobyt Gateway</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>MobytGateway</string> </value> + </item> + <item> + <key> <string>type_mixin</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>domain_name</string> </key> + <value> + <none/> + </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> + <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>domain_name</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>property_name</string> </key> + <value> <string>title</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSGateway_view/my_gateway_password.xml b/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSGateway_view/my_gateway_password.xml index 8d3b090538..ad449371d9 100644 --- a/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSGateway_view/my_gateway_password.xml +++ b/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSGateway_view/my_gateway_password.xml @@ -10,6 +10,7 @@ <key> <string>delegated_list</string> </key> <value> <list> + <string>default</string> <string>title</string> </list> </value> @@ -52,6 +53,10 @@ <key> <string>tales</string> </key> <value> <dictionary> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> @@ -64,6 +69,10 @@ <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -71,6 +80,10 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string>my_password</string> </value> diff --git a/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_afterSend.xml b/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_afterSend.xml index c1682852a7..22f1aeaa58 100644 --- a/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_afterSend.xml +++ b/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_afterSend.xml @@ -51,70 +51,19 @@ <item> <key> <string>_body</string> </key> <value> <string>"""Save the message id of the relative document"""\n +if document_relative_url:\n + document = context.getPortalObject().restrictedTraverse(document_relative_url)\n + document.setDestinationReference(message_id_list[0])\n </string> </value> </item> - <item> - <key> <string>_code</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>_params</string> </key> - <value> <string>message_id, document_relative_url=None</string> </value> - </item> - <item> - <key> <string>errors</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>func_code</string> </key> - <value> - <object> - <klass> - <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>co_argcount</string> </key> - <value> <int>2</int> </value> - </item> - <item> - <key> <string>co_varnames</string> </key> - <value> - <tuple> - <string>message_id</string> - <string>document_relative_url</string> - </tuple> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>func_defaults</string> </key> - <value> - <tuple> - <none/> - </tuple> - </value> + <value> <string>message_id_list, document_relative_url=None, **kw</string> </value> </item> <item> <key> <string>id</string> </key> <value> <string>SMSTool_afterSend</string> </value> </item> - <item> - <key> <string>warnings</string> </key> - <value> - <tuple/> - </value> - </item> </dictionary> </pickle> </record> diff --git a/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_pushNewSMS.xml b/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_pushNewSMS.xml index c53cab743b..f570fc7153 100644 --- a/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_pushNewSMS.xml +++ b/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_pushNewSMS.xml @@ -91,65 +91,10 @@ event.setDestinationValue(searchParentOfTelephoneNumber(recipient))\n #context.log("new SMS added at %s" % event.getRelativeUrl())\n </string> </value> </item> - <item> - <key> <string>_code</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>_params</string> </key> <value> <string>message_id, sender, recipient, text_content, message_type, reception_date</string> </value> </item> - <item> - <key> <string>errors</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>func_code</string> </key> - <value> - <object> - <klass> - <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>co_argcount</string> </key> - <value> <int>6</int> </value> - </item> - <item> - <key> <string>co_varnames</string> </key> - <value> - <tuple> - <string>message_id</string> - <string>sender</string> - <string>recipient</string> - <string>text_content</string> - <string>message_type</string> - <string>reception_date</string> - <string>_getattr_</string> - <string>context</string> - <string>module</string> - <string>event</string> - <string>searchParentOfTelephoneNumber</string> - </tuple> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>func_defaults</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>id</string> </key> <value> <string>SMSTool_pushNewSMS</string> </value> @@ -158,12 +103,6 @@ event.setDestinationValue(searchParentOfTelephoneNumber(recipient))\n <key> <string>title</string> </key> <value> <string>XXX</string> </value> </item> - <item> - <key> <string>warnings</string> </key> - <value> - <tuple/> - </value> - </item> </dictionary> </pickle> </record> diff --git a/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_setMessageDelivery.xml b/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_setMessageDelivery.xml index 96fc8707cf..8cc6a7c4b2 100644 --- a/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_setMessageDelivery.xml +++ b/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_setMessageDelivery.xml @@ -68,71 +68,14 @@ if event is not None:\n ]]></string> </value> </item> - <item> - <key> <string>_code</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>_params</string> </key> <value> <string>delivery_date, portal_type, destination_reference</string> </value> </item> - <item> - <key> <string>errors</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>func_code</string> </key> - <value> - <object> - <klass> - <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>co_argcount</string> </key> - <value> <int>3</int> </value> - </item> - <item> - <key> <string>co_varnames</string> </key> - <value> - <tuple> - <string>delivery_date</string> - <string>portal_type</string> - <string>destination_reference</string> - <string>_getattr_</string> - <string>context</string> - <string>event</string> - <string>None</string> - </tuple> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>func_defaults</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>id</string> </key> <value> <string>SMSTool_setMessageDelivery</string> </value> </item> - <item> - <key> <string>warnings</string> </key> - <value> - <tuple/> - </value> - </item> </dictionary> </pickle> </record> diff --git a/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_viewSMSGatewayList.xml b/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_viewSMSGatewayList.xml new file mode 100644 index 0000000000..5cfd24a5b9 --- /dev/null +++ b/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_viewSMSGatewayList.xml @@ -0,0 +1,152 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>edit_order</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>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>SMSTool_viewSMSGatewayList</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>SMSTool_viewSMSGatewayList</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></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_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_viewSMSGatewayList/listbox.xml b/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_viewSMSGatewayList/listbox.xml new file mode 100644 index 0000000000..fcf3cef8d4 --- /dev/null +++ b/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/SMSTool_viewSMSGatewayList/listbox.xml @@ -0,0 +1,116 @@ +<?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>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> + <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>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>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>columns</string> </key> + <value> + <list> + <tuple> + <string>title</string> + <string>Title</string> + </tuple> + <tuple> + <string>translated_portal_type</string> + <string>Type</string> + </tuple> + <tuple> + <string>reference</string> + <string>Reference</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>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Gateways</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/ShortMessage_init.xml b/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/ShortMessage_init.xml index 60c4419c5a..823853198e 100644 --- a/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/ShortMessage_init.xml +++ b/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/ShortMessage_init.xml @@ -73,12 +73,6 @@ context.edit(content_type=\'text/plain\',\n reference=reference)\n </string> </value> </item> - <item> - <key> <string>_code</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>_params</string> </key> <value> <string>*args, **kw</string> </value> @@ -91,66 +85,10 @@ context.edit(content_type=\'text/plain\',\n </tuple> </value> </item> - <item> - <key> <string>errors</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>func_code</string> </key> - <value> - <object> - <klass> - <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>co_argcount</string> </key> - <value> <int>0</int> </value> - </item> - <item> - <key> <string>co_varnames</string> </key> - <value> - <tuple> - <string>args</string> - <string>kw</string> - <string>_getattr_</string> - <string>context</string> - <string>portal</string> - <string>type_definition</string> - <string>short_portal_type</string> - <string>_getiter_</string> - <string>id_group</string> - <string>default</string> - <string>new_id</string> - <string>reference</string> - </tuple> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>func_defaults</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>id</string> </key> <value> <string>ShortMessage_init</string> </value> </item> - <item> - <key> <string>warnings</string> </key> - <value> - <tuple/> - </value> - </item> </dictionary> </pickle> </record> diff --git a/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/ShortMessage_send.xml b/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/ShortMessage_send.xml index a6470b24c3..f33282e5ab 100644 --- a/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/ShortMessage_send.xml +++ b/bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/ShortMessage_send.xml @@ -82,96 +82,14 @@ context.portal_sms.send(text=body,recipient=to_url,sender=from_url,sender_title= test=download, document_relative_url=context.getRelativeUrl(), **kw)\n </string> </value> </item> - <item> - <key> <string>_code</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>_params</string> </key> <value> <string>from_url=None, from_title=None, to_url=None, reply_url=None, subject=None, body=None, attachment_format=None, attachment_list=None,download=False,**kw</string> </value> </item> - <item> - <key> <string>errors</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>func_code</string> </key> - <value> - <object> - <klass> - <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>co_argcount</string> </key> - <value> <int>9</int> </value> - </item> - <item> - <key> <string>co_varnames</string> </key> - <value> - <tuple> - <string>from_url</string> - <string>from_title</string> - <string>to_url</string> - <string>reply_url</string> - <string>subject</string> - <string>body</string> - <string>attachment_format</string> - <string>attachment_list</string> - <string>download</string> - <string>kw</string> - <string>append</string> - <string>$append0</string> - <string>_getiter_</string> - <string>_getattr_</string> - <string>context</string> - <string>person</string> - <string>recipient_phone_list</string> - <string>None</string> - <string>ValueError</string> - <string>phone</string> - <string>sender_phone</string> - <string>_apply_</string> - </tuple> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>func_defaults</string> </key> - <value> - <tuple> - <none/> - <none/> - <none/> - <none/> - <none/> - <none/> - <none/> - <none/> - <int>0</int> - </tuple> - </value> - </item> <item> <key> <string>id</string> </key> <value> <string>ShortMessage_send</string> </value> </item> - <item> - <key> <string>warnings</string> </key> - <value> - <tuple/> - </value> - </item> </dictionary> </pickle> </record> diff --git a/bt5/erp5_short_message/WorkflowTemplateItem/portal_workflow/short_message_interaction_workflow/scripts/ShortMessage_send.xml b/bt5/erp5_short_message/WorkflowTemplateItem/portal_workflow/short_message_interaction_workflow/scripts/ShortMessage_send.xml index e57446c3af..46c2b7562a 100644 --- a/bt5/erp5_short_message/WorkflowTemplateItem/portal_workflow/short_message_interaction_workflow/scripts/ShortMessage_send.xml +++ b/bt5/erp5_short_message/WorkflowTemplateItem/portal_workflow/short_message_interaction_workflow/scripts/ShortMessage_send.xml @@ -55,69 +55,14 @@ message = state_change[\'object\']\n message.send(**state_change.kwargs)\n </string> </value> </item> - <item> - <key> <string>_code</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>_params</string> </key> <value> <string>state_change</string> </value> </item> - <item> - <key> <string>errors</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>func_code</string> </key> - <value> - <object> - <klass> - <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>co_argcount</string> </key> - <value> <int>1</int> </value> - </item> - <item> - <key> <string>co_varnames</string> </key> - <value> - <tuple> - <string>state_change</string> - <string>_getitem_</string> - <string>message</string> - <string>_apply_</string> - <string>_getattr_</string> - </tuple> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>func_defaults</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>id</string> </key> <value> <string>ShortMessage_send</string> </value> </item> - <item> - <key> <string>warnings</string> </key> - <value> - <tuple/> - </value> - </item> </dictionary> </pickle> </record> diff --git a/bt5/erp5_short_message/bt/categories_list b/bt5/erp5_short_message/bt/categories_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/change_log b/bt5/erp5_short_message/bt/change_log deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/comment b/bt5/erp5_short_message/bt/comment deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/provision_list b/bt5/erp5_short_message/bt/provision_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/revision b/bt5/erp5_short_message/bt/revision index 62f9457511..c7930257df 100644 --- a/bt5/erp5_short_message/bt/revision +++ b/bt5/erp5_short_message/bt/revision @@ -1 +1 @@ -6 \ No newline at end of file +7 \ No newline at end of file diff --git a/bt5/erp5_short_message/bt/template_action_path_list b/bt5/erp5_short_message/bt/template_action_path_list index 2c303dc652..da150781ad 100644 --- a/bt5/erp5_short_message/bt/template_action_path_list +++ b/bt5/erp5_short_message/bt/template_action_path_list @@ -1,2 +1,3 @@ Essendex Gateway | view +Mobyt Gateway | view SMS Tool | view \ No newline at end of file diff --git a/bt5/erp5_short_message/bt/template_base_category_list b/bt5/erp5_short_message/bt/template_base_category_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_catalog_datetime_key_list b/bt5/erp5_short_message/bt/template_catalog_datetime_key_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_catalog_full_text_key_list b/bt5/erp5_short_message/bt/template_catalog_full_text_key_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_catalog_keyword_key_list b/bt5/erp5_short_message/bt/template_catalog_keyword_key_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_catalog_local_role_key_list b/bt5/erp5_short_message/bt/template_catalog_local_role_key_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_catalog_method_id_list b/bt5/erp5_short_message/bt/template_catalog_method_id_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_catalog_multivalue_key_list b/bt5/erp5_short_message/bt/template_catalog_multivalue_key_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_catalog_related_key_list b/bt5/erp5_short_message/bt/template_catalog_related_key_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_catalog_request_key_list b/bt5/erp5_short_message/bt/template_catalog_request_key_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_catalog_result_key_list b/bt5/erp5_short_message/bt/template_catalog_result_key_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_catalog_result_table_list b/bt5/erp5_short_message/bt/template_catalog_result_table_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_catalog_role_key_list b/bt5/erp5_short_message/bt/template_catalog_role_key_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_catalog_scriptable_key_list b/bt5/erp5_short_message/bt/template_catalog_scriptable_key_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_catalog_search_key_list b/bt5/erp5_short_message/bt/template_catalog_search_key_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_catalog_topic_key_list b/bt5/erp5_short_message/bt/template_catalog_topic_key_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_constraint_id_list b/bt5/erp5_short_message/bt/template_constraint_id_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_document_id_list b/bt5/erp5_short_message/bt/template_document_id_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_extension_id_list b/bt5/erp5_short_message/bt/template_extension_id_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_local_role_list b/bt5/erp5_short_message/bt/template_local_role_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_local_roles_list b/bt5/erp5_short_message/bt/template_local_roles_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_message_translation_list b/bt5/erp5_short_message/bt/template_message_translation_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_module_id_list b/bt5/erp5_short_message/bt/template_module_id_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_path_list b/bt5/erp5_short_message/bt/template_path_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_short_message/bt/template_portal_type_allowed_content_type_list index 75282b70a7..1fac6a6793 100644 --- a/bt5/erp5_short_message/bt/template_portal_type_allowed_content_type_list +++ b/bt5/erp5_short_message/bt/template_portal_type_allowed_content_type_list @@ -1 +1,2 @@ -SMS Tool | Essendex Gateway \ No newline at end of file +SMS Tool | Essendex Gateway +SMS Tool | Mobyt Gateway \ No newline at end of file diff --git a/bt5/erp5_short_message/bt/template_portal_type_base_category_list b/bt5/erp5_short_message/bt/template_portal_type_base_category_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_portal_type_hidden_content_type_list b/bt5/erp5_short_message/bt/template_portal_type_hidden_content_type_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_portal_type_id_list b/bt5/erp5_short_message/bt/template_portal_type_id_list index b4d630122c..7b271a4bba 100644 --- a/bt5/erp5_short_message/bt/template_portal_type_id_list +++ b/bt5/erp5_short_message/bt/template_portal_type_id_list @@ -1,2 +1,3 @@ Essendex Gateway +Mobyt Gateway SMS Tool \ No newline at end of file diff --git a/bt5/erp5_short_message/bt/template_portal_type_property_sheet_list b/bt5/erp5_short_message/bt/template_portal_type_property_sheet_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_portal_type_role_list b/bt5/erp5_short_message/bt/template_portal_type_role_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_portal_type_roles_list b/bt5/erp5_short_message/bt/template_portal_type_roles_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_portal_type_workflow_chain_list b/bt5/erp5_short_message/bt/template_portal_type_workflow_chain_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_preference_list b/bt5/erp5_short_message/bt/template_preference_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_product_id_list b/bt5/erp5_short_message/bt/template_product_id_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_property_sheet_id_list b/bt5/erp5_short_message/bt/template_property_sheet_id_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_registered_skin_selection_list b/bt5/erp5_short_message/bt/template_registered_skin_selection_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_role_list b/bt5/erp5_short_message/bt/template_role_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_site_property_id_list b/bt5/erp5_short_message/bt/template_site_property_id_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_test_id_list b/bt5/erp5_short_message/bt/template_test_id_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_tool_id_list b/bt5/erp5_short_message/bt/template_tool_id_list deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bt5/erp5_short_message/bt/template_update_business_template_workflow b/bt5/erp5_short_message/bt/template_update_business_template_workflow deleted file mode 100644 index c227083464..0000000000 --- a/bt5/erp5_short_message/bt/template_update_business_template_workflow +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/bt5/erp5_short_message/bt/template_update_tool b/bt5/erp5_short_message/bt/template_update_tool deleted file mode 100644 index c227083464..0000000000 --- a/bt5/erp5_short_message/bt/template_update_tool +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/bt5/erp5_short_message/bt/version b/bt5/erp5_short_message/bt/version index 2f4536184b..1d71ef9744 100644 --- a/bt5/erp5_short_message/bt/version +++ b/bt5/erp5_short_message/bt/version @@ -1 +1 @@ -0.2 \ No newline at end of file +0.3 \ No newline at end of file -- 2.30.9