From 844b6e689442e6d9e18197873983de70da481f2e Mon Sep 17 00:00:00 2001 From: Julien Muchembled <jm@nexedi.com> Date: Mon, 28 Sep 2009 17:26:21 +0000 Subject: [PATCH] Import work on portal_types. git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/portal_types@29237 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_types/EGov%20Type/action_view.xml | 89 +++ .../portal_types/EGov%20Type/base_view.xml | 89 +++ .../portal_types/EGov%20Type/egov_view.xml | 89 +++ .../portal_types/EGov%20Type/role_view.xml | 89 +++ .../EGov%20Type/translation_view.xml | 89 +++ .../portal_types/PDF%20Type/action_view.xml | 89 +++ .../portal_types/PDF%20Type/base_view.xml | 89 +++ .../portal_types/PDF%20Type/role_view.xml | 89 +++ .../PDF%20Type/translation_view.xml | 89 +++ .../EGovTypeInformation.py | 52 ++ .../allowed_content_types.xml | 20 + .../property_sheet_list.xml | 5 + .../portal_types/Declaration%20TVA%202008.xml | 43 ++ .../portal_types/EGov%20Type.xml | 43 ++ .../portal_types/PDF%20Type.xml | 128 ++++ .../portal_types/PDF.xml | 125 ++++ .../workflow_chain_type.xml | 6 + .../PropertySheetTemplateItem/EGovType.py | 45 ++ .../portal_skins/erp5_egov_type.xml | 29 + .../EGovType_viewConfiguration.xml | 152 +++++ .../my_egov_type_assignable.xml | 171 ++++++ .../my_egov_type_payable.xml | 171 ++++++ .../portal_skins/erp5_pdf_type.xml | 29 + .../erp5_pdf_type/PDFType_view.xml | 167 +++++ .../PDFType_view/my_default_pdf_form_file.xml | 195 ++++++ .../my_default_scribus_form_file.xml | 195 ++++++ .../PDFType_view/my_description.xml | 93 +++ .../erp5_pdf_type/PDFType_view/my_id.xml | 281 +++++++++ .../my_translated_validation_title.xml | 263 ++++++++ .../my_type_acquire_local_role.xml | 171 ++++++ .../PDFType_view/my_type_add_permission.xml | 263 ++++++++ .../my_type_allowed_content_type_list.xml | 301 +++++++++ .../my_type_base_category_list.xml | 277 +++++++++ .../my_type_factory_method_id.xml | 263 ++++++++ .../my_type_filter_content_type.xml | 171 ++++++ .../PDFType_view/my_type_group_list.xml | 277 +++++++++ .../my_type_hidden_content_type_list.xml | 302 +++++++++ .../PDFType_view/my_type_init_script_id.xml | 263 ++++++++ .../my_type_property_sheet_list.xml | 277 +++++++++ bt5/erp5_egov_type/bt/categories_list | 0 bt5/erp5_egov_type/bt/change_log | 0 bt5/erp5_egov_type/bt/comment | 0 bt5/erp5_egov_type/bt/copyright_list | 1 + bt5/erp5_egov_type/bt/dependency_list | 1 + bt5/erp5_egov_type/bt/description | 0 bt5/erp5_egov_type/bt/license | 1 + bt5/erp5_egov_type/bt/maintainer_list | 0 bt5/erp5_egov_type/bt/provision_list | 0 bt5/erp5_egov_type/bt/publication_url | 1 + bt5/erp5_egov_type/bt/revision | 1 + bt5/erp5_egov_type/bt/short_title | 1 + .../bt/template_action_path_list | 9 + .../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_topic_key_list | 0 .../bt/template_constraint_id_list | 0 .../bt/template_document_id_list | 1 + .../bt/template_extension_id_list | 0 bt5/erp5_egov_type/bt/template_format_version | 1 + .../bt/template_local_role_list | 0 .../bt/template_local_roles_list | 0 .../bt/template_message_translation_list | 0 bt5/erp5_egov_type/bt/template_module_id_list | 0 bt5/erp5_egov_type/bt/template_path_list | 0 ...late_portal_type_allowed_content_type_list | 12 + .../template_portal_type_base_category_list | 0 ...plate_portal_type_hidden_content_type_list | 0 .../bt/template_portal_type_id_list | 4 + .../template_portal_type_property_sheet_list | 1 + .../bt/template_portal_type_role_list | 0 .../bt/template_portal_type_roles_list | 0 .../template_portal_type_workflow_chain_list | 2 + .../bt/template_preference_list | 0 .../bt/template_product_id_list | 0 .../bt/template_property_sheet_id_list | 1 + bt5/erp5_egov_type/bt/template_role_list | 0 .../bt/template_site_property_id_list | 0 bt5/erp5_egov_type/bt/template_skin_id_list | 2 + bt5/erp5_egov_type/bt/template_test_id_list | 0 bt5/erp5_egov_type/bt/template_tool_id_list | 0 ...template_update_business_template_workflow | 1 + bt5/erp5_egov_type/bt/template_update_tool | 1 + .../bt/template_workflow_id_list | 0 bt5/erp5_egov_type/bt/title | 1 + bt5/erp5_egov_type/bt/version | 0 product/ERP5/Document/BusinessTemplate.py | 121 ++-- product/ERP5/ERP5Site.py | 26 +- .../Action%20Information/base_view.xml | 91 +++ .../portal_types/Base%20Type/action_view.xml | 91 +++ .../portal_types/Base%20Type/base_view.xml | 91 +++ .../portal_types/Base%20Type/role_view.xml | 91 +++ .../Base%20Type/translation_view.xml | 91 +++ .../Role%20Information/base_view.xml | 91 +++ .../Translation%20Information/base_view.xml | 91 +++ .../portal_types/Types%20Tool/base_view.xml | 91 +++ .../portal_categories/action_type.xml | 81 +++ .../action_type/object_action.xml | 23 + .../action_type/object_add.xml | 23 + .../action_type/object_button.xml | 23 + .../action_type/object_dialog.xml | 23 + .../action_type/object_exchange.xml | 23 + .../action_type/object_fast_input.xml | 23 + .../action_type/object_icon.xml | 23 + .../action_type/object_jump.xml | 23 + .../action_type/object_list.xml | 23 + .../action_type/object_print.xml | 23 + .../action_type/object_report.xml | 23 + .../action_type/object_search.xml | 23 + .../action_type/object_view.xml | 23 + .../action_type/object_web_view.xml | 23 + .../allowed_content_types.xml | 10 + .../portal_types/Action%20Information.xml | 75 +++ .../portal_types/Base%20Type.xml | 124 ++++ .../portal_types/Role%20Information.xml | 43 ++ .../Translation%20Information.xml | 47 ++ .../portal_types/Types%20Tool.xml | 124 ++++ .../portal_skins/erp5_type.xml | 29 + .../erp5_type/ActionInformation_view.xml | 160 +++++ .../my_action_expression.xml | 126 ++++ .../my_action_permission.xml | 132 ++++ .../ActionInformation_view/my_action_type.xml | 93 +++ .../ActionInformation_view/my_condition.xml | 126 ++++ .../ActionInformation_view/my_description.xml | 93 +++ .../ActionInformation_view/my_float_index.xml | 99 +++ .../ActionInformation_view/my_icon.xml | 126 ++++ .../ActionInformation_view/my_id.xml | 99 +++ .../ActionInformation_view/my_title.xml | 93 +++ .../ActionInformation_view/my_visible.xml | 99 +++ .../erp5_type/BaseType_getTranslationList.xml | 141 +++++ .../portal_skins/erp5_type/BaseType_view.xml | 164 +++++ .../BaseType_view/my_description.xml | 93 +++ .../erp5_type/BaseType_view/my_id.xml | 99 +++ .../my_type_acquire_local_role.xml | 99 +++ .../BaseType_view/my_type_add_permission.xml | 99 +++ .../my_type_allowed_content_type_list.xml | 99 +++ .../my_type_base_category_list.xml | 128 ++++ .../my_type_factory_method_id.xml | 99 +++ .../my_type_filter_content_type.xml | 99 +++ .../BaseType_view/my_type_group_list.xml | 128 ++++ .../my_type_hidden_content_type_list.xml | 99 +++ .../BaseType_view/my_type_init_script_id.xml | 99 +++ .../my_type_property_sheet_list.xml | 128 ++++ .../erp5_type/BaseType_viewAction.xml | 160 +++++ .../erp5_type/BaseType_viewAction/listbox.xml | 233 +++++++ .../listbox_float_index.xml | 99 +++ .../BaseType_viewAction/listbox_title.xml | 93 +++ .../erp5_type/BaseType_viewAction/my_id.xml | 99 +++ .../erp5_type/BaseType_viewRole.xml | 159 +++++ .../erp5_type/BaseType_viewRole/listbox.xml | 148 +++++ .../BaseType_viewRole/listbox_role_name.xml | 130 ++++ .../erp5_type/BaseType_viewRole/my_id.xml | 99 +++ .../erp5_type/BaseType_viewTranslation.xml | 159 +++++ .../BaseType_viewTranslation/listbox.xml | 213 +++++++ .../listbox_domain_name.xml | 132 ++++ .../BaseType_viewTranslation/my_id.xml | 99 +++ .../erp5_type/RoleInformation_view.xml | 163 +++++ .../RoleInformation_view/my_condition.xml | 126 ++++ .../RoleInformation_view/my_description.xml | 93 +++ .../my_role_base_category_list.xml | 99 +++ .../my_role_base_category_script_id.xml | 99 +++ .../my_role_category_list.xml | 99 +++ .../my_role_name_list.xml | 109 ++++ .../RoleInformation_view/my_title.xml | 93 +++ .../erp5_type/TranslationInformation_view.xml | 154 +++++ .../my_description.xml | 283 +++++++++ .../my_domain_name.xml | 283 +++++++++ .../TranslationInformation_view/my_id.xml | 263 ++++++++ .../my_property_name.xml | 263 ++++++++ .../erp5_type/TypesTool_viewContentList.xml | 117 ++++ .../TypesTool_viewContentList/listbox.xml | 128 ++++ .../bootstrap/erp5_type/bt/categories_list | 0 .../ERP5/bootstrap/erp5_type/bt/change_log | 0 product/ERP5/bootstrap/erp5_type/bt/comment | 0 .../bootstrap/erp5_type/bt/copyright_list | 1 + .../bootstrap/erp5_type/bt/dependency_list | 0 .../ERP5/bootstrap/erp5_type/bt/description | 0 product/ERP5/bootstrap/erp5_type/bt/license | 1 + .../bootstrap/erp5_type/bt/maintainer_list | 0 .../bootstrap/erp5_type/bt/provision_list | 0 .../bootstrap/erp5_type/bt/publication_url | 1 + product/ERP5/bootstrap/erp5_type/bt/revision | 1 + .../ERP5/bootstrap/erp5_type/bt/short_title | 1 + .../erp5_type/bt/template_action_path_list | 8 + .../erp5_type/bt/template_base_category_list | 1 + .../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_topic_key_list | 0 .../erp5_type/bt/template_constraint_id_list | 0 .../erp5_type/bt/template_document_id_list | 0 .../erp5_type/bt/template_extension_id_list | 0 .../erp5_type/bt/template_format_version | 1 + .../erp5_type/bt/template_local_role_list | 0 .../erp5_type/bt/template_local_roles_list | 0 .../bt/template_message_translation_list | 0 .../erp5_type/bt/template_module_id_list | 0 .../bootstrap/erp5_type/bt/template_path_list | 1 + ...late_portal_type_allowed_content_type_list | 4 + .../template_portal_type_base_category_list | 0 ...plate_portal_type_hidden_content_type_list | 0 .../erp5_type/bt/template_portal_type_id_list | 5 + .../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 .../erp5_type/bt/template_preference_list | 0 .../erp5_type/bt/template_product_id_list | 0 .../bt/template_property_sheet_id_list | 0 .../bootstrap/erp5_type/bt/template_role_list | 0 .../bt/template_site_property_id_list | 0 .../erp5_type/bt/template_skin_id_list | 1 + .../erp5_type/bt/template_test_id_list | 0 .../erp5_type/bt/template_tool_id_list | 0 ...template_update_business_template_workflow | 1 + .../erp5_type/bt/template_update_tool | 1 + .../erp5_type/bt/template_workflow_id_list | 0 product/ERP5/bootstrap/erp5_type/bt/title | 1 + product/ERP5/bootstrap/erp5_type/bt/version | 0 .../ERP5Security/tests/testERP5Security.py | 106 ++-- product/ERP5Type/Base.py | 9 +- product/ERP5Type/Core/ActionInformation.py | 145 ++++- product/ERP5Type/Core/RoleInformation.py | 82 +++ product/ERP5Type/ERP5Type.py | 572 +++++++----------- .../PropertySheet/ActionInformation.py | 99 ++- product/ERP5Type/PropertySheet/BaseType.py | 6 +- .../ERP5Type/PropertySheet/RoleInformation.py | 70 ++- product/ERP5Type/RoleInformation.py | 188 ------ product/ERP5Type/RoleProviderBase.py | 289 --------- product/ERP5Type/Tool/TypesTool.py | 92 ++- product/ERP5Type/TranslationProviderBase.py | 56 +- product/ERP5Type/XMLObject.py | 10 +- product/ERP5Type/__init__.py | 2 +- product/ERP5Type/patches/ActionInformation.py | 10 +- product/ERP5Type/patches/CMFCoreUtils.py | 9 +- product/ERP5Type/tests/ERP5TypeTestCase.py | 3 +- product/ERP5Type/tests/testERP5Type.py | 24 +- product/zope.patch | 11 + 257 files changed, 15047 insertions(+), 1131 deletions(-) create mode 100644 bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/action_view.xml create mode 100644 bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/base_view.xml create mode 100644 bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/egov_view.xml create mode 100644 bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/role_view.xml create mode 100644 bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/translation_view.xml create mode 100644 bt5/erp5_egov_type/ActionTemplateItem/portal_types/PDF%20Type/action_view.xml create mode 100644 bt5/erp5_egov_type/ActionTemplateItem/portal_types/PDF%20Type/base_view.xml create mode 100644 bt5/erp5_egov_type/ActionTemplateItem/portal_types/PDF%20Type/role_view.xml create mode 100644 bt5/erp5_egov_type/ActionTemplateItem/portal_types/PDF%20Type/translation_view.xml create mode 100644 bt5/erp5_egov_type/DocumentTemplateItem/EGovTypeInformation.py create mode 100644 bt5/erp5_egov_type/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml create mode 100644 bt5/erp5_egov_type/PortalTypePropertySheetTemplateItem/property_sheet_list.xml create mode 100644 bt5/erp5_egov_type/PortalTypeTemplateItem/portal_types/Declaration%20TVA%202008.xml create mode 100644 bt5/erp5_egov_type/PortalTypeTemplateItem/portal_types/EGov%20Type.xml create mode 100644 bt5/erp5_egov_type/PortalTypeTemplateItem/portal_types/PDF%20Type.xml create mode 100644 bt5/erp5_egov_type/PortalTypeTemplateItem/portal_types/PDF.xml create mode 100644 bt5/erp5_egov_type/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml create mode 100644 bt5/erp5_egov_type/PropertySheetTemplateItem/EGovType.py create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_egov_type.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_egov_type/EGovType_viewConfiguration.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_egov_type/EGovType_viewConfiguration/my_egov_type_assignable.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_egov_type/EGovType_viewConfiguration/my_egov_type_payable.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_default_pdf_form_file.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_default_scribus_form_file.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_description.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_id.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_translated_validation_title.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_acquire_local_role.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_add_permission.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_allowed_content_type_list.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_base_category_list.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_factory_method_id.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_filter_content_type.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_group_list.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_hidden_content_type_list.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_init_script_id.xml create mode 100644 bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_property_sheet_list.xml create mode 100644 bt5/erp5_egov_type/bt/categories_list create mode 100644 bt5/erp5_egov_type/bt/change_log create mode 100644 bt5/erp5_egov_type/bt/comment create mode 100644 bt5/erp5_egov_type/bt/copyright_list create mode 100644 bt5/erp5_egov_type/bt/dependency_list create mode 100644 bt5/erp5_egov_type/bt/description create mode 100644 bt5/erp5_egov_type/bt/license create mode 100644 bt5/erp5_egov_type/bt/maintainer_list create mode 100644 bt5/erp5_egov_type/bt/provision_list create mode 100644 bt5/erp5_egov_type/bt/publication_url create mode 100644 bt5/erp5_egov_type/bt/revision create mode 100644 bt5/erp5_egov_type/bt/short_title create mode 100644 bt5/erp5_egov_type/bt/template_action_path_list create mode 100644 bt5/erp5_egov_type/bt/template_base_category_list create mode 100644 bt5/erp5_egov_type/bt/template_catalog_datetime_key_list create mode 100644 bt5/erp5_egov_type/bt/template_catalog_full_text_key_list create mode 100644 bt5/erp5_egov_type/bt/template_catalog_keyword_key_list create mode 100644 bt5/erp5_egov_type/bt/template_catalog_local_role_key_list create mode 100644 bt5/erp5_egov_type/bt/template_catalog_method_id_list create mode 100644 bt5/erp5_egov_type/bt/template_catalog_multivalue_key_list create mode 100644 bt5/erp5_egov_type/bt/template_catalog_related_key_list create mode 100644 bt5/erp5_egov_type/bt/template_catalog_request_key_list create mode 100644 bt5/erp5_egov_type/bt/template_catalog_result_key_list create mode 100644 bt5/erp5_egov_type/bt/template_catalog_result_table_list create mode 100644 bt5/erp5_egov_type/bt/template_catalog_role_key_list create mode 100644 bt5/erp5_egov_type/bt/template_catalog_scriptable_key_list create mode 100644 bt5/erp5_egov_type/bt/template_catalog_topic_key_list create mode 100644 bt5/erp5_egov_type/bt/template_constraint_id_list create mode 100644 bt5/erp5_egov_type/bt/template_document_id_list create mode 100644 bt5/erp5_egov_type/bt/template_extension_id_list create mode 100644 bt5/erp5_egov_type/bt/template_format_version create mode 100644 bt5/erp5_egov_type/bt/template_local_role_list create mode 100644 bt5/erp5_egov_type/bt/template_local_roles_list create mode 100644 bt5/erp5_egov_type/bt/template_message_translation_list create mode 100644 bt5/erp5_egov_type/bt/template_module_id_list create mode 100644 bt5/erp5_egov_type/bt/template_path_list create mode 100644 bt5/erp5_egov_type/bt/template_portal_type_allowed_content_type_list create mode 100644 bt5/erp5_egov_type/bt/template_portal_type_base_category_list create mode 100644 bt5/erp5_egov_type/bt/template_portal_type_hidden_content_type_list create mode 100644 bt5/erp5_egov_type/bt/template_portal_type_id_list create mode 100644 bt5/erp5_egov_type/bt/template_portal_type_property_sheet_list create mode 100644 bt5/erp5_egov_type/bt/template_portal_type_role_list create mode 100644 bt5/erp5_egov_type/bt/template_portal_type_roles_list create mode 100644 bt5/erp5_egov_type/bt/template_portal_type_workflow_chain_list create mode 100644 bt5/erp5_egov_type/bt/template_preference_list create mode 100644 bt5/erp5_egov_type/bt/template_product_id_list create mode 100644 bt5/erp5_egov_type/bt/template_property_sheet_id_list create mode 100644 bt5/erp5_egov_type/bt/template_role_list create mode 100644 bt5/erp5_egov_type/bt/template_site_property_id_list create mode 100644 bt5/erp5_egov_type/bt/template_skin_id_list create mode 100644 bt5/erp5_egov_type/bt/template_test_id_list create mode 100644 bt5/erp5_egov_type/bt/template_tool_id_list create mode 100644 bt5/erp5_egov_type/bt/template_update_business_template_workflow create mode 100644 bt5/erp5_egov_type/bt/template_update_tool create mode 100644 bt5/erp5_egov_type/bt/template_workflow_id_list create mode 100644 bt5/erp5_egov_type/bt/title create mode 100644 bt5/erp5_egov_type/bt/version create mode 100644 product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Action%20Information/base_view.xml create mode 100644 product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Base%20Type/action_view.xml create mode 100644 product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Base%20Type/base_view.xml create mode 100644 product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Base%20Type/role_view.xml create mode 100644 product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Base%20Type/translation_view.xml create mode 100644 product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Role%20Information/base_view.xml create mode 100644 product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Translation%20Information/base_view.xml create mode 100644 product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Types%20Tool/base_view.xml create mode 100644 product/ERP5/bootstrap/erp5_type/CategoryTemplateItem/portal_categories/action_type.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_action.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_add.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_button.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_dialog.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_exchange.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_fast_input.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_icon.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_jump.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_list.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_print.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_report.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_search.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_view.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_web_view.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Action%20Information.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Base%20Type.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Role%20Information.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Translation%20Information.xml create mode 100644 product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Types%20Tool.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_action_expression.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_action_permission.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_action_type.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_condition.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_description.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_float_index.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_icon.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_id.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_title.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_visible.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_getTranslationList.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_description.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_id.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_acquire_local_role.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_add_permission.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_allowed_content_type_list.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_base_category_list.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_factory_method_id.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_filter_content_type.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_group_list.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_hidden_content_type_list.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_init_script_id.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_property_sheet_list.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction/listbox.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction/listbox_float_index.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction/listbox_title.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction/my_id.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewRole.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewRole/listbox.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewRole/listbox_role_name.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewRole/my_id.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewTranslation.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewTranslation/listbox.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewTranslation/listbox_domain_name.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewTranslation/my_id.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_condition.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_description.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_role_base_category_list.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_role_base_category_script_id.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_role_category_list.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_role_name_list.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_title.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view/my_description.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view/my_domain_name.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view/my_id.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view/my_property_name.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TypesTool_viewContentList.xml create mode 100644 product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TypesTool_viewContentList/listbox.xml create mode 100644 product/ERP5/bootstrap/erp5_type/bt/categories_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/change_log create mode 100644 product/ERP5/bootstrap/erp5_type/bt/comment create mode 100644 product/ERP5/bootstrap/erp5_type/bt/copyright_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/dependency_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/description create mode 100644 product/ERP5/bootstrap/erp5_type/bt/license create mode 100644 product/ERP5/bootstrap/erp5_type/bt/maintainer_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/provision_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/publication_url create mode 100644 product/ERP5/bootstrap/erp5_type/bt/revision create mode 100644 product/ERP5/bootstrap/erp5_type/bt/short_title create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_action_path_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_base_category_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_catalog_datetime_key_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_catalog_full_text_key_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_catalog_keyword_key_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_catalog_local_role_key_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_catalog_method_id_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_catalog_multivalue_key_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_catalog_related_key_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_catalog_request_key_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_catalog_result_key_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_catalog_result_table_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_catalog_role_key_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_catalog_scriptable_key_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_catalog_topic_key_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_constraint_id_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_document_id_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_extension_id_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_format_version create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_local_role_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_local_roles_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_message_translation_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_module_id_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_path_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_portal_type_allowed_content_type_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_portal_type_base_category_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_portal_type_hidden_content_type_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_portal_type_id_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_portal_type_property_sheet_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_portal_type_role_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_portal_type_roles_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_portal_type_workflow_chain_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_preference_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_product_id_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_property_sheet_id_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_role_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_site_property_id_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_skin_id_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_test_id_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_tool_id_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_update_business_template_workflow create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_update_tool create mode 100644 product/ERP5/bootstrap/erp5_type/bt/template_workflow_id_list create mode 100644 product/ERP5/bootstrap/erp5_type/bt/title create mode 100644 product/ERP5/bootstrap/erp5_type/bt/version create mode 100644 product/ERP5Type/Core/RoleInformation.py delete mode 100644 product/ERP5Type/RoleInformation.py delete mode 100644 product/ERP5Type/RoleProviderBase.py create mode 100644 product/zope.patch diff --git a/bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/action_view.xml b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/action_view.xml new file mode 100644 index 0000000000..d0292d8c78 --- /dev/null +++ b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/action_view.xml @@ -0,0 +1,89 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>action_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>2.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Actions</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/BaseType_viewAction</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/base_view.xml b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/base_view.xml new file mode 100644 index 0000000000..d39e26eef6 --- /dev/null +++ b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/base_view.xml @@ -0,0 +1,89 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>base_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> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/PDFType_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/egov_view.xml b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/egov_view.xml new file mode 100644 index 0000000000..919dcfca45 --- /dev/null +++ b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/egov_view.xml @@ -0,0 +1,89 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>egov_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>5.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>EGov 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> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/EGovType_viewConfiguration</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/role_view.xml b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/role_view.xml new file mode 100644 index 0000000000..7000adb8a3 --- /dev/null +++ b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/role_view.xml @@ -0,0 +1,89 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>role_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>3.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>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> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/BaseType_viewRole</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/translation_view.xml b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/translation_view.xml new file mode 100644 index 0000000000..8956794703 --- /dev/null +++ b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/EGov%20Type/translation_view.xml @@ -0,0 +1,89 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>translation_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>4.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Translations</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/BaseType_viewTranslation</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/ActionTemplateItem/portal_types/PDF%20Type/action_view.xml b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/PDF%20Type/action_view.xml new file mode 100644 index 0000000000..d0292d8c78 --- /dev/null +++ b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/PDF%20Type/action_view.xml @@ -0,0 +1,89 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>action_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>2.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Actions</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/BaseType_viewAction</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/ActionTemplateItem/portal_types/PDF%20Type/base_view.xml b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/PDF%20Type/base_view.xml new file mode 100644 index 0000000000..d39e26eef6 --- /dev/null +++ b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/PDF%20Type/base_view.xml @@ -0,0 +1,89 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>base_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> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/PDFType_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/ActionTemplateItem/portal_types/PDF%20Type/role_view.xml b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/PDF%20Type/role_view.xml new file mode 100644 index 0000000000..7000adb8a3 --- /dev/null +++ b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/PDF%20Type/role_view.xml @@ -0,0 +1,89 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>role_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>3.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>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> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/BaseType_viewRole</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/ActionTemplateItem/portal_types/PDF%20Type/translation_view.xml b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/PDF%20Type/translation_view.xml new file mode 100644 index 0000000000..8956794703 --- /dev/null +++ b/bt5/erp5_egov_type/ActionTemplateItem/portal_types/PDF%20Type/translation_view.xml @@ -0,0 +1,89 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>translation_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>4.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Translations</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/BaseType_viewTranslation</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/DocumentTemplateItem/EGovTypeInformation.py b/bt5/erp5_egov_type/DocumentTemplateItem/EGovTypeInformation.py new file mode 100644 index 0000000000..286d916643 --- /dev/null +++ b/bt5/erp5_egov_type/DocumentTemplateItem/EGovTypeInformation.py @@ -0,0 +1,52 @@ +############################################################################## +# +# Copyright (c) 2002-2007 Nexedi SARL and Contributors. All Rights Reserved. +# +# 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 Products.CMFCore.utils import getToolByName +from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface +from Products.ERP5.Document.PDFTypeInformation import PDFTypeInformation + +class EGovTypeInformation(PDFTypeInformation): + # CMF Type Definition + meta_type = 'ERP5 EGov Type Information' + portal_type = 'EGov Type' + isPortalContent = 1 + isRADContent = 1 + + # Declarative security + security = ClassSecurityInfo() + security.declareObjectProtected(Permissions.AccessContentsInformation) + + # Default Properties + property_sheets = ( PropertySheet.Base + , PropertySheet.XMLObject + , PropertySheet.CategoryCore + , PropertySheet.DublinCore + ) + + # Various methods to override the default implementation + # based on information provided on the "form hosting" application form + # TBD diff --git a/bt5/erp5_egov_type/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_egov_type/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml new file mode 100644 index 0000000000..af4627cc20 --- /dev/null +++ b/bt5/erp5_egov_type/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -0,0 +1,20 @@ +<allowed_content_type_list> + <portal_type id="EGov Type"> + <item>File</item> + <item>Translation Information</item> + <item>PDF</item> + <item>Role Information</item> + <item>Action Information</item> + </portal_type> + <portal_type id="PDF Type"> + <item>Role Information</item> + <item>PDF</item> + <item>File</item> + <item>Action Information</item> + <item>Translation Information</item> + </portal_type> + <portal_type id="Types Tool"> + <item>EGov Type</item> + <item>PDF Type</item> + </portal_type> +</allowed_content_type_list> \ No newline at end of file diff --git a/bt5/erp5_egov_type/PortalTypePropertySheetTemplateItem/property_sheet_list.xml b/bt5/erp5_egov_type/PortalTypePropertySheetTemplateItem/property_sheet_list.xml new file mode 100644 index 0000000000..ee6dac7e06 --- /dev/null +++ b/bt5/erp5_egov_type/PortalTypePropertySheetTemplateItem/property_sheet_list.xml @@ -0,0 +1,5 @@ +<property_sheet_list> + <portal_type id="EGov Type"> + <item>EGovType</item> + </portal_type> +</property_sheet_list> \ No newline at end of file diff --git a/bt5/erp5_egov_type/PortalTypeTemplateItem/portal_types/Declaration%20TVA%202008.xml b/bt5/erp5_egov_type/PortalTypeTemplateItem/portal_types/Declaration%20TVA%202008.xml new file mode 100644 index 0000000000..a6484b5991 --- /dev/null +++ b/bt5/erp5_egov_type/PortalTypeTemplateItem/portal_types/Declaration%20TVA%202008.xml @@ -0,0 +1,43 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="EGovTypeInformation" module="Products.ERP5Type.Document.EGovTypeInformation"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>Formulaire de d茅claration de TVA mod猫le 2008. This form is an instance of EGov Type. The default view should be the view of "Application Form for the hosting of an application form". The PDF Form and Scribus files which are provided should define the TVA (VAT) form which is used by the end user.</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addPDFDocument</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Declaration TVA 2008</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>EGov Type</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/PortalTypeTemplateItem/portal_types/EGov%20Type.xml b/bt5/erp5_egov_type/PortalTypeTemplateItem/portal_types/EGov%20Type.xml new file mode 100644 index 0000000000..096e706edd --- /dev/null +++ b/bt5/erp5_egov_type/PortalTypeTemplateItem/portal_types/EGov%20Type.xml @@ -0,0 +1,43 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PDFTypeInformation" module="Products.ERP5Type.Document.PDFTypeInformation"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>EGov Type extends PDF Type with egovernment configuration. EGov Type is implemented as a PDF Type for now. This means that the portal type of "EGov Type" is PDF Type. It also means that all the configuration parameters are provided through a PDF form (rather than through a normal form) with the goal to implement the concept of "eForm Hosting Application Form" ie. an application form to request the hosting of another application form. Once the system is bootstrapped, The portal type of EGov Type should become "EGov Type". The idea behing is that the process of requesting to the Ministry of IT the hosting of an application form in ERP5 eGov is a business process no different in essence with the process of applying to the ministry of Finance for the payment of VAT.</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addEGovTypeInformation</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>EGov Type</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>PDF Type</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/PortalTypeTemplateItem/portal_types/PDF%20Type.xml b/bt5/erp5_egov_type/PortalTypeTemplateItem/portal_types/PDF%20Type.xml new file mode 100644 index 0000000000..48416f8330 --- /dev/null +++ b/bt5/erp5_egov_type/PortalTypeTemplateItem/portal_types/PDF%20Type.xml @@ -0,0 +1,128 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </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>organisation_icon.gif</string> </value> + </item> + <item> + <key> <string>content_meta_type</string> </key> + <value> <string>ERP5 Type Information</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>PDF Type provides a simple way to create online applications based on Scribus files and PDF forms. All instances of PDF type must provide 2 files: a PDF file which is used to render a form as a PDF and a Scribus file which contains the actual form definition. The default view of PDF Type instances is the visual form.</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addPDFTypeInformation</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>PDF Type</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>last_id</string> </key> + <value> <string>3</string> </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </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>erp5_content</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>erp5_content</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_egov_type/PortalTypeTemplateItem/portal_types/PDF.xml b/bt5/erp5_egov_type/PortalTypeTemplateItem/portal_types/PDF.xml new file mode 100644 index 0000000000..78915a9a27 --- /dev/null +++ b/bt5/erp5_egov_type/PortalTypeTemplateItem/portal_types/PDF.xml @@ -0,0 +1,125 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </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>pdf_icon.gif</string> </value> + </item> + <item> + <key> <string>content_meta_type</string> </key> + <value> <string>ERP5 PDF</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>PDF documents stored PDF files and can convert them to HTML, Text as well as to the same formats as Image.</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addPDFDocument</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> + <string>document</string> + <string>file_document</string> + <string>recent_document</string> + <string>my_document</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>PDF</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </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>erp5_content</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>erp5_content</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_egov_type/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_egov_type/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml new file mode 100644 index 0000000000..8ab58a36bf --- /dev/null +++ b/bt5/erp5_egov_type/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -0,0 +1,6 @@ +<workflow_chain> + <chain> + <type>EGov Type</type> + <workflow>edit_workflow, validation_workflow</workflow> + </chain> +</workflow_chain> \ No newline at end of file diff --git a/bt5/erp5_egov_type/PropertySheetTemplateItem/EGovType.py b/bt5/erp5_egov_type/PropertySheetTemplateItem/EGovType.py new file mode 100644 index 0000000000..260cccf3e4 --- /dev/null +++ b/bt5/erp5_egov_type/PropertySheetTemplateItem/EGovType.py @@ -0,0 +1,45 @@ +############################################################################## +# +# Copyright (c) 2002-2007 Nexedi SARL and Contributors. All Rights Reserved. +# +# 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. +# +############################################################################## + +class EGovType: + """ + EGovType properties for all ERP5 objects + There properties will be overriden / regenerated from a + Scribus Form + """ + + _properties = ( + { 'id' : 'egov_type_payable', + 'description' : 'Set to true if the type requires payment', + 'type' : 'boolean', + 'mode' : 'w' }, + { 'id' : 'egov_type_assignable', + 'description' : 'Set to true if the type requires assignment', + 'type' : 'boolean', + 'mode' : 'w' }, + ) + diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_egov_type.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_egov_type.xml new file mode 100644 index 0000000000..5458889fe5 --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_egov_type.xml @@ -0,0 +1,29 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Folder" module="OFS.Folder"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>erp5_egov_type</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>EGov Type</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_egov_type/EGovType_viewConfiguration.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_egov_type/EGovType_viewConfiguration.xml new file mode 100644 index 0000000000..c6c2e24f20 --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_egov_type/EGovType_viewConfiguration.xml @@ -0,0 +1,152 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </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></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/> + </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_egov_type_payable</string> + <string>my_egov_type_assignable</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>EGovType_viewConfiguration</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>PortalType_view</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></string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_egov_type/EGovType_viewConfiguration/my_egov_type_assignable.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_egov_type/EGovType_viewConfiguration/my_egov_type_assignable.xml new file mode 100644 index 0000000000..0b9c9dc59d --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_egov_type/EGovType_viewConfiguration/my_egov_type_assignable.xml @@ -0,0 +1,171 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CheckBoxField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_egov_type_assignable</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>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</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>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Assignable</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_egov_type/EGovType_viewConfiguration/my_egov_type_payable.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_egov_type/EGovType_viewConfiguration/my_egov_type_payable.xml new file mode 100644 index 0000000000..942d941690 --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_egov_type/EGovType_viewConfiguration/my_egov_type_payable.xml @@ -0,0 +1,171 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CheckBoxField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_egov_type_payable</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>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</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>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Payable</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type.xml new file mode 100644 index 0000000000..fcf88337d5 --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type.xml @@ -0,0 +1,29 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Folder" module="OFS.Folder"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>erp5_pdf_type</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>PDF Type</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view.xml new file mode 100644 index 0000000000..3a0dd1afec --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view.xml @@ -0,0 +1,167 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </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></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/> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list> + <string>my_default_pdf_form_file</string> + <string>my_default_scribus_form_file</string> + <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_type_factory_method_id</string> + <string>my_type_init_script_id</string> + <string>my_type_add_permission</string> + <string>my_type_acquire_local_role</string> + <string>my_type_property_sheet_list</string> + <string>my_type_base_category_list</string> + </list> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list> + <string>my_type_filter_content_type</string> + <string>my_type_allowed_content_type_list</string> + <string>my_type_hidden_content_type_list</string> + <string>my_type_group_list</string> + <string>my_translated_validation_title</string> + </list> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>PDFType_view</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>PortalType_view</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></string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_default_pdf_form_file.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_default_pdf_form_file.xml new file mode 100644 index 0000000000..b82d06507a --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_default_pdf_form_file.xml @@ -0,0 +1,195 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="FileField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_default_pdf_form_file</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>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</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>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>40</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>PDF Form</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_default_scribus_form_file.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_default_scribus_form_file.xml new file mode 100644 index 0000000000..c4719715e2 --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_default_scribus_form_file.xml @@ -0,0 +1,195 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="FileField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_default_scribus_form_file</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>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</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>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>40</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Scribus Form</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_description.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_description.xml new file mode 100644 index 0000000000..07dc3bb171 --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_description.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <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> + <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>field_id</string> </key> + <value> <string>my_description</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> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_id.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_id.xml new file mode 100644 index 0000000000..1fa528eee8 --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_id.xml @@ -0,0 +1,281 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StringField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <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> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>ID</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/getId</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_translated_validation_title.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_translated_validation_title.xml new file mode 100644 index 0000000000..a8b35eddba --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_translated_validation_title.xml @@ -0,0 +1,263 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StringField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_translated_validation_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> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>State</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_acquire_local_role.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_acquire_local_role.xml new file mode 100644 index 0000000000..6840193534 --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_acquire_local_role.xml @@ -0,0 +1,171 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CheckBoxField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_type_acquire_local_role</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>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</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>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Acquire Local Roles</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_add_permission.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_add_permission.xml new file mode 100644 index 0000000000..664a74fa59 --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_add_permission.xml @@ -0,0 +1,263 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StringField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_type_add_permission</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> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Add Permission</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_allowed_content_type_list.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_allowed_content_type_list.xml new file mode 100644 index 0000000000..19cd19bc3e --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_allowed_content_type_list.xml @@ -0,0 +1,301 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="LinesField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_type_allowed_content_type_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> + <item> + <key> <string>line_too_long</string> </key> + <value> <string>A line was too long.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>You entered too many characters.</string> </value> + </item> + <item> + <key> <string>too_many_lines</string> </key> + <value> <string>You entered too many lines.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <int>5</int> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Allowed Content Types</string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<br /> + +]]></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <int>40</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_base_category_list.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_base_category_list.xml new file mode 100644 index 0000000000..cd4402a34a --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_base_category_list.xml @@ -0,0 +1,277 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="MultiListField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_type_base_category_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> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>unknown_selection</string> </key> + <value> <string>You selected an item that was not in the list.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</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>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <int>5</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Base Categories</string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<br /> + +]]></string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/getPortalBaseCategoryList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_factory_method_id.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_factory_method_id.xml new file mode 100644 index 0000000000..e5cfd81b56 --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_factory_method_id.xml @@ -0,0 +1,263 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StringField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_type_factory_method_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> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Factory Method ID</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_filter_content_type.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_filter_content_type.xml new file mode 100644 index 0000000000..6fa10e4775 --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_filter_content_type.xml @@ -0,0 +1,171 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="CheckBoxField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_type_filter_content_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>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</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>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Filter Content Types</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_group_list.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_group_list.xml new file mode 100644 index 0000000000..c1a41014f2 --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_group_list.xml @@ -0,0 +1,277 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="MultiListField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_type_group_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> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>unknown_selection</string> </key> + <value> <string>You selected an item that was not in the list.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</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>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <int>5</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Groups</string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<br /> + +]]></string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/getPortalTypeGroupList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_hidden_content_type_list.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_hidden_content_type_list.xml new file mode 100644 index 0000000000..8668ffc194 --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_hidden_content_type_list.xml @@ -0,0 +1,302 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="LinesField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_type_hidden_content_type_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> + <item> + <key> <string>line_too_long</string> </key> + <value> <string>A line was too long.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>You entered too many characters.</string> </value> + </item> + <item> + <key> <string>too_many_lines</string> </key> + <value> <string>You entered too many lines.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <int>5</int> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Hidden Content Types</string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<br />\n + + +]]></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <int>40</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_init_script_id.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_init_script_id.xml new file mode 100644 index 0000000000..bfdf57c52f --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_init_script_id.xml @@ -0,0 +1,263 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StringField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_type_init_script_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> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Init Script ID</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_property_sheet_list.xml b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_property_sheet_list.xml new file mode 100644 index 0000000000..0bd362172c --- /dev/null +++ b/bt5/erp5_egov_type/SkinTemplateItem/portal_skins/erp5_pdf_type/PDFType_view/my_type_property_sheet_list.xml @@ -0,0 +1,277 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="MultiListField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_type_property_sheet_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> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>unknown_selection</string> </key> + <value> <string>You selected an item that was not in the list.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</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>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <int>5</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Property Sheets</string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<br /> + +]]></string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/getPortalPropertySheetList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_egov_type/bt/categories_list b/bt5/erp5_egov_type/bt/categories_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/change_log b/bt5/erp5_egov_type/bt/change_log new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/comment b/bt5/erp5_egov_type/bt/comment new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/copyright_list b/bt5/erp5_egov_type/bt/copyright_list new file mode 100644 index 0000000000..739ce2512e --- /dev/null +++ b/bt5/erp5_egov_type/bt/copyright_list @@ -0,0 +1 @@ +Copyright (c) 2009 Nexedi SA \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/dependency_list b/bt5/erp5_egov_type/bt/dependency_list new file mode 100644 index 0000000000..1037d15c20 --- /dev/null +++ b/bt5/erp5_egov_type/bt/dependency_list @@ -0,0 +1 @@ +erp5_base \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/description b/bt5/erp5_egov_type/bt/description new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/license b/bt5/erp5_egov_type/bt/license new file mode 100644 index 0000000000..3a3e12bcad --- /dev/null +++ b/bt5/erp5_egov_type/bt/license @@ -0,0 +1 @@ +GPL \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/maintainer_list b/bt5/erp5_egov_type/bt/maintainer_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/provision_list b/bt5/erp5_egov_type/bt/provision_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/publication_url b/bt5/erp5_egov_type/bt/publication_url new file mode 100644 index 0000000000..4af18322e3 --- /dev/null +++ b/bt5/erp5_egov_type/bt/publication_url @@ -0,0 +1 @@ +None \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/revision b/bt5/erp5_egov_type/bt/revision new file mode 100644 index 0000000000..3f10ffe7a4 --- /dev/null +++ b/bt5/erp5_egov_type/bt/revision @@ -0,0 +1 @@ +15 \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/short_title b/bt5/erp5_egov_type/bt/short_title new file mode 100644 index 0000000000..4af18322e3 --- /dev/null +++ b/bt5/erp5_egov_type/bt/short_title @@ -0,0 +1 @@ +None \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/template_action_path_list b/bt5/erp5_egov_type/bt/template_action_path_list new file mode 100644 index 0000000000..fe66fa1d39 --- /dev/null +++ b/bt5/erp5_egov_type/bt/template_action_path_list @@ -0,0 +1,9 @@ +EGov Type | action_view +EGov Type | base_view +EGov Type | egov_view +EGov Type | role_view +EGov Type | translation_view +PDF Type | action_view +PDF Type | base_view +PDF Type | role_view +PDF Type | translation_view \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/template_base_category_list b/bt5/erp5_egov_type/bt/template_base_category_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_catalog_datetime_key_list b/bt5/erp5_egov_type/bt/template_catalog_datetime_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_catalog_full_text_key_list b/bt5/erp5_egov_type/bt/template_catalog_full_text_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_catalog_keyword_key_list b/bt5/erp5_egov_type/bt/template_catalog_keyword_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_catalog_local_role_key_list b/bt5/erp5_egov_type/bt/template_catalog_local_role_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_catalog_method_id_list b/bt5/erp5_egov_type/bt/template_catalog_method_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_catalog_multivalue_key_list b/bt5/erp5_egov_type/bt/template_catalog_multivalue_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_catalog_related_key_list b/bt5/erp5_egov_type/bt/template_catalog_related_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_catalog_request_key_list b/bt5/erp5_egov_type/bt/template_catalog_request_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_catalog_result_key_list b/bt5/erp5_egov_type/bt/template_catalog_result_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_catalog_result_table_list b/bt5/erp5_egov_type/bt/template_catalog_result_table_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_catalog_role_key_list b/bt5/erp5_egov_type/bt/template_catalog_role_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_catalog_scriptable_key_list b/bt5/erp5_egov_type/bt/template_catalog_scriptable_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_catalog_topic_key_list b/bt5/erp5_egov_type/bt/template_catalog_topic_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_constraint_id_list b/bt5/erp5_egov_type/bt/template_constraint_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_document_id_list b/bt5/erp5_egov_type/bt/template_document_id_list new file mode 100644 index 0000000000..ec76892d55 --- /dev/null +++ b/bt5/erp5_egov_type/bt/template_document_id_list @@ -0,0 +1 @@ +EGovTypeInformation \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/template_extension_id_list b/bt5/erp5_egov_type/bt/template_extension_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_format_version b/bt5/erp5_egov_type/bt/template_format_version new file mode 100644 index 0000000000..56a6051ca2 --- /dev/null +++ b/bt5/erp5_egov_type/bt/template_format_version @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/template_local_role_list b/bt5/erp5_egov_type/bt/template_local_role_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_local_roles_list b/bt5/erp5_egov_type/bt/template_local_roles_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_message_translation_list b/bt5/erp5_egov_type/bt/template_message_translation_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_module_id_list b/bt5/erp5_egov_type/bt/template_module_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_path_list b/bt5/erp5_egov_type/bt/template_path_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_egov_type/bt/template_portal_type_allowed_content_type_list new file mode 100644 index 0000000000..100049f73a --- /dev/null +++ b/bt5/erp5_egov_type/bt/template_portal_type_allowed_content_type_list @@ -0,0 +1,12 @@ +EGov Type | Action Information +EGov Type | File +EGov Type | PDF +EGov Type | Role Information +EGov Type | Translation Information +PDF Type | Action Information +PDF Type | File +PDF Type | PDF +PDF Type | Role Information +PDF Type | Translation Information +Types Tool | EGov Type +Types Tool | PDF Type \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/template_portal_type_base_category_list b/bt5/erp5_egov_type/bt/template_portal_type_base_category_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_portal_type_hidden_content_type_list b/bt5/erp5_egov_type/bt/template_portal_type_hidden_content_type_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_portal_type_id_list b/bt5/erp5_egov_type/bt/template_portal_type_id_list new file mode 100644 index 0000000000..5d1efe0845 --- /dev/null +++ b/bt5/erp5_egov_type/bt/template_portal_type_id_list @@ -0,0 +1,4 @@ +Declaration TVA 2008 +EGov Type +PDF +PDF Type \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/template_portal_type_property_sheet_list b/bt5/erp5_egov_type/bt/template_portal_type_property_sheet_list new file mode 100644 index 0000000000..9f7f150d81 --- /dev/null +++ b/bt5/erp5_egov_type/bt/template_portal_type_property_sheet_list @@ -0,0 +1 @@ +EGov Type | EGovType \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/template_portal_type_role_list b/bt5/erp5_egov_type/bt/template_portal_type_role_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_portal_type_roles_list b/bt5/erp5_egov_type/bt/template_portal_type_roles_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_portal_type_workflow_chain_list b/bt5/erp5_egov_type/bt/template_portal_type_workflow_chain_list new file mode 100644 index 0000000000..762ec43169 --- /dev/null +++ b/bt5/erp5_egov_type/bt/template_portal_type_workflow_chain_list @@ -0,0 +1,2 @@ +EGov Type | edit_workflow +EGov Type | validation_workflow \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/template_preference_list b/bt5/erp5_egov_type/bt/template_preference_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_product_id_list b/bt5/erp5_egov_type/bt/template_product_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_property_sheet_id_list b/bt5/erp5_egov_type/bt/template_property_sheet_id_list new file mode 100644 index 0000000000..2ebe442eca --- /dev/null +++ b/bt5/erp5_egov_type/bt/template_property_sheet_id_list @@ -0,0 +1 @@ +EGovType \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/template_role_list b/bt5/erp5_egov_type/bt/template_role_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_site_property_id_list b/bt5/erp5_egov_type/bt/template_site_property_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_skin_id_list b/bt5/erp5_egov_type/bt/template_skin_id_list new file mode 100644 index 0000000000..13af71360f --- /dev/null +++ b/bt5/erp5_egov_type/bt/template_skin_id_list @@ -0,0 +1,2 @@ +erp5_egov_type +erp5_pdf_type \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/template_test_id_list b/bt5/erp5_egov_type/bt/template_test_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_tool_id_list b/bt5/erp5_egov_type/bt/template_tool_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/template_update_business_template_workflow b/bt5/erp5_egov_type/bt/template_update_business_template_workflow new file mode 100644 index 0000000000..c227083464 --- /dev/null +++ b/bt5/erp5_egov_type/bt/template_update_business_template_workflow @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/template_update_tool b/bt5/erp5_egov_type/bt/template_update_tool new file mode 100644 index 0000000000..c227083464 --- /dev/null +++ b/bt5/erp5_egov_type/bt/template_update_tool @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/template_workflow_id_list b/bt5/erp5_egov_type/bt/template_workflow_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_egov_type/bt/title b/bt5/erp5_egov_type/bt/title new file mode 100644 index 0000000000..5cbe1c86b1 --- /dev/null +++ b/bt5/erp5_egov_type/bt/title @@ -0,0 +1 @@ +erp5_egov_type \ No newline at end of file diff --git a/bt5/erp5_egov_type/bt/version b/bt5/erp5_egov_type/bt/version new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 51b601f0b7..b93f29f2ca 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -53,9 +53,9 @@ from Products.ERP5Type.Utils import readLocalTest, \ writeLocalTest, \ removeLocalTest from Products.ERP5Type.Utils import convertToUpperCase -from Products.ERP5Type import Permissions, PropertySheet +from Products.ERP5Type import Permissions, PropertySheet, USE_BASE_TYPE from Products.ERP5Type.XMLObject import XMLObject -from Products.ERP5Type.RoleInformation import RoleInformation +from Products.ERP5Type.Core.RoleInformation import RoleInformation from OFS.Traversable import NotFound from OFS import SimpleItem, XMLExportImport from cStringIO import StringIO @@ -1571,21 +1571,16 @@ class PortalTypeTemplateItem(ObjectTemplateItem): for relative_url in self._archive.keys(): obj = p.unrestrictedTraverse(relative_url) obj = obj._getCopy(context) - # remove actions and properties - action_len = len(obj.listActions()) - obj.deleteActions(selections=range(action_len)) - obj = self.removeProperties(obj) - # remove some properties - if hasattr(obj, 'allowed_content_types'): - setattr(obj, 'allowed_content_types', ()) - if hasattr(obj, 'hidden_content_type_list'): - setattr(obj, 'hidden_content_type_list', ()) - if hasattr(obj, 'property_sheet_list'): - setattr(obj, 'property_sheet_list', ()) - if hasattr(obj, 'base_category_list'): - setattr(obj, 'base_category_list', ()) - if hasattr(obj, '_roles'): - setattr(obj, '_roles', []) + obj.meta_type + for attr in tuple(obj.__dict__): + if attr == '_property_domain_dict': + continue + if attr[0] == '_' or attr in ('allowed_content_types', + 'hidden_content_type_list', + 'property_sheet_list', + 'base_category_list', + 'last_id', 'uid', 'workflow_history'): + delattr(obj, attr) self._objects[relative_url] = obj obj.wl_clearLocks() @@ -1978,12 +1973,7 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem): action = update_dict[key] if action == 'nothing': continue - try: - portal_id = key.split('/')[-1] - portal_type = pt._getOb(portal_id) - except AttributeError: - LOG("portal types not found : ", 100, portal_id) - continue + portal_type = pt._getOb(key.split('/')[-1]) property_list = self._objects.get(key, []) old_property_list = old_objects.get(key, ()) object_property_list = getattr(portal_type, self.class_property, ()) @@ -2011,7 +2001,7 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem): try: portal_id = key.split('/')[-1] portal_type = pt._getOb(portal_id) - except AttributeError: + except (AttributeError, KeyError): LOG("portal types not found : ", 100, portal_id) continue property_list = self._objects[key] @@ -2398,18 +2388,22 @@ class ActionTemplateItem(ObjectTemplateItem): for id in self._archive.keys(): relative_url, value = id.split(' | ') obj = p.unrestrictedTraverse(relative_url) - for ai in obj.listActions(): - if getattr(ai, 'id') == value: - url = posixpath.split(relative_url) - key = posixpath.join(url[-2], url[-1], value) - action = ai._getCopy(context) - action = self.removeProperties(action) - self._objects[key] = action - self._objects[key].wl_clearLocks() - break + if USE_BASE_TYPE and obj.getParentId() == 'portal_types': + action = obj._exportOldAction(value) else: - if not self.is_bt_for_diff: - raise NotFound, 'Action %r not found' %(id,) + for ai in obj.listActions(): + if getattr(ai, 'id') == value: + break + else: + if self.is_bt_for_diff: + continue + raise NotFound('Action %r not found' % id) + action = ai._getCopy(context) + action = self.removeProperties(action) + url = posixpath.split(relative_url) + key = posixpath.join(url[-2], url[-1], value) + self._objects[key] = action + self._objects[key].wl_clearLocks() def install(self, context, trashbin, **kw): update_dict = kw.get('object_to_update') @@ -2423,7 +2417,13 @@ class ActionTemplateItem(ObjectTemplateItem): if action == 'nothing': continue path = id.split('/') - obj = p.unrestrictedTraverse(path[:-1]) + container = p.unrestrictedTraverse(path[:-1]) + + if USE_BASE_TYPE and container.getParentId() == 'portal_types': + container._importOldAction(self._objects[id]) + continue + + obj = container action_list = obj.listActions() for index in range(len(action_list)): if getattr(action_list[index], 'id') == path[-1]: @@ -2532,25 +2532,28 @@ class PortalTypeRolesTemplateItem(BaseTemplateItem): for relative_url in self._archive.keys(): obj = p.unrestrictedTraverse("portal_types/%s" % relative_url.split('/', 1)[1]) - type_roles_obj = getattr(obj, '_roles', ()) - type_role_list = [] - for role in type_roles_obj: + self._objects[relative_url] = type_role_list = [] + for role in obj.objectValues(meta_type='ERP5 Role Information'): type_role_dict = {} - # uniq - for property in ('id', 'title', 'description', - 'priority', 'base_category_script'): - prop_value = getattr(role, property) - if prop_value: - type_role_dict[property] = prop_value - # condition - prop_value = getattr(role, 'condition') - if prop_value: - type_role_dict['condition'] = prop_value.text - # multi - type_role_dict['category'] = role.getCategory() - type_role_dict['base_category'] = role.getBaseCategory() + for k, v in aq_base(role).__getstate__().iteritems(): + if k == 'condition': + if not v: + continue + v = v.text + elif k in ('role_base_category', 'role_category'): + k = k[5:] + elif k == 'role_name': + k, v = 'id', '; '.join(v) + elif k not in ('title', 'description'): + k = {'id': 'object_id', # for stable sort + 'role_base_category': 'base_category', + 'role_base_category_script_id': 'base_category_script', + 'role_category': 'category'}.get(k) + if not k: + continue + type_role_dict[k] = v type_role_list.append(type_role_dict) - self._objects[relative_url] = type_role_list + type_role_list.sort(key=lambda x: (x.get('title'), x['object_id'],)) # Function to generate XML Code Manually def generateXml(self, path=None): @@ -2559,7 +2562,7 @@ class PortalTypeRolesTemplateItem(BaseTemplateItem): for role in type_role_list: xml_data += "\n <role id='%s'>" % role['id'] # uniq - for property in ('title', 'description', 'condition', 'priority', + for property in ('title', 'description', 'condition', 'base_category_script'): prop_value = role.get(property) if prop_value: @@ -2606,8 +2609,6 @@ class PortalTypeRolesTemplateItem(BaseTemplateItem): property_id = property.getAttribute('id').encode() if property.hasChildNodes(): property_value = property.childNodes[0].data.encode('utf_8', 'backslashreplace') - if property_id == 'priority': - property_value = float(property_value) type_role_property_dict[property_id] = property_value # multi multi_property_list = role.getElementsByTagName('multi_property') @@ -2634,10 +2635,12 @@ class PortalTypeRolesTemplateItem(BaseTemplateItem): path = 'portal_types/%s' % roles_path.split('/', 1)[1] obj = p.unrestrictedTraverse(path, None) if obj is not None: - setattr(obj, '_roles', []) # reset roles before applying + # reset roles before applying + obj.manage_delObjects(list( + obj.objectIds(spec='ERP5 Role Information'))) type_roles_list = self._objects[roles_path] or [] - for type_role_property_dict in type_roles_list: - obj._roles.append(RoleInformation(**type_role_property_dict)) + for role_property_dict in type_roles_list: + obj._importRole(role_property_dict) def uninstall(self, context, **kw): p = context.getPortalObject() diff --git a/product/ERP5/ERP5Site.py b/product/ERP5/ERP5Site.py index 897317a9d9..805f3290d2 100644 --- a/product/ERP5/ERP5Site.py +++ b/product/ERP5/ERP5Site.py @@ -1294,6 +1294,7 @@ class ERP5Generator(PortalGenerator): """ if not 'portal_actions' in p.objectIds(): PortalGenerator.setupTools(self, p) + p._delObject('portal_types') # It is better to remove portal_catalog # which is ZCatalog as soon as possible, @@ -1349,6 +1350,8 @@ class ERP5Generator(PortalGenerator): addTool('ERP5 Cache Tool', None) if not p.hasObject('portal_memcached'): addTool('ERP5 Memcached Tool', None) + if not p.hasObject('portal_types'): + addTool('ERP5 Types Tool', None) try: addTool = p.manage_addProduct['ERP5Subversion'].manage_addTool @@ -1681,7 +1684,7 @@ class ERP5Generator(PortalGenerator): # ERP5 Design Choice is that all content should be user defined # Content is disseminated through business templates - self.setupBusinessTemplate(p) + self.setupPortalTypes(p) if not p.hasObject('content_type_registry'): self.setupMimetypes(p) @@ -1701,17 +1704,19 @@ class ERP5Generator(PortalGenerator): if not update: self.setupIndex(p, **kw) - def setupBusinessTemplate(self,p): + def setupPortalTypes(self, p): """ Install the portal_type of Business Template """ tool = getToolByName(p, 'portal_types', None) if tool is None: return - if 'Business Template' not in tool.objectIds(): - t = BusinessTemplate.factory_type_information - ti = apply(ERP5TypeInformation, (), t) - tool._setObject(t['id'], ti) + for t in BusinessTemplate,: + t = t.factory_type_information + if not tool.hasObject(t['id']): + tool._setObject(t['id'], + ERP5TypeInformation(portal_type=ERP5TypeInformation.portal_type, + uid=None, **t)) def setupERP5Core(self,p,**kw): """ @@ -1722,11 +1727,10 @@ class ERP5Generator(PortalGenerator): return if template_tool.getInstalledBusinessTemplate('erp5_core') is None: bootstrap_dir = self.getBootstrapDirectory() - if p.erp5_catalog_storage is not '': - business_template_list = ('erp5_core', p.erp5_catalog_storage, 'erp5_xhtml_style') - else: - business_template_list = ('erp5_core', 'erp5_xhtml_style') - for bt in business_template_list: + # XXX erp5_type BT will be merged into erp5_core later. + for bt in 'erp5_core', 'erp5_type', p.erp5_catalog_storage, 'erp5_xhtml_style': + if not bt: + continue template = os.path.join(bootstrap_dir, bt) if not os.path.exists(template): template = os.path.join(bootstrap_dir, '%s.bt5' % bt) diff --git a/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Action%20Information/base_view.xml b/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Action%20Information/base_view.xml new file mode 100644 index 0000000000..38ba8338e2 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Action%20Information/base_view.xml @@ -0,0 +1,91 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>base_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> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/ActionInformation_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Base%20Type/action_view.xml b/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Base%20Type/action_view.xml new file mode 100644 index 0000000000..39b53dc989 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Base%20Type/action_view.xml @@ -0,0 +1,91 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>action_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>2.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Actions</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/BaseType_viewAction</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Base%20Type/base_view.xml b/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Base%20Type/base_view.xml new file mode 100644 index 0000000000..ca393b46ae --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Base%20Type/base_view.xml @@ -0,0 +1,91 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>base_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> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/BaseType_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Base%20Type/role_view.xml b/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Base%20Type/role_view.xml new file mode 100644 index 0000000000..1e313ee4f8 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Base%20Type/role_view.xml @@ -0,0 +1,91 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>role_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>3.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>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> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/BaseType_viewRole</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Base%20Type/translation_view.xml b/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Base%20Type/translation_view.xml new file mode 100644 index 0000000000..d304dbe644 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Base%20Type/translation_view.xml @@ -0,0 +1,91 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>translation_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>4.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Translations</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/BaseType_viewTranslation</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Role%20Information/base_view.xml b/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Role%20Information/base_view.xml new file mode 100644 index 0000000000..f5fb8a7286 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Role%20Information/base_view.xml @@ -0,0 +1,91 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>base_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> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/RoleInformation_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Translation%20Information/base_view.xml b/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Translation%20Information/base_view.xml new file mode 100644 index 0000000000..226eccea40 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Translation%20Information/base_view.xml @@ -0,0 +1,91 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>base_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> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/TranslationInformation_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Types%20Tool/base_view.xml b/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Types%20Tool/base_view.xml new file mode 100644 index 0000000000..afb8a1c2fb --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/ActionTemplateItem/portal_types/Types%20Tool/base_view.xml @@ -0,0 +1,91 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </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>base_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> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/TypesTool_viewContentList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/CategoryTemplateItem/portal_categories/action_type.xml b/product/ERP5/bootstrap/erp5_type/CategoryTemplateItem/portal_categories/action_type.xml new file mode 100644 index 0000000000..f6b2f621a8 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/CategoryTemplateItem/portal_categories/action_type.xml @@ -0,0 +1,81 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="BaseCategory" module="Products.ERP5Type.Document.BaseCategory"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_count</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_mt_index</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>_tree</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>action_type</string> + </tuple> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>action_type</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Base Category</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Action Type</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Length" module="BTrees.Length"/> + </pickle> + <pickle> <int>0</int> </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="OOBTree" module="BTrees._OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="OOBTree" module="BTrees._OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_action.xml b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_action.xml new file mode 100644 index 0000000000..e731da6c42 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_action.xml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Category" module="Products.ERP5Type.Document.Category"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>object_action</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_add.xml b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_add.xml new file mode 100644 index 0000000000..f19cc0feac --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_add.xml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Category" module="Products.ERP5Type.Document.Category"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>object_add</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_button.xml b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_button.xml new file mode 100644 index 0000000000..152cf75a18 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_button.xml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Category" module="Products.ERP5Type.Document.Category"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>object_button</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_dialog.xml b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_dialog.xml new file mode 100644 index 0000000000..59b1f0fd4c --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_dialog.xml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Category" module="Products.ERP5Type.Document.Category"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>object_dialog</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_exchange.xml b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_exchange.xml new file mode 100644 index 0000000000..7fefad6614 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_exchange.xml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Category" module="Products.ERP5Type.Document.Category"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>object_exchange</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_fast_input.xml b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_fast_input.xml new file mode 100644 index 0000000000..796de1bb56 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_fast_input.xml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Category" module="Products.ERP5Type.Document.Category"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>object_fast_input</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_icon.xml b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_icon.xml new file mode 100644 index 0000000000..79af4ce350 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_icon.xml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Category" module="Products.ERP5Type.Document.Category"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>object_icon</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_jump.xml b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_jump.xml new file mode 100644 index 0000000000..7911d74a35 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_jump.xml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Category" module="Products.ERP5Type.Document.Category"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>object_jump</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_list.xml b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_list.xml new file mode 100644 index 0000000000..347723be1a --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_list.xml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Category" module="Products.ERP5Type.Document.Category"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>object_list</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_print.xml b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_print.xml new file mode 100644 index 0000000000..600341ffa3 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_print.xml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Category" module="Products.ERP5Type.Document.Category"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>object_print</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_report.xml b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_report.xml new file mode 100644 index 0000000000..7ed4a5f2c9 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_report.xml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Category" module="Products.ERP5Type.Document.Category"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>object_report</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_search.xml b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_search.xml new file mode 100644 index 0000000000..55f178bc16 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_search.xml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Category" module="Products.ERP5Type.Document.Category"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>object_search</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_view.xml b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_view.xml new file mode 100644 index 0000000000..b9942cf439 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_view.xml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Category" module="Products.ERP5Type.Document.Category"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_web_view.xml b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_web_view.xml new file mode 100644 index 0000000000..2d2a0f98f1 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PathTemplateItem/portal_categories/action_type/object_web_view.xml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Category" module="Products.ERP5Type.Document.Category"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>object_web_view</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/product/ERP5/bootstrap/erp5_type/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml new file mode 100644 index 0000000000..322bd5c03b --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -0,0 +1,10 @@ +<allowed_content_type_list> + <portal_type id="Base Type"> + <item>Translation Information</item> + <item>Action Information</item> + <item>Role Information</item> + </portal_type> + <portal_type id="Types Tool"> + <item>Base Type</item> + </portal_type> +</allowed_content_type_list> \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Action%20Information.xml b/product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Action%20Information.xml new file mode 100644 index 0000000000..f59b8273db --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Action%20Information.xml @@ -0,0 +1,75 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>acquire_local_roles</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>allow_discussion</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>content_meta_type</string> </key> + <value> <string>ERP5 Action Information</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Action Information...</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addActionInformation</string> </value> + </item> + <item> + <key> <string>filter_content_types</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>global_allow</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Action Information</string> </value> + </item> + <item> + <key> <string>immediate_view</string> </key> + <value> <string>ActionInformation_view</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>meta_type</string> </key> + <value> <string>ERP5 Action Information</string> </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>product</string> </key> + <value> <string>ERP5Type</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Base%20Type.xml b/product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Base%20Type.xml new file mode 100644 index 0000000000..cb3858f7f0 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Base%20Type.xml @@ -0,0 +1,124 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </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>1</int> </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> <string>typeinfo.gif</string> </value> + </item> + <item> + <key> <string>content_meta_type</string> </key> + <value> <string>ERP5 Type Information</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Portal Type is the meta portal type information for all standard portal types in ERP5.</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addERP5TypeInformation</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>Base Type</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>title</string> </key> + <value> <string></string> </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>erp5_content</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>erp5_content</string> </value> + </item> + <item> + <key> <string>property_name</string> </key> + <value> <string>title</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Role%20Information.xml b/product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Role%20Information.xml new file mode 100644 index 0000000000..91d33e1f0b --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Role%20Information.xml @@ -0,0 +1,43 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>Role Information defines the way to generate local roles on each portal type.</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addRoleInformation</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Role Information</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> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Translation%20Information.xml b/product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Translation%20Information.xml new file mode 100644 index 0000000000..0dab66c271 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Translation%20Information.xml @@ -0,0 +1,47 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>acquire_local_roles</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Translation Information defines the association between properties and translation domains.</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addBase</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Translation Information</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> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Types%20Tool.xml b/product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Types%20Tool.xml new file mode 100644 index 0000000000..d3d96ee0b8 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/PortalTypeTemplateItem/portal_types/Types%20Tool.xml @@ -0,0 +1,124 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </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>folder_icon.gif</string> </value> + </item> + <item> + <key> <string>content_meta_type</string> </key> + <value> <string>ERP5 Folder</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The Types Tool centralises all portal type definitions.</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addFolder</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>Types Tool</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>title</string> </key> + <value> <string></string> </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>erp5_content</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>erp5_content</string> </value> + </item> + <item> + <key> <string>property_name</string> </key> + <value> <string>title</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type.xml new file mode 100644 index 0000000000..a6666c46aa --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type.xml @@ -0,0 +1,29 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Folder" module="OFS.Folder"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>erp5_type</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view.xml new file mode 100644 index 0000000000..cd13545a2b --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view.xml @@ -0,0 +1,160 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </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>This form is a placeholder. Its layout must be finished and configured according to the rules.</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/> + </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_id</string> + <string>my_title</string> + <string>my_action_expression</string> + <string>my_description</string> + <string>my_icon</string> + <string>my_condition</string> + <string>my_action_permission</string> + <string>my_action_type</string> + <string>my_visible</string> + <string>my_float_index</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>ActionInformation_view</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>ActionInformation_view</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></string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_action_expression.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_action_expression.xml new file mode 100644 index 0000000000..7b22b83570 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_action_expression.xml @@ -0,0 +1,126 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>default</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_action_expression</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>default</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </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>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_string_field</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>Action</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/getActionText</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_action_permission.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_action_permission.xml new file mode 100644 index 0000000000..355700eb1e --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_action_permission.xml @@ -0,0 +1,132 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>items</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_action_permission</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>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>field_id</string> </key> + <value> <string>my_list_field</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>Permission</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(\'\', \'\')] + [(x, x) for x in here.possible_permissions()]</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_action_type.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_action_type.xml new file mode 100644 index 0000000000..6305a3e7bb --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_action_type.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_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>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>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>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_condition.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_condition.xml new file mode 100644 index 0000000000..563a6fd75f --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_condition.xml @@ -0,0 +1,126 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>default</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_condition</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>default</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </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>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_string_field</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>Condition</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/getConditionText</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_description.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_description.xml new file mode 100644 index 0000000000..07dc3bb171 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_description.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <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> + <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>field_id</string> </key> + <value> <string>my_description</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> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_float_index.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_float_index.xml new file mode 100644 index 0000000000..fa862321f1 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_float_index.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_float_index</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>field_id</string> </key> + <value> <string>my_float_field</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>Priority</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_icon.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_icon.xml new file mode 100644 index 0000000000..cb53ad54ea --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_icon.xml @@ -0,0 +1,126 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>default</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_icon</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>default</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </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>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_string_field</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>Icon</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/getIconText</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_id.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_id.xml new file mode 100644 index 0000000000..4b233d6a48 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_id.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_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> + <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>field_id</string> </key> + <value> <string>my_string_field</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>ID</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_title.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_title.xml new file mode 100644 index 0000000000..ea78bd553c --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_title.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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> + <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>field_id</string> </key> + <value> <string>my_title</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> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_visible.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_visible.xml new file mode 100644 index 0000000000..dae8fd6e7f --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/ActionInformation_view/my_visible.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_visible</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>field_id</string> </key> + <value> <string>my_checkbox</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>Visible</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_getTranslationList.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_getTranslationList.xml new file mode 100644 index 0000000000..19af39b408 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_getTranslationList.xml @@ -0,0 +1,141 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>from Products.ERP5Type.Document import newTempBase\n +\n +translation_list = [\n + newTempBase(context, \'property_domain_dict/\'+k, uid=k,\n + property_name=v.getPropertyName(),\n + domain_name=v.getDomainName())\n + for k, v in context.getPropertyTranslationDomainDict().items()]\n +\n +translation_list.sort(key=lambda x: x.getId())\n +return translation_list\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> + </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>Products.ERP5Type.Document</string> + <string>newTempBase</string> + <string>append</string> + <string>$append0</string> + <string>_getiter_</string> + <string>_getattr_</string> + <string>context</string> + <string>k</string> + <string>v</string> + <string>translation_list</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>BaseType_getTranslationList</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view.xml new file mode 100644 index 0000000000..c8b8b57734 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view.xml @@ -0,0 +1,164 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </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></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/> + </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_type_factory_method_id</string> + <string>my_type_init_script_id</string> + <string>my_type_add_permission</string> + <string>my_type_acquire_local_role</string> + <string>my_type_property_sheet_list</string> + <string>my_type_base_category_list</string> + </list> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list> + <string>my_type_filter_content_type</string> + <string>my_type_allowed_content_type_list</string> + <string>my_type_hidden_content_type_list</string> + <string>my_type_group_list</string> + </list> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>BaseType_view</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>PortalType_view</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></string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_description.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_description.xml new file mode 100644 index 0000000000..07dc3bb171 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_description.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <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> + <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>field_id</string> </key> + <value> <string>my_description</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> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_id.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_id.xml new file mode 100644 index 0000000000..4b233d6a48 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_id.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_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> + <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>field_id</string> </key> + <value> <string>my_string_field</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>ID</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_acquire_local_role.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_acquire_local_role.xml new file mode 100644 index 0000000000..d2d83b2669 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_acquire_local_role.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_type_acquire_local_role</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>field_id</string> </key> + <value> <string>my_checkbox</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>Acquire Local Roles</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_add_permission.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_add_permission.xml new file mode 100644 index 0000000000..64eb6b8095 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_add_permission.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_type_add_permission</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>field_id</string> </key> + <value> <string>my_string_field</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>Add Permission</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_allowed_content_type_list.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_allowed_content_type_list.xml new file mode 100644 index 0000000000..42e6c3d878 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_allowed_content_type_list.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_type_allowed_content_type_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> + <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>field_id</string> </key> + <value> <string>my_lines_field</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>Allowed Content Types</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_base_category_list.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_base_category_list.xml new file mode 100644 index 0000000000..a7a1714b4d --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_base_category_list.xml @@ -0,0 +1,128 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>items</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_type_base_category_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> + <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>items</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </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>field_id</string> </key> + <value> <string>my_multi_list_field</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>Base Categories</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/getAvailableBaseCategoryList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_factory_method_id.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_factory_method_id.xml new file mode 100644 index 0000000000..dad120f50b --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_factory_method_id.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_type_factory_method_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> + <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>field_id</string> </key> + <value> <string>my_string_field</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>Factory Method ID</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_filter_content_type.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_filter_content_type.xml new file mode 100644 index 0000000000..d643580f1f --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_filter_content_type.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_type_filter_content_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>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>field_id</string> </key> + <value> <string>my_checkbox</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>Filter Content Types</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_group_list.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_group_list.xml new file mode 100644 index 0000000000..4ddd32dfdf --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_group_list.xml @@ -0,0 +1,128 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>items</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_type_group_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> + <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>items</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </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>field_id</string> </key> + <value> <string>my_multi_list_field</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>Groups</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/getAvailableGroupList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_hidden_content_type_list.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_hidden_content_type_list.xml new file mode 100644 index 0000000000..bbfed0ea54 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_hidden_content_type_list.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_type_hidden_content_type_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> + <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>field_id</string> </key> + <value> <string>my_lines_field</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>Hidden Content Types</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_init_script_id.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_init_script_id.xml new file mode 100644 index 0000000000..2851ca9cc1 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_init_script_id.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_type_init_script_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> + <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>field_id</string> </key> + <value> <string>my_string_field</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>Init Script ID</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_property_sheet_list.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_property_sheet_list.xml new file mode 100644 index 0000000000..4a1ec2d193 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_view/my_type_property_sheet_list.xml @@ -0,0 +1,128 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>items</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_type_property_sheet_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> + <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>items</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </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>field_id</string> </key> + <value> <string>my_multi_list_field</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>Property Sheets</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/getAvailablePropertySheetList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction.xml new file mode 100644 index 0000000000..5d8ee7dfc6 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction.xml @@ -0,0 +1,160 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </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></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> + <string>listbox_float_index</string> + <string>listbox_title</string> + </list> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list> + <string>my_id</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>BaseType_viewAction</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>BaseType_viewAction</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>Actions</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/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction/listbox.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction/listbox.xml new file mode 100644 index 0000000000..1e73f4f3e4 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction/listbox.xml @@ -0,0 +1,233 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>columns</string> + <string>editable_columns</string> + <string>portal_types</string> + <string>search_columns</string> + <string>selection_name</string> + <string>sort_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>columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable_columns</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>portal_types</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>search_columns</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>sort_columns</string> </key> + <value> <string></string> </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>columns</string> </key> + <value> + <list> + <tuple> + <string>id</string> + <string>ID</string> + </tuple> + <tuple> + <string>title</string> + <string>Title</string> + </tuple> + <tuple> + <string>action_type_title</string> + <string>Category</string> + </tuple> + <tuple> + <string>float_index</string> + <string>Priority</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>editable_columns</string> </key> + <value> + <list> + <tuple> + <string>title</string> + <string>title</string> + </tuple> + <tuple> + <string>float_index</string> + <string>float_index</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>portal_types</string> </key> + <value> + <list> + <tuple> + <string>Action Information</string> + <string>Action Information</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>search_columns</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string>action_selection</string> </value> + </item> + <item> + <key> <string>sort_columns</string> </key> + <value> + <list> + <tuple> + <string>id</string> + <string>ID</string> + </tuple> + <tuple> + <string>title</string> + <string>Title</string> + </tuple> + <tuple> + <string>action_type_title</string> + <string>Category</string> + </tuple> + <tuple> + <string>float_index</string> + <string>Priority</string> + </tuple> + </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>Actions</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: field.get_value(\'sort_columns\')</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction/listbox_float_index.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction/listbox_float_index.xml new file mode 100644 index 0000000000..5cf268e433 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction/listbox_float_index.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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>listbox_float_index</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>field_id</string> </key> + <value> <string>my_float_field</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>Priority</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction/listbox_title.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction/listbox_title.xml new file mode 100644 index 0000000000..617db43095 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction/listbox_title.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>listbox_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> + <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>field_id</string> </key> + <value> <string>my_title</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> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction/my_id.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction/my_id.xml new file mode 100644 index 0000000000..4b233d6a48 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewAction/my_id.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_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> + <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>field_id</string> </key> + <value> <string>my_string_field</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>ID</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewRole.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewRole.xml new file mode 100644 index 0000000000..5f7cf3b85f --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewRole.xml @@ -0,0 +1,159 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </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></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> + <string>listbox_role_name</string> + </list> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list> + <string>my_id</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>BaseType_viewRole</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>BaseType_viewAction</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>Roles</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/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewRole/listbox.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewRole/listbox.xml new file mode 100644 index 0000000000..930a3da5b4 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewRole/listbox.xml @@ -0,0 +1,148 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>columns</string> + <string>editable_columns</string> + <string>portal_types</string> + <string>selection_name</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>role_name</string> + <string>Roles</string> + </tuple> + <tuple> + <string>description</string> + <string>Description</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>editable_columns</string> </key> + <value> + <list> + <tuple> + <string>role_name</string> + <string>role_name</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>portal_types</string> </key> + <value> + <list> + <tuple> + <string>Role Information</string> + <string>Role Information</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string>role_selection</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>Roles</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewRole/listbox_role_name.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewRole/listbox_role_name.xml new file mode 100644 index 0000000000..0fb54f120b --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewRole/listbox_role_name.xml @@ -0,0 +1,130 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>default</string> + <string>editable</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>listbox_role_name</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>default</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>editable</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>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_string_field</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> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: \'; \'.join(cell.getRoleNameList(()))</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewRole/my_id.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewRole/my_id.xml new file mode 100644 index 0000000000..4b233d6a48 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewRole/my_id.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_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> + <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>field_id</string> </key> + <value> <string>my_string_field</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>ID</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewTranslation.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewTranslation.xml new file mode 100644 index 0000000000..323ac2b325 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewTranslation.xml @@ -0,0 +1,159 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </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></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> + <string>listbox_domain_name</string> + </list> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list> + <string>my_id</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>BaseType_viewTranslation</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>BaseType_viewAction</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>Translations</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/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewTranslation/listbox.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewTranslation/listbox.xml new file mode 100644 index 0000000000..ee9b3df29d --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewTranslation/listbox.xml @@ -0,0 +1,213 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>columns</string> + <string>editable_columns</string> + <string>lines</string> + <string>list_method</string> + <string>selection_name</string> + <string>title</string> + <string>url_columns</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>columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable_columns</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>lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>url_columns</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>columns</string> </key> + <value> + <list> + <tuple> + <string>property_name</string> + <string>Property</string> + </tuple> + <tuple> + <string>domain_name</string> + <string>Domain</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>editable_columns</string> </key> + <value> + <list> + <tuple> + <string>domain_name</string> + <string>domain_name</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>lines</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string>translation_selection</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>Translations</string> </value> + </item> + <item> + <key> <string>url_columns</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(k,None) for k,v in field.get_value(\'columns\')]</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="Method" module="Products.Formulator.MethodField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>method_name</string> </key> + <value> <string>BaseType_getTranslationList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewTranslation/listbox_domain_name.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewTranslation/listbox_domain_name.xml new file mode 100644 index 0000000000..7b0a741bbc --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewTranslation/listbox_domain_name.xml @@ -0,0 +1,132 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>items</string> + <string>size</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>listbox_domain_name</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>items</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>size</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>field_id</string> </key> + <value> <string>my_list_field</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>size</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(\'\',None)] + [(x,x) for x in here.getPortalObject().Localizer.objectIds()]</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewTranslation/my_id.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewTranslation/my_id.xml new file mode 100644 index 0000000000..4b233d6a48 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/BaseType_viewTranslation/my_id.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_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> + <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>field_id</string> </key> + <value> <string>my_string_field</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>ID</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view.xml new file mode 100644 index 0000000000..5fd11360d9 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view.xml @@ -0,0 +1,163 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </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>This form is a placeholder. Its layout must be finished and configured according to the rules.</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/> + </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_title</string> + <string>my_role_name_list</string> + <string>my_condition</string> + </list> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list> + <string>my_role_base_category_list</string> + <string>my_role_base_category_script_id</string> + <string>my_role_category_list</string> + </list> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>RoleInformation_view</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>RoleInformation_view</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></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/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_condition.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_condition.xml new file mode 100644 index 0000000000..563a6fd75f --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_condition.xml @@ -0,0 +1,126 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>default</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_condition</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>default</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </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>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_string_field</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>Condition</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/getConditionText</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_description.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_description.xml new file mode 100644 index 0000000000..07dc3bb171 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_description.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <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> + <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>field_id</string> </key> + <value> <string>my_description</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> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_role_base_category_list.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_role_base_category_list.xml new file mode 100644 index 0000000000..b72e993772 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_role_base_category_list.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_role_base_category_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> + <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>field_id</string> </key> + <value> <string>my_lines_field</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>Base Categories</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_role_base_category_script_id.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_role_base_category_script_id.xml new file mode 100644 index 0000000000..62a78e82e7 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_role_base_category_script_id.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_role_base_category_script_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> + <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>field_id</string> </key> + <value> <string>my_string_field</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>Base Category Script</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_role_category_list.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_role_category_list.xml new file mode 100644 index 0000000000..bc3475e115 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_role_category_list.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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_role_category_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> + <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>field_id</string> </key> + <value> <string>my_lines_field</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>Categories</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_role_name_list.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_role_name_list.xml new file mode 100644 index 0000000000..6791bede81 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_role_name_list.xml @@ -0,0 +1,109 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>title</string> + <string>view_separator</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_role_name_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> + <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>field_id</string> </key> + <value> <string>my_lines_field</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>Roles</string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<br />\n + + +]]></string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_title.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_title.xml new file mode 100644 index 0000000000..ea78bd553c --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/RoleInformation_view/my_title.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </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> + <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>field_id</string> </key> + <value> <string>my_title</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> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view.xml new file mode 100644 index 0000000000..b3f7affcf5 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view.xml @@ -0,0 +1,154 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </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>This form is a placeholder. Its layout must be finished and configured according to the rules.</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/> + </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_description</string> + <string>my_id</string> + <string>my_property_name</string> + <string>my_domain_name</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>TranslationInformation_view</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>TranslationInformation_view</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></string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view/my_description.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view/my_description.xml new file mode 100644 index 0000000000..c3b8b71670 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view/my_description.xml @@ -0,0 +1,283 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="TextAreaField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </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> + <item> + <key> <string>line_too_long</string> </key> + <value> <string>A line was too long.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>You entered too many characters.</string> </value> + </item> + <item> + <key> <string>too_many_lines</string> </key> + <value> <string>You entered too many lines.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <int>5</int> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Description</string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <int>40</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view/my_domain_name.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view/my_domain_name.xml new file mode 100644 index 0000000000..ec8ab12ce1 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view/my_domain_name.xml @@ -0,0 +1,283 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ListField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_domain_name</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> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>unknown_selection</string> </key> + <value> <string>You selected an item that was not in the list.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>first_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>first_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</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>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>first_item</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Translation Domain</string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python:self.getPortalObject().Localizer.objectIds()</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view/my_id.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view/my_id.xml new file mode 100644 index 0000000000..9aef89cbc4 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view/my_id.xml @@ -0,0 +1,263 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StringField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <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> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>ID</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view/my_property_name.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view/my_property_name.xml new file mode 100644 index 0000000000..c1102d3dec --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TranslationInformation_view/my_property_name.xml @@ -0,0 +1,263 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StringField" module="Products.Formulator.StandardFields"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_property_name</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> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Property Name</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TypesTool_viewContentList.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TypesTool_viewContentList.xml new file mode 100644 index 0000000000..e58e4cabca --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TypesTool_viewContentList.xml @@ -0,0 +1,117 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </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_doSelect</string> </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>bottom</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> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>TypesTool_viewContentList</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>Folder_viewContentList</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_list</string> </value> + </item> + <item> + <key> <string>rid</string> </key> + <value> <int>-1722436574</int> </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>Folder Contents</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TypesTool_viewContentList/listbox.xml b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TypesTool_viewContentList/listbox.xml new file mode 100644 index 0000000000..d91cd3832a --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/SkinTemplateItem/portal_skins/erp5_type/TypesTool_viewContentList/listbox.xml @@ -0,0 +1,128 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>columns</string> + <string>selection_name</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>id</string> + <string>ID</string> + </tuple> + <tuple> + <string>translated_portal_type</string> + <string>Type</string> + </tuple> + <tuple> + <string>description</string> + <string>Description</string> + </tuple> + <tuple> + <string>translated_validation_state_title</string> + <string>State</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>portal_type_selection</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>Contents</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_type/bt/categories_list b/product/ERP5/bootstrap/erp5_type/bt/categories_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/change_log b/product/ERP5/bootstrap/erp5_type/bt/change_log new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/comment b/product/ERP5/bootstrap/erp5_type/bt/comment new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/copyright_list b/product/ERP5/bootstrap/erp5_type/bt/copyright_list new file mode 100644 index 0000000000..739ce2512e --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/bt/copyright_list @@ -0,0 +1 @@ +Copyright (c) 2009 Nexedi SA \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_type/bt/dependency_list b/product/ERP5/bootstrap/erp5_type/bt/dependency_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/description b/product/ERP5/bootstrap/erp5_type/bt/description new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/license b/product/ERP5/bootstrap/erp5_type/bt/license new file mode 100644 index 0000000000..3a3e12bcad --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/bt/license @@ -0,0 +1 @@ +GPL \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_type/bt/maintainer_list b/product/ERP5/bootstrap/erp5_type/bt/maintainer_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/provision_list b/product/ERP5/bootstrap/erp5_type/bt/provision_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/publication_url b/product/ERP5/bootstrap/erp5_type/bt/publication_url new file mode 100644 index 0000000000..4af18322e3 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/bt/publication_url @@ -0,0 +1 @@ +None \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_type/bt/revision b/product/ERP5/bootstrap/erp5_type/bt/revision new file mode 100644 index 0000000000..7003e7fe1f --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/bt/revision @@ -0,0 +1 @@ +51 \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_type/bt/short_title b/product/ERP5/bootstrap/erp5_type/bt/short_title new file mode 100644 index 0000000000..4af18322e3 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/bt/short_title @@ -0,0 +1 @@ +None \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_action_path_list b/product/ERP5/bootstrap/erp5_type/bt/template_action_path_list new file mode 100644 index 0000000000..f4b4030186 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/bt/template_action_path_list @@ -0,0 +1,8 @@ +Action Information | base_view +Base Type | action_view +Base Type | base_view +Base Type | role_view +Base Type | translation_view +Role Information | base_view +Translation Information | base_view +Types Tool | base_view \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_base_category_list b/product/ERP5/bootstrap/erp5_type/bt/template_base_category_list new file mode 100644 index 0000000000..2da5498cbd --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/bt/template_base_category_list @@ -0,0 +1 @@ +action_type \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_catalog_datetime_key_list b/product/ERP5/bootstrap/erp5_type/bt/template_catalog_datetime_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_catalog_full_text_key_list b/product/ERP5/bootstrap/erp5_type/bt/template_catalog_full_text_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_catalog_keyword_key_list b/product/ERP5/bootstrap/erp5_type/bt/template_catalog_keyword_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_catalog_local_role_key_list b/product/ERP5/bootstrap/erp5_type/bt/template_catalog_local_role_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_catalog_method_id_list b/product/ERP5/bootstrap/erp5_type/bt/template_catalog_method_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_catalog_multivalue_key_list b/product/ERP5/bootstrap/erp5_type/bt/template_catalog_multivalue_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_catalog_related_key_list b/product/ERP5/bootstrap/erp5_type/bt/template_catalog_related_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_catalog_request_key_list b/product/ERP5/bootstrap/erp5_type/bt/template_catalog_request_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_catalog_result_key_list b/product/ERP5/bootstrap/erp5_type/bt/template_catalog_result_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_catalog_result_table_list b/product/ERP5/bootstrap/erp5_type/bt/template_catalog_result_table_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_catalog_role_key_list b/product/ERP5/bootstrap/erp5_type/bt/template_catalog_role_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_catalog_scriptable_key_list b/product/ERP5/bootstrap/erp5_type/bt/template_catalog_scriptable_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_catalog_topic_key_list b/product/ERP5/bootstrap/erp5_type/bt/template_catalog_topic_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_constraint_id_list b/product/ERP5/bootstrap/erp5_type/bt/template_constraint_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_document_id_list b/product/ERP5/bootstrap/erp5_type/bt/template_document_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_extension_id_list b/product/ERP5/bootstrap/erp5_type/bt/template_extension_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_format_version b/product/ERP5/bootstrap/erp5_type/bt/template_format_version new file mode 100644 index 0000000000..56a6051ca2 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/bt/template_format_version @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_local_role_list b/product/ERP5/bootstrap/erp5_type/bt/template_local_role_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_local_roles_list b/product/ERP5/bootstrap/erp5_type/bt/template_local_roles_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_message_translation_list b/product/ERP5/bootstrap/erp5_type/bt/template_message_translation_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_module_id_list b/product/ERP5/bootstrap/erp5_type/bt/template_module_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_path_list b/product/ERP5/bootstrap/erp5_type/bt/template_path_list new file mode 100644 index 0000000000..87e89d23b3 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/bt/template_path_list @@ -0,0 +1 @@ +portal_categories/action_type/* \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_allowed_content_type_list b/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_allowed_content_type_list new file mode 100644 index 0000000000..ce70d19237 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_allowed_content_type_list @@ -0,0 +1,4 @@ +Base Type | Action Information +Base Type | Role Information +Base Type | Translation Information +Types Tool | Base Type \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_base_category_list b/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_base_category_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_hidden_content_type_list b/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_hidden_content_type_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_id_list b/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_id_list new file mode 100644 index 0000000000..7c0beaf4fa --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_id_list @@ -0,0 +1,5 @@ +Action Information +Base Type +Role Information +Translation Information +Types Tool \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_property_sheet_list b/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_property_sheet_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_role_list b/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_role_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_roles_list b/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_roles_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_workflow_chain_list b/product/ERP5/bootstrap/erp5_type/bt/template_portal_type_workflow_chain_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_preference_list b/product/ERP5/bootstrap/erp5_type/bt/template_preference_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_product_id_list b/product/ERP5/bootstrap/erp5_type/bt/template_product_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_property_sheet_id_list b/product/ERP5/bootstrap/erp5_type/bt/template_property_sheet_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_role_list b/product/ERP5/bootstrap/erp5_type/bt/template_role_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_site_property_id_list b/product/ERP5/bootstrap/erp5_type/bt/template_site_property_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_skin_id_list b/product/ERP5/bootstrap/erp5_type/bt/template_skin_id_list new file mode 100644 index 0000000000..a4b4449f7d --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/bt/template_skin_id_list @@ -0,0 +1 @@ +erp5_type \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_test_id_list b/product/ERP5/bootstrap/erp5_type/bt/template_test_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_tool_id_list b/product/ERP5/bootstrap/erp5_type/bt/template_tool_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_update_business_template_workflow b/product/ERP5/bootstrap/erp5_type/bt/template_update_business_template_workflow new file mode 100644 index 0000000000..c227083464 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/bt/template_update_business_template_workflow @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_update_tool b/product/ERP5/bootstrap/erp5_type/bt/template_update_tool new file mode 100644 index 0000000000..c227083464 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/bt/template_update_tool @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_type/bt/template_workflow_id_list b/product/ERP5/bootstrap/erp5_type/bt/template_workflow_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5/bootstrap/erp5_type/bt/title b/product/ERP5/bootstrap/erp5_type/bt/title new file mode 100644 index 0000000000..a4b4449f7d --- /dev/null +++ b/product/ERP5/bootstrap/erp5_type/bt/title @@ -0,0 +1 @@ +erp5_type \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_type/bt/version b/product/ERP5/bootstrap/erp5_type/bt/version new file mode 100644 index 0000000000..e69de29bb2 diff --git a/product/ERP5Security/tests/testERP5Security.py b/product/ERP5Security/tests/testERP5Security.py index 51926ab4b8..5366c0e9fd 100644 --- a/product/ERP5Security/tests/testERP5Security.py +++ b/product/ERP5Security/tests/testERP5Security.py @@ -48,15 +48,15 @@ from DateTime import DateTime class TestUserManagement(ERP5TypeTestCase): """Tests User Management in ERP5Security. """ - + def getTitle(self): """Title of the test.""" return "ERP5Security: User Management" - + def getBusinessTemplateList(self): """List of BT to install. """ return ('erp5_base',) - + def beforeTearDown(self): """Clears person module and invalidate caches when tests are finished.""" # XXX Isn't it better to clear the cache when deleting a Person ? @@ -65,7 +65,7 @@ class TestUserManagement(ERP5TypeTestCase): self.getPersonModule().objectIds()]) transaction.commit() self.tic() - + def login(self): uf = self.getUserFolder() uf._doAddUser('alex', '', ['Manager', 'Assignee', 'Assignor', @@ -134,7 +134,7 @@ class TestUserManagement(ERP5TypeTestCase): else: self.fail("No plugin could authenticate '%s' with password '%s'" % (login, password)) - + def _assertUserDoesNotExists(self, login, password): """Checks that a user with login and password does not exists and cannot log in to the system. @@ -154,13 +154,13 @@ class TestUserManagement(ERP5TypeTestCase): """Tests a person with a login & password is a valid user.""" p = self._makePerson(reference='the_user', password='secret',) self._assertUserExists('the_user', 'secret') - + def test_PersonLoginCaseSensitive(self): """Login/password are case sensitive.""" p = self._makePerson(reference='the_user', password='secret',) self._assertUserExists('the_user', 'secret') self._assertUserDoesNotExists('the_User', 'secret') - + def test_PersonLoginIsNotStripped(self): """Make sure 'foo ', ' foo' and ' foo ' do not match user 'foo'. """ p = self._makePerson(reference='foo', password='secret',) @@ -207,12 +207,12 @@ class TestUserManagement(ERP5TypeTestCase): self._assertUserDoesNotExists('the_user', None) self._makePerson(reference='another_user', password='',) self._assertUserDoesNotExists('another_user', '') - + def test_PersonWithEmptyLoginAreNotUsers(self): """Tests a person with empty login & password is a valid user.""" self._makePerson(reference='', password='secret') self._assertUserDoesNotExists('', 'secret') - + def test_PersonWithLoginWithNotAssignmentAreNotUsers(self): """Tests a person with a login & password and no assignment open is not a valid user.""" self._makePerson(reference='the_user', password='secret', open_assignment=0) @@ -222,7 +222,7 @@ class TestUserManagement(ERP5TypeTestCase): """Tests one cannot create person with the "super user" special login.""" from Products.ERP5Security.ERP5UserManager import SUPER_USER self.assertRaises(RuntimeError, self._makePerson, reference=SUPER_USER) - + def test_PersonWithSuperUserLogin(self): """Tests one cannot use the "super user" special login.""" from Products.ERP5Security.ERP5UserManager import SUPER_USER @@ -240,7 +240,7 @@ class TestUserManagement(ERP5TypeTestCase): p1 = self._makePerson(reference='person1') p2 = self._makePerson(reference='person2') self.assertEquals(['person', ], - [x['userid'] for x in + [x['userid'] for x in self.portal.acl_users.searchUsers(id='person', exact_match=True)]) def test_MultiplePersonReference(self): @@ -256,7 +256,7 @@ class TestUserManagement(ERP5TypeTestCase): changed, = person_module.manage_pasteObjects(copy_data) self.assertNotEquals(person_module[changed['new_id']].getReference(), person_module[changed['id']].getReference()) - + def test_PreferenceTool_setNewPassword(self): # Preference Tool has an action to change password pers = self._makePerson(reference='the_user', password='secret',) @@ -369,19 +369,20 @@ class TestLocalRoleManagement(ERP5TypeTestCase): assignment.open() transaction.commit() self.tic() - + def beforeTearDown(self): """Called before teardown.""" # clear base categories for bc in ['group', 'site', 'function']: base_cat = self.getCategoryTool()[bc] - base_cat.manage_delObjects([x for x in base_cat.objectIds()]) + base_cat.manage_delObjects(list(base_cat.objectIds())) # clear role definitions - for ti in self.getTypesTool().objectValues(spec=('ERP5 Type Information',)): - ti._roles = () + for ti in self.getTypesTool().objectValues(): + ti.manage_delObjects(list(ti.objectIds(spec='ERP5 Role Information'))) # clear modules - for module in self.portal.objectValues(spec=('ERP5 Folder',)): - module.manage_delObjects([x for x in module.objectIds()]) + for module in self.portal.objectValues(): + if module.getId().endswith('_module'): + module.manage_delObjects(list(module.objectIds())) # commit this transaction.commit() self.tic() @@ -392,20 +393,20 @@ class TestLocalRoleManagement(ERP5TypeTestCase): uf = self.portal.acl_users user = uf.getUserById(username).__of__(uf) newSecurityManager(None, user) - + def _getTypeInfo(self): return self.getTypesTool()['Organisation'] - + def _getModuleTypeInfo(self): return self.getTypesTool()['Organisation Module'] - + def _makeOne(self): return self.getOrganisationModule().newContent(portal_type='Organisation') - + def getBusinessTemplateList(self): """List of BT to install. """ return ('erp5_base',) - + def test_RolesManagerInterfaces(self): """Tests group manager plugin respects interfaces.""" from Products.PluggableAuthService.interfaces.plugins import IRolesPlugin @@ -424,33 +425,32 @@ class TestLocalRoleManagement(ERP5TypeTestCase): def testSimpleLocalRole(self): """Test simple case of setting a role. """ - ti = self._getTypeInfo() - ti.addRole(id='Assignor', description='desc.', - name='an Assignor role for testing', - condition='', - category=self.defined_category, - base_category_script='ERP5Type_getSecurityCategoryFromAssignment', - base_category='') + self._getTypeInfo().newContent(portal_type='Role Information', + role_name='Assignor', + description='desc.', + title='an Assignor role for testing', + role_category=self.defined_category, + role_base_category_script_id='ERP5Type_getSecurityCategoryFromAssignment') obj = self._makeOne() self.assertEquals(['Assignor'], obj.__ac_local_roles__.get('F1_G1_S1')) - + self.loginAsUser(self.username) self.failUnless('Assignor' in getSecurityManager().getUser().getRolesInContext(obj)) - + def testDynamicLocalRole(self): """Test simple case of setting a dynamic role. The site category is not defined explictly the role, and will have the current site of the user. """ - ti = self._getTypeInfo() - ti.addRole(id='Assignor', description='desc.', - name='an Assignor role for testing', - condition='', - category='group/subcat\nfunction/subcat', - base_category_script='ERP5Type_getSecurityCategoryFromAssignment', - base_category='site') - + self._getTypeInfo().newContent(portal_type='Role Information', + role_name='Assignor', + description='desc.', + title='an Assignor role for testing', + role_category_list=('group/subcat', 'function/subcat'), + role_base_category_script_id='ERP5Type_getSecurityCategoryFromAssignment', + role_base_category='site') + self.loginAsUser(self.username) obj = self._makeOne() self.assertEquals(['Assignor'], obj.__ac_local_roles__.get('F1_G1_S1')) @@ -462,13 +462,12 @@ class TestLocalRoleManagement(ERP5TypeTestCase): "acquire local roles" is not checked.""" ti = self._getTypeInfo() ti.acquire_local_roles = False - module_ti = self._getModuleTypeInfo() - module_ti.addRole(id='Assignor', description='desc.', - name='an Assignor role for testing', - condition='', - category=self.defined_category, - base_category_script='ERP5Type_getSecurityCategoryFromAssignment', - base_category='') + self._getModuleTypeInfo().newContent(portal_type='Role Information', + role_name='Assignor', + description='desc.', + title='an Assignor role for testing', + role_category=self.defined_category, + role_base_category_script_id='ERP5Type_getSecurityCategoryFromAssignment') obj = self._makeOne() module = obj.getParentValue() module.updateLocalRolesOnSecurityGroups() @@ -523,7 +522,7 @@ class TestLocalRoleManagement(ERP5TypeTestCase): """Make sure that local role works correctly when traversing """ self.assert_(not self.portal.portal_types.Person.acquire_local_roles) - + self.getPersonModule().newContent(portal_type='Person', id='first_last', first_name='First', @@ -538,14 +537,11 @@ class TestLocalRoleManagement(ERP5TypeTestCase): self.tic() person_module_type_information = self.getTypesTool()['Person Module'] - person_module_type_information.addRole( - id='Auditor', + person_module_type_information.newContent(portal_type='Role Information', + role_name='Auditor', description='', - name='An Auditor role for testing', - condition='', - category='function/another_subcat', - base_category_script='', - base_category='') + title='An Auditor role for testing', + role_category='function/another_subcat') person_module_type_information.updateRoleMapping() transaction.commit() self.tic() diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index 1632e7845f..2b7418843e 100644 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -550,8 +550,7 @@ def initializePortalTypeDynamicProperties(self, klass, ptype, aq_key, portal): prop_list = list(getattr(klass, '_properties', [])) cat_list = list(getattr(klass, '_categories', [])) constraint_list = list(getattr(klass, '_constraints', [])) - if (ptype_object is not None) and \ - (ptype_object.meta_type == 'ERP5 Type Information'): + if ptype_object is not None: # Make sure this is an ERP5Type object ps_list = [getattr(PropertySheet, p, None) for p in ptype_object.property_sheet_list] @@ -579,8 +578,7 @@ def initializePortalTypeDynamicProperties(self, klass, ptype, aq_key, portal): raise ValueError, "%s is not a list for %s" % (ps_property_name, base) - if (ptype_object is not None) and \ - (ptype_object.meta_type == 'ERP5 Type Information'): + if ptype_object is not None: cat_list += ptype_object.base_category_list prop_holder._portal_type = ptype prop_holder._properties = prop_list @@ -3257,8 +3255,7 @@ class Base( CopyContainer, """Assign Local Roles to Groups on self, based on Portal Type Role Definitions and "ERP5 Role Definition" objects contained inside self. """ - self._getTypesTool().getTypeInfo(self)\ - .updateLocalRolesOnSecurityGroups(self, **kw) + self._getTypesTool().getTypeInfo(self).updateLocalRolesOnObject(self, **kw) security.declareProtected(Permissions.ModifyPortalContent, 'assignRoleToSecurityGroup') diff --git a/product/ERP5Type/Core/ActionInformation.py b/product/ERP5Type/Core/ActionInformation.py index 743f3719b8..366a09d874 100644 --- a/product/ERP5Type/Core/ActionInformation.py +++ b/product/ERP5Type/Core/ActionInformation.py @@ -1,7 +1,9 @@ ############################################################################## # -# Copyright (c) 2008 Nexedi SA and Contributors. All Rights Reserved. -# Jean-Paul Smets <jp@nexedi.com> +# Copyright (c) 2002-2009 Nexedi SARL and Contributors. All Rights Reserved. +# Jean-Paul Smets <jp@nexedi.com> +# Ivan Tyagov <ivan@nerpix.com> +# Julien Muchembled <jm@nexedi.com> # # WARNING: This program as such is intended to be used by professional # programmers who take the whole responsability of assessing all potential @@ -26,26 +28,141 @@ # ############################################################################## - from AccessControl import ClassSecurityInfo -from Products.ERP5Type import Permissions -from Products.ERP5Type import PropertySheet -from Products.ERP5Type.Base import Base +from Acquisition import aq_base +from Products.CMFCore.Expression import Expression +from Products.CMFCore.ActionInformation import ActionInfo +from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface +from Products.ERP5Type.Permissions import AccessContentsInformation +from Products.ERP5Type.XMLObject import XMLObject +from zLOG import LOG -class ActionInformation(Base): +class ActionInformation(XMLObject): """ - ActionInformation is a placeholder class which - implements the same interface as CMFCore.ActionInformation + EXPERIMENTAL - DO NOT USE THIS CLASS BESIDES R&D + ActionInformation is an ERP5 type which will eventually replace respective ActionInformation from CMF. """ - + # XXX 'icon' property is not used. We can problably drop it. + meta_type = 'ERP5 Action Information' portal_type = 'Action Information' - isPortalContent = 1 + add_permission = Permissions.AddPortalContent + isPortalContent = 1 isRADContent = 1 - + icon = None # Override DynamicType.icon from CMFCore + + # Declarative security security = ClassSecurityInfo() + security.declareObjectProtected(AccessContentsInformation) - property_sheets = ( PropertySheet.Base - , PropertySheet.SimpleItem + # Declarative properties + property_sheets = ( PropertySheet.CategoryCore + , PropertySheet.DublinCore , PropertySheet.ActionInformation ) + + def testCondition(self, ec): + """ Evaluate condition using context, 'ec', and return 0 or 1.""" + condition = self.getCondition() + return condition is None and 1 or condition(ec) + + security.declarePublic('getVisibility') + def getVisibility(self): + """ Return whether the action should be visible in the CMF UI.""" + return self.isVisible() + + def _setActionExpression(self, value): + if isinstance(value, basestring): + value = Expression(value) + self._baseSetActionExpression(value) + def _setCondition(self, value): + if isinstance(value, basestring): + value = Expression(value) + self._baseSetCondition(value) + def _setIcon(self, value): + if isinstance(value, basestring): + value = Expression(value) + self._baseSetIcon(value) + + def getCondition(self): + if getattr(aq_base(self), 'condition', None) == '': + del self.condition + return self._baseGetCondition() + def getIcon(self): + if getattr(aq_base(self), 'icon', None) == '': + del self.icon + return self._baseGetIcon() + + security.declareProtected(AccessContentsInformation, 'getActionText') + def getActionText(self): + """ + """ + return getattr(self.getActionExpression(), 'text', None) + security.declareProtected(AccessContentsInformation, 'getConditionText') + def getConditionText(self): + """ + """ + return getattr(self.getCondition(), 'text', None) + security.declareProtected(AccessContentsInformation, 'getIconText') + def getIconText(self): + """ + """ + return getattr(self.getIcon(), 'text', None) + + security.declareProtected(AccessContentsInformation, 'PrincipiaSearchSource') + def PrincipiaSearchSource(self): + # Support for "Find" tab in ZMI + search_source_list = [self.getId(), + self.getTitle(), + self.getDescription(), + self.getActionText(), + self.getConditionText()] + return ' '.join(search_source_list) + + # + # XXX CMF compatibility + # + + def _getActionObject(self): + return self.getActionExpression() + + security.declarePrivate('getCategory') + def getCategory(self): + return self.getActionType() + + security.declarePrivate('getPermissions') + def getPermissions(self): + return self.getActionPermissionList() + + #def getActionCategorySelectionList(self): + # return self._getCategoryTool().action_type.objectIds() + #def getPriority(self): + # return self.getFloatIndex() + + security.declarePrivate('getMapping') + def getMapping(self): + """ Get a mapping of this object's data. + """ + return { 'id': self.getId(), + 'title': self.getTitle(), + 'description': self.getDescription(), + 'category': self.getActionType(), + 'condition': self.getCondition(), + 'permissions': self.getPermissions(), #self.permissions, + 'visible': self.getVisibility(), #bool(self.visible), + 'action': self.getActionText() } + + security.declarePrivate('getAction') + def getAction(self, ec): + """ Compute the action using context, 'ec'; return a mapping of + info about the action. + XXX To be renamed or removed, + so that 'action_expression' property can be renamed to 'action'. + """ + return ActionInfo(self, ec) + +# def Title(self): +# return self.getTitle() +# +# def Description(self): +# return self.getDescription() diff --git a/product/ERP5Type/Core/RoleInformation.py b/product/ERP5Type/Core/RoleInformation.py new file mode 100644 index 0000000000..2acbe82f42 --- /dev/null +++ b/product/ERP5Type/Core/RoleInformation.py @@ -0,0 +1,82 @@ +############################################################################## +# +# Copyright (c) 2002 Zope Corporation and Contributors. All Rights Reserved. +# +# This software is subject to the provisions of the Zope Public License, +# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution. +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED +# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS +# FOR A PARTICULAR PURPOSE +# +############################################################################## +""" Information about customizable roles. + +$Id$ +""" + +from AccessControl import ClassSecurityInfo +from Acquisition import aq_base +from Globals import InitializeClass +from OFS.SimpleItem import SimpleItem + +from Products.CMFCore.utils import getToolByName +from Products.CMFCore.Expression import Expression + +from Products.ERP5Type import Permissions, PropertySheet +from Products.ERP5Type.Permissions import AccessContentsInformation +from Products.ERP5Type.XMLObject import XMLObject + + +class RoleInformation(XMLObject): + """ Represent a role definition. + + Roles definitions defines local roles on ERP5Type documents. They are + applied by the updateLocalRolesOnSecurityGroups method. + """ + meta_type = 'ERP5 Role Information' + portal_type = 'Role Information' + add_permission = Permissions.AddPortalContent + isPortalContent = 1 + isRADContent = 1 + + security = ClassSecurityInfo() + security.declareObjectProtected(AccessContentsInformation) + + # Declarative properties + property_sheets = ( PropertySheet.CategoryCore + , PropertySheet.DublinCore + , PropertySheet.RoleInformation + ) + + security.declarePrivate('testCondition') + def testCondition(self, ec): + """ Evaluate condition using context, 'ec', and return 0 or 1.""" + condition = self.getCondition() + return condition is None and 1 or condition(ec) + + def _setCondition(self, value): + if isinstance(value, basestring): + value = Expression(value) + self._baseSetCondition(value) + + def getCondition(self): + if getattr(aq_base(self), 'condition', None) == '': + del self.condition + return self._baseGetCondition() + + security.declareProtected(AccessContentsInformation, 'getConditionText') + def getConditionText(self): + """ + """ + return getattr(self.getCondition(), 'text', None) + + def PrincipiaSearchSource(self): + # Support for "Find" tab in ZMI + return ' '.join((self.getId(), + self.getTitle(), + self.getDescription(), + self.getCondition(), + self.base_category_script)) + +InitializeClass(RoleInformation) diff --git a/product/ERP5Type/ERP5Type.py b/product/ERP5Type/ERP5Type.py index 1c68b5dc21..c179b23dee 100644 --- a/product/ERP5Type/ERP5Type.py +++ b/product/ERP5Type/ERP5Type.py @@ -23,6 +23,7 @@ from Globals import InitializeClass, DTMLFile from AccessControl import ClassSecurityInfo, getSecurityManager from Acquisition import aq_base, aq_inner, aq_parent +from zExceptions import BadRequest import Products import Products.CMFCore.TypesTool @@ -33,14 +34,14 @@ from Products.CMFCore.interfaces.portal_types import ContentTypeInformation\ as ITypeInformation from Products.CMFCore.ActionProviderBase import ActionProviderBase from Products.CMFCore.utils import SimpleItemWithProperties -from Products.CMFCore.Expression import createExprContext +from Products.CMFCore.Expression import createExprContext, Expression from Products.CMFCore.exceptions import AccessControl_Unauthorized from Products.CMFCore.utils import _checkPermission from Products.ERP5Type import PropertySheet from Products.ERP5Type import _dtmldir from Products.ERP5Type import Permissions -from Products.ERP5Type import USE_BASE_TYPE from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod +from Products.ERP5Type.XMLObject import XMLObject # Security uses ERP5Security by default try: @@ -55,9 +56,6 @@ if ERP5UserManager is None: except ImportError: NuxUserGroups = None -from RoleProviderBase import RoleProviderBase -from RoleInformation import ori - from TranslationProviderBase import TranslationProviderBase from sys import exc_info @@ -66,9 +64,9 @@ from Products.CMFCore.exceptions import zExceptions_Unauthorized ERP5TYPE_SECURITY_GROUP_ID_GENERATION_SCRIPT = 'ERP5Type_asSecurityGroupId' -class ERP5TypeInformationMixIn( FactoryTypeInformation, - RoleProviderBase, - TranslationProviderBase ): +class ERP5TypeInformation(XMLObject, + FactoryTypeInformation, + TranslationProviderBase): """ ERP5 Types are based on FactoryTypeInformation @@ -81,76 +79,40 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation, through PropertySheet classes (TALES expressions) """ - __implements__ = ITypeInformation - meta_type = 'ERP5 Type Information' + portal_type = 'Base Type' + meta_type = 'ERP5 Base Type' + isPortalContent = 1 + isRADContent = 1 security = ClassSecurityInfo() + security.declareObjectProtected(Permissions.AccessContentsInformation) - manage_options = ( SimpleItemWithProperties.manage_options[:1] - + ActionProviderBase.manage_options - + RoleProviderBase.manage_options - + TranslationProviderBase.manage_options - + SimpleItemWithProperties.manage_options[1:] - ) - - if not USE_BASE_TYPE: - _properties = (TypeInformation._basic_properties + ( - {'id':'factory', 'type': 'string', 'mode':'w', - 'label':'Product factory method'}, - {'id':'permission', 'type': 'string', 'mode':'w', - 'label':'Add permission'}, - {'id':'init_script', 'type': 'string', 'mode':'w', - 'label':'Init Script'}, - {'id':'acquire_local_roles' - , 'type': 'boolean' - , 'mode':'w' - , 'label':'Acquire Local Roles' - }, - {'id':'filter_content_types', 'type': 'boolean', 'mode':'w', - 'label':'Filter content types?'}, - {'id':'allowed_content_types' - , 'type': 'multiple selection' - , 'mode':'w' - , 'label':'Allowed content types' - , 'select_variable':'listContentTypes' - }, - {'id':'hidden_content_type_list' - , 'type': 'multiple selection' - , 'mode':'w' - , 'label':'Hidden content types' - , 'select_variable':'listContentTypes' - }, - {'id':'property_sheet_list' - , 'type': 'multiple selection' - , 'mode':'w' - , 'label':'Property Sheets' - , 'select_variable':'getPropertySheetList' - }, - {'id':'base_category_list' - , 'type': 'multiple selection' - , 'mode':'w' - , 'label':'Base Categories' - , 'select_variable':'getBaseCategoryList' - }, - {'id':'group_list' - , 'type': 'multiple selection' - , 'mode':'w' - , 'label':'Groups' - , 'select_variable':'getGroupList' - }, - )) + # Declarative properties + property_sheets = ( PropertySheet.Base + , PropertySheet.XMLObject + , PropertySheet.SimpleItem + , PropertySheet.Folder + , PropertySheet.BaseType + ) acquire_local_roles = False property_sheet_list = () base_category_list = () init_script = '' product = 'ERP5Type' - immediate_view = 'view' hidden_content_type_list = () permission = '' - security.declareProtected(Permissions.ManagePortal, 'manage_main') - manage_main = FactoryTypeInformation.manage_propertiesForm + def __init__(self, id, **kw): + XMLObject.__init__(self, id) + # copied from CMFCore.TypesTool + if (not kw.has_key('content_meta_type') + and kw.has_key('meta_type')): + kw['content_meta_type'] = kw['meta_type'] + if (not kw.has_key('content_icon') + and kw.has_key('icon')): + kw['content_icon'] = kw['icon'] + self.__dict__.update(kw) # Groups are used to classify portal types (e.g. resource). # IMPLEMENTATION NOTE @@ -205,8 +167,6 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation, # Acquisition editing interface # - _actions_form = DTMLFile( 'editToolsActions', _dtmldir ) - security.declarePrivate('_guessMethodAliases') def _guessMethodAliases(self): """ Override this method to disable Method Aliases in ERP5. @@ -265,9 +225,10 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation, """ # This is part is copied from CMFCore/TypesTool/constructInstance # In case of temp object, we don't want to check security - if not (hasattr(container, 'isTempObject') and container.isTempObject())\ - and not self.isConstructionAllowed(container): - raise AccessControl_Unauthorized('Cannot create %s' % self.getId()) + if (not (hasattr(container, 'isTempObject') + and container.isTempObject()) + and not self.isConstructionAllowed(container)): + raise AccessControl_Unauthorized('Cannot create %s' % self.getId()) # Then keep on the construction process ob = self._constructInstance(container, id, *args, **kw) @@ -285,8 +246,8 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation, # which acquire their security definition from their parent # The downside of this optimisation is that it is not possible to # set a local role definition if the local role list is empty - if len(self._roles): - self.updateLocalRolesOnSecurityGroups(ob) + if len(self.objectValues(meta_type='ERP5 Role Information')): + self.updateLocalRolesOnObject(ob) # notify workflow after generating local roles, in order to prevent # Unauthorized error on transition's condition @@ -296,121 +257,51 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation, # Reindex the object at the end ob.reindexObject() - if self.init_script : - # Acquire the init script in the context of this object - init_script = getattr(ob, self.init_script) - kw['created_by_builder'] = created_by_builder - init_script(*args, **kw) + init_script = self.getTypeInitScriptId() + if init_script: + # Acquire the init script in the context of this object + kw['created_by_builder'] = created_by_builder + getattr(ob, init_script)(*args, **kw) return ob security.declareProtected(Permissions.ManagePortal, 'setPropertySheetList') - def setPropertySheetList( self, property_sheet_list): - """ - Set the list of property_sheet for this portal type - """ - self.property_sheet_list = property_sheet_list + def setPropertySheetList(self, property_sheet_list): + # XXX CMF compatibility + self._setTypePropertySheetList(property_sheet_list) security.declareProtected(Permissions.AccessContentsInformation, 'getHiddenContentTypeList') - def getHiddenContentTypeList( self ): - """ - Return list of content types. - """ - return self.hidden_content_type_list - + def getHiddenContentTypeList(self): + # XXX CMF compatibility + return self.getTypeHiddenContentTypeList(()) security.declareProtected(Permissions.AccessContentsInformation, 'getInstanceBaseCategoryList') def getInstanceBaseCategoryList(self): """ Return all base categories of the portal type """ - current_list = [] - ptype_object = self - # get the klass of the object based on the constructor document - m = Products.ERP5Type._m - constructor = self.factory - klass = None - for method, doc in m.items(): - if method == constructor: - klass = doc.klass - break - # get categories from portal type - cat_list = ptype_object.base_category_list - current_list += cat_list + base_category_set = set(self.getTypeBaseCategoryList()) + # get categories from property sheet - ps_list = map(lambda p: getattr(PropertySheet, p, None), - ptype_object.property_sheet_list) - ps_list = filter(lambda p: p is not None, ps_list) + ps_list = [getattr(PropertySheet, p, None) + for p in self.getTypePropertySheetList()] # from the property sheets defined on the class - if klass is not None: - from Products.ERP5Type.Base import getClassPropertyList - ps_list = tuple(ps_list) + getClassPropertyList(klass) - for base in ps_list: - ps_property = getattr(base, '_categories', None) - if type(ps_property) in (type(()), type([])): - cat_dict_list = [] - for category in ps_property: - if category not in current_list: - current_list.append(category) - return current_list - - security.declareProtected(Permissions.AccessContentsInformation, - 'getInstancePropertyAndBaseCategoryList') - def getInstancePropertyAndBaseCategoryList(self): - """Return all the properties and base categories of the portal type. """ - # XXX Does not return the list of all properties and categories - # currently (as implementation does not follow exactly the accessor - # generation, like for Expression evaluation). Should be probably better - # to get the list from property holder and not from property sheet - ptype_object = self - # get the klass of the object based on the constructor document m = Products.ERP5Type._m - constructor = self.factory - klass = None - for method, doc in m.items(): - if method == constructor: - klass = doc.klass - break - # get the property sheet list for the portal type - # from the list of property sheet defined on the portal type - ps_list = map(lambda p: getattr(PropertySheet, p, None), - ptype_object.property_sheet_list) - cat_list = ptype_object.base_category_list - ps_list = filter(lambda p: p is not None, ps_list) - # from the property sheets defined on the class - if klass is not None: - from Products.ERP5Type.Base import getClassPropertyList - ps_list = tuple(ps_list) + getClassPropertyList(klass) - # get all properties from the property sheet list - current_list = [] - current_list += cat_list - current_list += ["%s_free_text" % cat for cat in cat_list] - for base in ps_list: - ps_property = getattr(base, '_properties', None) - if type(ps_property) in (type(()), type([])): - for prop in ps_property: - if prop['type'] != 'content': - if prop['id'] not in current_list: - current_list.append(prop['id']) - else: - suffix_list = prop['acquired_property_id'] - for suffix in suffix_list: - full_id = prop['id']+'_'+suffix - if full_id not in current_list: - current_list.append(full_id) - ps_property = getattr(base, '_categories', None) - if type(ps_property) in (type(()), type([])): - cat_dict_list = [] - for category in ps_property: - if category not in current_list: - current_list.append(category) - current_list.append('%s_free_text' % category) - return current_list + if m.has_key(self.factory): + klass = m[self.factory].klass + if klass is not None: + from Products.ERP5Type.Base import getClassPropertyList + ps_list += getClassPropertyList(klass) + + # XXX Can't return set to restricted code in Zope 2.8. + return list(base_category_set.union(category + for base in ps_list + for category in getattr(base, '_categories', ()))) security.declareProtected(Permissions.AccessContentsInformation, - 'getInstancePropertyMap' ) + 'getInstancePropertyMap') def getInstancePropertyMap(self): """ Returns the list of properties which are specific to the portal type. @@ -425,20 +316,17 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation, raise factory_method = getattr(Products.ERP5Type.Document, factory_method_id) id = "some_very_unlikely_temp_object_id_which_should_not_exist" - portal = self.portal_url.getPortalObject() + portal = self.getPortalObject() portal_ids = portal.objectIds() while id in portal_ids: id = id + "d" return factory_method(portal, id).propertyMap() - security.declarePrivate('updateLocalRolesOnSecurityGroups') - def updateLocalRolesOnSecurityGroups(self, *args, **kw): - updateLocalRolesOnSecurityGroups = \ - UnrestrictedMethod(self._updateLocalRolesOnSecurityGroups) - return updateLocalRolesOnSecurityGroups(*args, **kw) + security.declarePrivate('updateLocalRolesOnObject') + def updateLocalRolesOnObject(self, *args, **kw): + return UnrestrictedMethod(self._updateLocalRolesOnObject)(*args, **kw) - def _updateLocalRolesOnSecurityGroups(self, ob, user_name=None, - reindex=True): + def _updateLocalRolesOnObject(self, ob, user_name=None, reindex=True): """ Assign Local Roles to Groups on object 'ob', based on Portal Type Role Definitions and "ERP5 Role Definition" objects contained inside 'ob'. @@ -462,9 +350,6 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation, 'your setup. '\ 'Please install it to benefit from group-based security' - # Retrieve applicable roles - role_mapping = self.getFilteredRoleListFor(ob=ob) - # Create an empty local Role Definition dict role_category_list_dict = {} role_group_list_dict = {} @@ -481,21 +366,19 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation, 'agent' : roledef.getAgentList() }) - # Then parse role mapping - for role_text, definition_list in role_mapping.items(): + # Retrieve and parse applicable roles + for role in self.getFilteredRoleListFor(ob): # For each role definition, we look for the base_category_script # and try to use it to retrieve the values for the base_category list - for definition in definition_list: # get the list of base_categories that are statically defined static_base_category_list = [x.split('/', 1)[0] - for x in definition['category']] + for x in role.getRoleCategoryList()] # get the list of base_categories that are to be fetched through the # script - dynamic_base_category_list = [x for x in - definition['base_category'] if x not in static_base_category_list] + category_order_list = role.getRoleBaseCategoryList() + dynamic_base_category_list = [x for x in category_order_list + if x not in static_base_category_list] # get the aggregated list of base categories, to preserve the order - category_order_list = [] - category_order_list.extend(definition['base_category']) for bc in static_base_category_list: if bc not in category_order_list: category_order_list.append(bc) @@ -503,7 +386,7 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation, # get the script and apply it if dynamic_base_category_list is not # empty if len(dynamic_base_category_list) > 0: - base_category_script_id = definition['base_category_script'] + base_category_script_id = role.getRoleBaseCategoryScriptId() base_category_script = getattr(ob, base_category_script_id, None) if base_category_script is not None: # call the script, which should return either a dict or a list of @@ -531,12 +414,11 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation, # Prepare definition dict once only category_definition_dict = {} - for c in definition['category']: + for c in role.getRoleCategoryList(): bc, value = c.split('/', 1) category_definition_dict.setdefault(bc, []).append(value) # Now create role dict for each roles - for role in role_text.split(';'): - role = role.strip() + for role in role.getRoleNameList(): if isinstance(category_result, dict): # category_result is a dict (which provide group IDs directly) # which represents of mapping of roles, security group IDs @@ -573,9 +455,6 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation, role_group_dict = {} for category_dict in value_list: group_id = group_id_generator(**category_dict) # category_order is passed in the dict - # apparently, python can handle it - # even though category_order is not a named variable - # of the script # If group_id is not defined, do not use it if group_id not in (None, ''): if isinstance(group_id, str): @@ -632,22 +511,9 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation, if reindex: ob.reindexObjectSecurity() - # XXX compat. alias - security.declareProtected(Permissions.ModifyPortalContent, - 'assignRoleToSecurityGroup') - assignRoleToSecurityGroup = updateLocalRolesOnSecurityGroups - - security.declarePublic('getFilteredRoleListFor') - def getFilteredRoleListFor(self, ob=None, **kw): - """ - Return a mapping containing of all roles applicable to the - object against user. - """ - # This is only for backward-compatibility. The keyword parameter - # took object instead of ob in the old implementation. - if ob is None: - ob = kw.get('object') - + security.declarePrivate('getFilteredRoleListFor') + def getFilteredRoleListFor(self, ob=None): + """Return all roles applicable to the object against user.""" portal = self.portal_url.getPortalObject() if ob is None: folder = portal @@ -663,38 +529,43 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation, folder = aq_parent(folder) ec = createExprContext(folder, portal, ob) - roles = [] - append = roles.append - info = ori(self, folder, ob) - - # Include actions from self - self._filterRoleList(append,self,info,ec) - - # Reorganize the actions by role, - # filtering out disallowed actions. - filtered_roles={ - } - for role in roles: - id = role['id'] - if not filtered_roles.has_key(id): - filtered_roles[id] = [] - filtered_roles[id].append(role) + for role in self.objectValues(meta_type='ERP5 Role Information'): + if role.testCondition(ec): + yield role + + security.declareProtected(Permissions.ManagePortal, 'updateRoleMapping') + def updateRoleMapping(self, REQUEST=None, form_id=''): + """Update the local roles in existing objects. + XXX This should be implemented the same way as + ERP5Site_checkCatalogTable (cf erp5_administration). + """ + portal = self.getPortalObject() + update_role_tag = self.__class__.__name__ + ".updateRoleMapping" + + object_list = [x.path for x in + portal.portal_catalog(portal_type=self.id, limit=None)] + object_list_len = len(object_list) + # We need to use activities in order to make sure it will + # work for an important number of objects + activate = portal.portal_activities.activate + for i in xrange(0, object_list_len, 100): + current_path_list = object_list[i:i+100] + activate(activity='SQLQueue', priority=3, tag=update_role_tag) \ + .callMethodOnObjectList(current_path_list, + 'updateLocalRolesOnSecurityGroups', + reindex=False) + activate(activity='SQLQueue', priority=3, after_tag=update_role_tag) \ + .callMethodOnObjectList(current_path_list, + 'reindexObjectSecurity') - return filtered_roles + if REQUEST is not None: + message = '%d objects updated' % object_list_len + return REQUEST.RESPONSE.redirect('%s/%s?portal_status_message=%s' + % (self.absolute_url_path(), form_id, message)) # # Helper methods # - def _filterRoleList(self, append, ob, info, ec): - r = ob.getRoleList(info) - if r and not isinstance(r[0], dict): - for ri in r: - if ri.testCondition(ec): - append(ri.getRole(ec)) - else: - for i in r: - append(i) - def manage_editProperties(self, REQUEST): """ Method overload @@ -715,145 +586,130 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation, _aq_reset() return result - def reorderActions(self, REQUEST=None): - """Reorder actions according to their priorities.""" - new_actions = self._cloneActions() - new_actions.sort(key=lambda x: x.getPriority()) - self._actions = tuple( new_actions ) - - if REQUEST is not None: - return self.manage_editActionsForm(REQUEST, - manage_tabs_message='Actions reordered.') - + security.declareProtected(Permissions.AccessContentsInformation, + 'PrincipiaSearchSource') def PrincipiaSearchSource(self): # Support for "Find" tab in ZMI - search_source_list =[ self.getId(), - self.factory, self.permission, self.init_script, - ' '.join(self.property_sheet_list), - ' '.join(self.base_category_list) ] - for ai in self._actions: - search_source_list.extend([ai.title, ai.id, ai.getActionExpression(), - ai.getCondition() ]) - for ri in self._roles: - search_source_list.extend([ri.id, ri.title, ri.description, - ri.getCondition(), ri.base_category_script ]) + search_source_list = [self.getId(), + self.getTypeFactoryMethodId(), + self.getTypeAddPermission(), + self.getTypeInitScriptId()] + search_source_list += self.getTypePropertySheetList(()) + search_source_list += self.getTypeBaseCategoryList(()) return ' '.join(search_source_list) -if USE_BASE_TYPE: - from Products.ERP5Type.XMLObject import XMLObject - - class ERP5TypeInformation(XMLObject, - ERP5TypeInformationMixIn): - """ - EXPERIMENTAL - DO NOT USE THIS CLASS BESIDES R&D - """ - portal_type = 'Base Type' - isPortalContent = 1 - isRADContent = 1 + # + # USE_BASE_TYPE + # - security = ClassSecurityInfo() - - # Declarative properties - property_sheets = ( PropertySheet.Base - , PropertySheet.XMLObject - , PropertySheet.SimpleItem - , PropertySheet.Folder - , PropertySheet.BaseType - ) + def getIcon(self): + return self.content_icon def getTypeInfo(self, *args): - if not len(args): + if not args: return XMLObject.getTypeInfo(self) else: - return self.getParentValue().getTypeInfo(self, args[0]) + return self.getParentValue().getTypeInfo(self, *args) security.declareProtected(Permissions.AccessContentsInformation, - 'getPortalPropertySheetList') - def getPortalPropertySheetList( self ): - """ - Return list of content types. - XXX I (seb) think the name is bad - (jp) yes, the name is bad, it should be getAvailablePropertySheetList - """ - result = Products.ERP5Type.PropertySheet.__dict__.keys() - result = filter(lambda k: not k.startswith('__'), result) - result.sort() - return result + 'getAvailablePropertySheetList') + def getAvailablePropertySheetList(self): + return sorted(k for k in Products.ERP5Type.PropertySheet.__dict__ + if not k.startswith('__')) security.declareProtected(Permissions.AccessContentsInformation, - 'getPortalBaseCategoryList') - def getPortalBaseCategoryList( self ): - result = self.portal_categories.getBaseCategoryList() - result.sort() - return result + 'getAvailableConstraintList') + def getAvailableConstraintList(self): + return sorted(k for k in Products.ERP5Type.Constraint.__dict__ + if k != 'Constraint' and not k.startswith('__')) security.declareProtected(Permissions.AccessContentsInformation, - 'getPortalConstraintList') - def getPortalConstraintList( self ): - result = Products.ERP5Type.Constraint.__dict__.keys() - result = filter(lambda k: k != 'Constraint' and not k.startswith('__'), - result) - result.sort() - return result + 'getAvailableGroupList') + def getAvailableGroupList(self): + return sorted(self.defined_group_list) security.declareProtected(Permissions.AccessContentsInformation, - 'getPortalTypeGroupList') - def getPortalTypeGroupList( self ): - return sorted(self.defined_group_list) + 'getAvailableBaseCategoryList') + def getAvailableBaseCategoryList(self): + return sorted(self._getCategoryTool().getBaseCategoryList()) -else: - class ERP5TypeInformation(ERP5TypeInformationMixIn): - - security = ClassSecurityInfo() - - security.declareProtected(Permissions.AccessContentsInformation, - 'getPropertySheetList') - def getPropertySheetList( self ): - """ - Return list of content types. - XXX I (seb) think the name is bad - (jp) yes, the name is bad, it should be getAvailablePropertySheetList - """ - result = Products.ERP5Type.PropertySheet.__dict__.keys() - result = filter(lambda k: not k.startswith('__'), result) - result.sort() - return result - - security.declareProtected(Permissions.AccessContentsInformation, - 'getBaseCategoryList') - def getBaseCategoryList( self ): - result = self.portal_categories.getBaseCategoryList() - result.sort() - return result + # + # Compatibitility code for actions + # - security.declareProtected(Permissions.AccessContentsInformation, - 'getConstraintList') - def getConstraintList( self ): - result = Products.ERP5Type.Constraint.__dict__.keys() - result = filter(lambda k: k != 'Constraint' and not k.startswith('__'), - result) - result.sort() - return result + security.declarePrivate('listActions') + def listActions(self, info=None, object=None): + """ List all the actions defined by a provider.""" + return sorted(self.objectValues(portal_type='Action Information'), + key=lambda x: x.getFloatIndex()) + + def _normalizeActionId(self, action_id): + try: + self._checkId(action_id) + except BadRequest: + if not self.hasObject(action_id): + return self._normalizeActionId('action__' + action_id) + return action_id + + def _importOldAction(self, old_action): + from Products.ERP5Type.Document.ActionInformation import ActionInformation + old_action = old_action.__getstate__() + action_type = old_action.pop('category', None) + action_id = self._normalizeActionId(old_action.pop('id')) + if self.hasObject(action_id): + self._delObject(action_id) + action = ActionInformation(action_id) + for k, v in old_action.iteritems(): + if k in ('action', 'condition', 'icon'): + if not v: + continue + v = v.__class__(v.text) + elif k == 'priority': + k = 'float_index' + setattr(action, k, v) + action.uid = None + action = self[self._setObject(action.id, action, set_owner=0)] + if action_type: + action._setCategoryMembership('action_type', action_type) + return action + + def _exportOldAction(self, action_id): + from Products.CMFCore.ActionInformation import ActionInformation + action = self[self._normalizeActionId(action_id)] + old_action = ActionInformation(action_id, + category = action.getActionType(), + # We don't have the same default values for the following properties: + priority=action.getFloatIndex(), + permissions=tuple(action.getActionPermissionList())) + for k, v in action.__dict__.iteritems(): + if k in ('action', 'condition', 'icon'): + v = v.__class__(v.text) + elif k in ('id', 'float_index', 'permissions'): + continue + setattr(old_action, k, v) + return old_action + + def _importRole(self, role_property_dict): + from Products.ERP5Type.Document.RoleInformation import RoleInformation + role = RoleInformation(self.generateNewId()) + for k, v in role_property_dict.iteritems(): + if k == 'condition': + if isinstance(v, Expression): + v = v.text + if not v: + continue + v = Expression(v) + elif k == 'priority': + continue + elif k == 'id': + k, v = 'role_name', tuple(x.strip() for x in v.split(';')) + elif k in ('base_category', 'category'): + k, v = 'role_' + k, tuple(x.strip() for x in v) + elif k == 'base_category_script': + k = 'role_base_category_script_id' + setattr(role, k, v) + role.uid = None + return self[self._setObject(role.id, role, set_owner=0)] - security.declareProtected(Permissions.AccessContentsInformation, - 'getGroupList') - def getGroupList( self ): - return sorted(self.defined_group_list) InitializeClass( ERP5TypeInformation ) - -def manage_addERP5TIForm(self, REQUEST): - ' form to add an ERP5 Type Information ' - return self._addTIForm( - self, REQUEST, - add_meta_type=ERP5TypeInformation.meta_type, - types=self.listDefaultTypeInformation()) - - -# Dynamic patch -Products.CMFCore.TypesTool.typeClasses.append( - {'class':ERP5TypeInformation, - 'name':ERP5TypeInformation.meta_type, - 'action':'manage_addERP5TIForm', - 'permission':'Manage portal'}, ) -Products.CMFCore.TypesTool.TypesTool.manage_addERP5TIForm = manage_addERP5TIForm diff --git a/product/ERP5Type/PropertySheet/ActionInformation.py b/product/ERP5Type/PropertySheet/ActionInformation.py index 19ccbb6e26..81e7eb39cd 100644 --- a/product/ERP5Type/PropertySheet/ActionInformation.py +++ b/product/ERP5Type/PropertySheet/ActionInformation.py @@ -1,7 +1,8 @@ ############################################################################## # -# Copyright (c) 2008 Nexedi SA and Contributors. All Rights Reserved. +# Copyright (c) 2009 Nexedi SA and Contributors. All Rights Reserved. # Jean-Paul Smets-Solanes <jp@nexedi.com> +# Julien Muchembled <jm@nexedi.com> # # WARNING: This program as such is intended to be used by professional # programmers who take the whole responsability of assessing all potential @@ -27,57 +28,49 @@ ############################################################################## class ActionInformation: - """ - EXPERIMENTAL - DO NOT USE THIS PROPERTYSHEET BESIDES R&D - Properties of an ERP5 Type action. - """ + """ + EXPERIMENTAL - DO NOT USE THIS PROPERTYSHEET BESIDES R&D + Properties of an ERP5 Type action. + """ - _properties = ( - { 'id': 'action_category', - 'storage_id': 'category', # CMF Compatibility - 'type': 'selection', - 'description':'The category of the action', - 'select_variable': 'getActionCategorySelectionList', - 'mode': 'w', - }, - { 'id': 'condition', - 'type': 'tales', - 'description':'TALES Expression to define the applicability of the role definition', - 'mode': 'w', - }, - { 'id': 'action_permission', - 'storage_id': 'permissions', # CMF Compatibility - 'type': 'lines', - 'description':'The permissions required to use the current view the current action', - 'mode': 'w', - }, - { 'id': 'priority', - 'type': 'float', - 'description':'Priority of the current action', - 'mode': 'w', - }, - { 'id': 'visible', - 'type': 'boolean', - 'description':'Visibility of the current action', - 'mode': 'w', - }, - { 'id': 'action', - 'type': 'tales', - 'description':'TALES Expression to define the URL of the action', - 'mode': 'w', - }, - { 'id': 'icon', - 'type': 'tales', - 'description':'TALES Expression to define the URL of the icon of the current action', - 'mode': 'w', - }, - # This is the current way to define closed lists of values which are not categories - { 'id' : 'action_category_selection', - 'description' : 'List of possible values for action_category', - 'type' : 'tokens', - 'default' : ['object_view', 'object_list', 'object_action', - 'object_web_view', 'object_print', 'object_exchange', - 'object_report', 'object_dialog', 'object_icon', ], - 'mode' : 'w'}, - ) + _properties = ( + { 'id': 'condition', + 'type': 'object', + 'description': 'TALES Expression to define the applicability of the' \ + ' action', + 'mode': 'w', + }, + { 'id': 'action_permission', + 'storage_id': 'permissions', # CMF Compatibility + 'type': 'lines', + 'description': 'The permissions required to use the action', + 'mode': 'w', + 'default': ['View'], + }, + { 'id': 'float_index', + 'type': 'float', + 'description': 'Priority of the current action', + 'mode': 'w', + 'default': 1.0, + }, + { 'id': 'visible', + 'type': 'boolean', + 'description': 'Visibility of the current action', + 'mode': 'w', + 'default': True, + }, + { 'id': 'action_expression', # CMF Compatibility + 'storage_id': 'action', + 'type': 'object', + 'description': 'TALES Expression to define the URL of the action', + 'mode': 'w', + }, + { 'id': 'icon', # XXX not used + 'type': 'object', + 'description': 'TALES Expression to define the URL of the icon of the' \ + ' action', + 'mode': 'w', + }, + ) + _categories = ('action_type', ) diff --git a/product/ERP5Type/PropertySheet/BaseType.py b/product/ERP5Type/PropertySheet/BaseType.py index 11b8ac93d0..7156759867 100644 --- a/product/ERP5Type/PropertySheet/BaseType.py +++ b/product/ERP5Type/PropertySheet/BaseType.py @@ -80,21 +80,21 @@ class BaseType: , 'type': 'multiple selection' , 'mode': 'w' , 'label': 'Property Sheets' - , 'select_variable':'getPortalPropertySheetList' + , 'select_variable':'getAvailablePropertySheetList' }, { 'id': 'type_base_category' , 'storage_id': 'base_category_list' # CMF Compatibility , 'type': 'multiple selection' , 'mode': 'w' , 'label': 'Base Categories' - , 'select_variable':'getPortalBaseCategoryList' + , 'select_variable':'getAvailableBaseCategoryList' }, { 'id': 'type_group' , 'storage_id': 'group_list' # CMF Compatibility , 'type': 'multiple selection' , 'mode': 'w' , 'label': 'Groups' - , 'select_variable':'getPortalTypeGroupList' + , 'select_variable':'getAvailableGroupList' }, ) diff --git a/product/ERP5Type/PropertySheet/RoleInformation.py b/product/ERP5Type/PropertySheet/RoleInformation.py index 684c983180..e230e559df 100644 --- a/product/ERP5Type/PropertySheet/RoleInformation.py +++ b/product/ERP5Type/PropertySheet/RoleInformation.py @@ -1,6 +1,6 @@ ############################################################################## # -# Copyright (c) 2008 Nexedi SA and Contributors. All Rights Reserved. +# Copyright (c) 2009 Nexedi SA and Contributors. All Rights Reserved. # Jean-Paul Smets-Solanes <jp@nexedi.com> # # WARNING: This program as such is intended to be used by professional @@ -27,35 +27,41 @@ ############################################################################## class RoleInformation: - """ - EXPERIMENTAL - DO NOT USE THIS PROPERTYSHEET BESIDES R&D - Properties of an ERP5 Type Role Information - """ + """ + EXPERIMENTAL - DO NOT USE THIS PROPERTYSHEET BESIDES R&D + Properties of an ERP5 Type Role Information + """ - _properties = ( - { 'id': 'role_name', - 'type': 'tokens', - 'description':'A list of role names defined by this Role Information', - 'mode': 'w', - }, - { 'id': 'condition', - 'type': 'tales', - 'description':'TALES Expression to define the applicability of the role definition', - 'mode': 'w', - }, - { 'id': 'role_category', - 'type': 'lines', - 'description':'Static definition of the security categories', - 'mode': 'w', - }, - { 'id': 'role_base_category', - 'type': 'lines', - 'description':'Base categories to use in order to retrieve dynamic security categories', - 'mode': 'w', - }, - { 'id': 'role_base_category_script_id', - 'type': 'lines', - 'description':'Script ID to use in order retrieve dynamic security categories', - 'mode': 'w', - }, - ) \ No newline at end of file + _properties = ( + { 'id': 'role_name', + 'type': 'lines', + 'description': 'A list of role names defined by this Role Information', + 'default': [], + 'mode': 'w', + }, + { 'id': 'condition', + 'type': 'object', + 'description': 'TALES Expression to define the applicability of the' \ + ' role', + 'mode': 'w', + }, + { 'id': 'role_category', + 'type': 'lines', + 'description': 'Static definition of the security categories', + 'default': [], + 'mode': 'w', + }, + { 'id': 'role_base_category', + 'type': 'tokens', + 'description': 'Base categories to use in order to retrieve dynamic' \ + ' security categories', + 'default': [], + 'mode': 'w', + }, + { 'id': 'role_base_category_script_id', + 'type': 'string', + 'description': 'Script ID to use in order retrieve dynamic' \ + ' security categories', + 'mode': 'w', + }, + ) \ No newline at end of file diff --git a/product/ERP5Type/RoleInformation.py b/product/ERP5Type/RoleInformation.py deleted file mode 100644 index ea98aef7f3..0000000000 --- a/product/ERP5Type/RoleInformation.py +++ /dev/null @@ -1,188 +0,0 @@ -############################################################################## -# -# Copyright (c) 2002 Zope Corporation and Contributors. All Rights Reserved. -# -# This software is subject to the provisions of the Zope Public License, -# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution. -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED -# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS -# FOR A PARTICULAR PURPOSE -# -############################################################################## -""" Information about customizable roles. - -$Id$ -""" - -from AccessControl import ClassSecurityInfo -from Globals import InitializeClass -from Acquisition import aq_inner, aq_parent -from OFS.SimpleItem import SimpleItem - -from Products.CMFCore.utils import getToolByName -from Products.CMFCore.Expression import Expression - -from Permissions import View - - -class RoleInformation( SimpleItem ): - - """ Represent a role definition. - - Roles definitions defines local roles on ERP5Type documents. They are - applied by the updateLocalRolesOnSecurityGroups method. - """ - _isRoleInformation = 1 - __allow_access_to_unprotected_subobjects__ = 1 - - security = ClassSecurityInfo() - - def __init__( self - , id - , title='' - , description='' - , category=() - , condition='' - , priority=10 - , base_category=() - , base_category_script='' - ): - """ Set up an instance. - """ - if condition and isinstance(condition, str): - condition = Expression( condition ) - - self.id = id - self.title = title - self.description = description - self.category = category - self.condition = condition - self.priority = float(priority) - self.base_category = base_category - self.base_category_script = base_category_script - - security.declareProtected( View, 'Title' ) - def Title(self): - - """ Return the Role title. - """ - return self.title or self.getId() - - security.declareProtected( View, 'Description' ) - def Description( self ): - - """ Return a description of the role. - """ - return self.description - - security.declarePrivate( 'testCondition' ) - def testCondition( self, ec ): - - """ Evaluate condition using context, 'ec', and return 0 or 1. - """ - if self.condition: - return self.condition(ec) - else: - return 1 - - security.declareProtected( View, 'getRole' ) - def getRole( self, ec ): - - """ Compute the role using context, 'ec'; return a mapping of - info about the role. - """ - info = {} - info['id'] = self.id - info['name'] = self.Title() - info['description'] = self.Description() - info['category'] = self.getCategory() - info['base_category'] = self.getBaseCategory() - info['base_category_script'] = self.getBaseCategoryScript() - return info - - security.declareProtected( View, 'getCondition' ) - def getCondition(self): - - """ Return the text of the TALES expression for our condition. - """ - return getattr( self, 'condition', None ) and self.condition.text or '' - - security.declareProtected( View, 'getCategory' ) - def getCategory( self ): - - """ Return the category - as a tuple (to prevent script from modifying it) - - Strip any return or ending space - """ - return tuple(map(lambda x: x.strip(), - filter(lambda x: x, self.category))) or () - - security.declareProtected( View, 'getBaseCategory' ) - def getBaseCategory( self ): - - """ Return the base_category - as a tuple (to prevent script from modifying it) - """ - return tuple(getattr(self, 'base_category', ())) - - security.declareProtected( View, 'getBaseCategoryScript' ) - def getBaseCategoryScript( self ): - - """ Return the base_category_script id - """ - base_category_script = getattr(self, 'base_category_script', None) - if base_category_script is not None: - return base_category_script - return '' - - security.declarePrivate( 'clone' ) - def clone( self ): - - """ Return a newly-created RI just like us. - """ - return self.__class__( id=self.id - , title=self.title - , description=self.description - , category =self.category - , condition=self.getCondition() - , priority =self.priority - , base_category=self.base_category - , base_category_script=getattr(self, - 'base_category_script', '') - ) - -InitializeClass( RoleInformation ) - -class ori: - #Provided for backwards compatability - # Provides information that may be needed when constructing the list of - # available actions. - __allow_access_to_unprotected_subobjects__ = 1 - - def __init__( self, tool, folder, object=None ): - self.portal = portal = aq_parent(aq_inner(tool)) - membership = getToolByName(tool, 'portal_membership') - #self.isAnonymous = membership.isAnonymousUser() - #self.user_id = membership.getAuthenticatedMember().getId() - self.portal_url = portal.absolute_url() - if folder is not None: - self.folder_url = folder.absolute_url() - self.folder = folder - else: - self.folder_url = self.portal_url - self.folder = portal - self.content = object - if object is not None: - self.content_url = object.absolute_url() - else: - self.content_url = None - - def __getitem__(self, name): - # Mapping interface for easy string formatting. - if name[:1] == '_': - raise KeyError, name - if hasattr(self, name): - return getattr(self, name) - raise KeyError, name diff --git a/product/ERP5Type/RoleProviderBase.py b/product/ERP5Type/RoleProviderBase.py deleted file mode 100644 index 8427b7f038..0000000000 --- a/product/ERP5Type/RoleProviderBase.py +++ /dev/null @@ -1,289 +0,0 @@ -############################################################################## -# -# Copyright (c) 2002 Zope Corporation and Contributors. All Rights Reserved. -# -# This software is subject to the provisions of the Zope Public License, -# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution. -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED -# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS -# FOR A PARTICULAR PURPOSE -# -############################################################################## -""" Implement a shared base for tools which provide roles. - -$Id$ -""" - -from Globals import DTMLFile, InitializeClass -from AccessControl import ClassSecurityInfo -from Products.CMFCore.Expression import Expression -from Products.ERP5Type import _dtmldir - -from RoleInformation import RoleInformation -from Permissions import ManagePortal - -from zLOG import LOG - -#from interfaces.portal_roles import RoleProvider as IRoleProvider - - -class RoleProviderBase: - """ Provide RoleTabs and management methods for RoleProviders - """ - - #__implements__ = IRoleProvider - - security = ClassSecurityInfo() - - _roles = () - - _roles_form = DTMLFile( 'editToolsRoles', _dtmldir ) - - manage_options = ( { 'label' : 'Roles' - , 'action' : 'manage_editRolesForm' - } - , - ) - - # - # RoleProvider interface - # - security.declarePrivate( 'getRoleList' ) - def getRoleList( self, info=None ): - """ Return all the roles defined by a provider. - """ - return self._roles or () - - # - # ZMI methods - # - security.declareProtected( ManagePortal, 'manage_editRolesForm' ) - def manage_editRolesForm( self, REQUEST, manage_tabs_message=None ): - - """ Show the 'Roles' management tab. - """ - roles = [] - - for a in self.getRoleList(): - - a1 = {} - a1['id'] = a.getId() # The Role Id (ex. Assignor) - a1['description'] = unicode(a.Description(), 'utf8', 'repr') # The Role Description (ex. a person in charge of assigning orders) - a1['name'] = unicode(a.Title(), 'utf8', 'repr') # The name of this role definition (ex. Assignor at company X) - a1['category'] = a.getCategory() or [] # Category definition - a1['base_category'] = a.getBaseCategory() # Base Category Definition - a1['base_category_script'] = a.getBaseCategoryScript() # Base Category Script Id - a1['condition'] = a.getCondition() - roles.append(a1) - - return self._roles_form( self - , REQUEST - , roles=roles - , management_view='Roles' - , manage_tabs_message=manage_tabs_message - ) - - security.declareProtected( ManagePortal, 'addRole' ) - def addRole( self - , id - , description - , name - , condition - , category - , base_category_script - # XXX Default value is a tuple, but a string is required - , base_category=() - , REQUEST=None - ): - """ Add an role to our list. - """ - if not name: - raise ValueError('A name is required.') - - c_expr = condition and Expression(text=str(condition)) or '' - - new_roles = self._cloneRoles() - - new_role = RoleInformation( id=str(id) - , description=description - , title=str(name) - , condition=c_expr - , category=category.split('\n') - , base_category=base_category.split() - , base_category_script=base_category_script - ) - - new_roles.append( new_role ) - self._roles = tuple( new_roles ) - - if REQUEST is not None: - return self.manage_editRolesForm( - REQUEST, manage_tabs_message='Added.') - - security.declareProtected( ManagePortal, 'changeRoles' ) - def changeRoles( self, properties=None, REQUEST=None ): - - """ Update our list of roles. - """ - if properties is None: - properties = REQUEST - - roles = [] - - for index in range( len( self._roles ) ): - roles.append( self._extractRole( properties, index ) ) - - self._roles = tuple( roles ) - - if REQUEST is not None: - return self.manage_editRolesForm(REQUEST, manage_tabs_message= - 'Roles changed.') - - security.declareProtected( ManagePortal, 'deleteRoles' ) - def deleteRoles( self, selections=(), REQUEST=None ): - - """ Delete roles indicated by indexes in 'selections'. - """ - sels = list( map( int, selections ) ) # Convert to a list of integers. - - old_roles = self._cloneRoles() - new_roles = [] - - for index in range( len( old_roles ) ): - if index not in sels: - new_roles.append( old_roles[ index ] ) - - self._roles = tuple( new_roles ) - - if REQUEST is not None: - return self.manage_editRolesForm( - REQUEST, manage_tabs_message=( - 'Deleted %d role(s).' % len(sels))) - - security.declareProtected( ManagePortal, 'moveUpRoles' ) - def moveUpRoles( self, selections=(), REQUEST=None ): - - """ Move the specified roles up one slot in our list. - """ - sels = list( map( int, selections ) ) # Convert to a list of integers. - sels.sort() - - new_roles = self._cloneRoles() - - for idx in sels: - idx2 = idx - 1 - if idx2 < 0: - # Wrap to the bottom. - idx2 = len(new_roles) - 1 - # Swap. - a = new_roles[idx2] - new_roles[idx2] = new_roles[idx] - new_roles[idx] = a - - self._roles = tuple( new_roles ) - - if REQUEST is not None: - return self.manage_editRolesForm( - REQUEST, manage_tabs_message=( - 'Moved up %d role(s).' % len(sels))) - - security.declareProtected( ManagePortal, 'moveDownRoles' ) - def moveDownRoles( self, selections=(), REQUEST=None ): - - """ Move the specified roles down one slot in our list. - """ - sels = list( map( int, selections ) ) # Convert to a list of integers. - sels.sort() - sels.reverse() - - new_roles = self._cloneRoles() - - for idx in sels: - idx2 = idx + 1 - if idx2 >= len(new_roles): - # Wrap to the top. - idx2 = 0 - # Swap. - a = new_roles[idx2] - new_roles[idx2] = new_roles[idx] - new_roles[idx] = a - - self._roles = tuple( new_roles ) - - if REQUEST is not None: - return self.manage_editRolesForm( - REQUEST, manage_tabs_message=( - 'Moved down %d role(s).' % len(sels))) - - # - # Helper methods - # - security.declarePrivate( '_cloneRoles' ) - def _cloneRoles( self ): - - """ Return a list of roles, cloned from our current list. - """ - return map( lambda x: x.clone(), list( self._roles ) ) - - security.declarePrivate( '_extractRole' ) - def _extractRole( self, properties, index ): - - """ Extract an RoleInformation from the funky form properties. - """ - id = str( properties.get( 'id_%d' % index, '' ) ) - description = str( properties.get( 'description_%d' % index, '' ) ) - name = str( properties.get( 'name_%d' % index, '' ) ) - condition = str( properties.get( 'condition_%d' % index, '' ) ) - category = properties.get( 'category_%d' % index, '' ).split('\n') - base_category = properties.get( 'base_category_%d' % index, '' ).split() - base_category_script = str( properties.get( 'base_category_script_%d' % index, '' ) ) - - if not name: - raise ValueError('A name is required.') - - if condition is not '': - condition = Expression( text=condition ) - - return RoleInformation( id=id - , title=name - , description=description - , condition=condition - , category=category - , base_category=base_category - , base_category_script=base_category_script - ) - - security.declareProtected( ManagePortal, 'updateRoleMapping' ) - def updateRoleMapping( self, REQUEST=None, manage_tabs_message=None ): - """Update the local roles in existing objects. - """ - portal_catalog = self.portal_catalog - - update_role_tag = "%s.%s" % (self.__class__.__name__, "updateRoleMapping") - - object_list = portal_catalog(portal_type = self.id, limit=None) - # We need to use activities in order to make sure it will - # work for an important number of objects - object_list_len = len(object_list) - portal_activities = self.portal_activities - object_path_list = [x.path for x in object_list] - for i in xrange(0, object_list_len, 100): - current_path_list = object_path_list[i:i+100] - portal_activities.activate(activity='SQLQueue', - priority=3, - tag=update_role_tag)\ - .callMethodOnObjectList(current_path_list, - 'updateLocalRolesOnSecurityGroups', - reindex=False) - portal_activities.activate(activity='SQLQueue', - priority=3, - after_tag=update_role_tag)\ - .callMethodOnObjectList(current_path_list, - 'reindexObjectSecurity') - - if REQUEST is not None: - return self.manage_editRolesForm(REQUEST, - manage_tabs_message='%d objects updated' % (object_list_len,)) - -InitializeClass(RoleProviderBase) diff --git a/product/ERP5Type/Tool/TypesTool.py b/product/ERP5Type/Tool/TypesTool.py index cb1eb9dc45..97a0872f8b 100644 --- a/product/ERP5Type/Tool/TypesTool.py +++ b/product/ERP5Type/Tool/TypesTool.py @@ -1,7 +1,8 @@ ############################################################################## # -# Copyright (c) 2008 Nexedi SA and Contributors. All Rights Reserved. +# Copyright (c) 2009 Nexedi SA and Contributors. All Rights Reserved. # Jean-Paul Smets-Solanes <jp@nexedi.com> +# Julien Muchembled <jm@nexedi.com> # # Copyright (c) 2002 Zope Corporation and Contributors. All Rights Reserved. # @@ -14,24 +15,31 @@ # ############################################################################## +import imp, sys +from Acquisition import aq_base from AccessControl import ClassSecurityInfo -from Products.CMFCore.TypesTool import TypesTool as CMFCoreTypesTool +from OFS.Folder import Folder as OFSFolder +import transaction +from Products.CMFCore import TypesTool as CMFCore_TypesTool from Products.ERP5Type.Tool.BaseTool import BaseTool from Products.ERP5Type.Cache import CachingMethod from Products.ERP5Type import Permissions -from Acquisition import aq_base +from Products.ERP5Type.ERP5Type import ERP5TypeInformation +from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod +from zLOG import LOG, WARNING, PANIC - -class TypesTool(BaseTool, CMFCoreTypesTool): +class TypesTool(BaseTool, CMFCore_TypesTool.TypesTool): """ EXPERIMENTAL - DO NOT USE THIS CLASS BESIDES R&D """ - id = 'portal_types' meta_type = 'ERP5 Types Tool' portal_type = 'Types Tool' allowed_types = () + security = ClassSecurityInfo() + security.declareObjectProtected(Permissions.AccessContentsInformation) + def getTypeInfo(self, *args): if not len(args): @@ -55,3 +63,75 @@ class TypesTool(BaseTool, CMFCoreTypesTool): return ob else: return None + +# Compatibility code to access old "ERP5 Role Information" objects. +OldRoleInformation = imp.new_module('Products.ERP5Type.RoleInformation') +sys.modules[OldRoleInformation.__name__] = OldRoleInformation +from OFS.SimpleItem import SimpleItem +OldRoleInformation.RoleInformation = SimpleItem + +class OldTypesTool(OFSFolder): + + id = 'cmf_portal_types' + + def _migratePortalType(self, types_tool, old_type): + if old_type.__class__ is not ERP5TypeInformation: + LOG('OldTypesTool._migratePortalType', WARNING, + "Can't convert %r (meta_type is %r)." + % (old_type, old_type.meta_type)) + return + new_type = ERP5TypeInformation(old_type.id, uid=None) + types_tool._setObject(new_type.id, new_type, set_owner=0) + new_type = types_tool[new_type.id] + for k, v in old_type.__dict__.iteritems(): + if k == '_actions': + for action in v: + new_type._importOldAction(action) + elif k == '_roles': + for role in v: + new_type._importRole(role.__getstate__()) + else: + setattr(new_type, k, v) + + def _migrateTypesTool(self, parent): + # 'parent' has no acquisition wrapper so migration must be done without + # access to physical root. All activities are created with no leading '/' + # in the path. + LOG('OldTypesTool', WARNING, "Converting portal_types...") + for object_info in parent._objects: + if object_info['id'] == TypesTool.id: + break + types_tool = TypesTool() + types_tool.__ac_local_roles__ = self.__ac_local_roles__.copy() + try: + setattr(parent, self.id, self) + object_info['id'] = self.id + del parent.portal_types + parent._setObject(TypesTool.id, types_tool, set_owner=0) + types_tool = types_tool.__of__(parent) + if not parent.portal_categories.hasObject('action_type'): + # Required to generate ActionInformation.getActionType accessor. + from Products.ERP5Type.Document.BaseCategory import BaseCategory + action_type = BaseCategory('action_type') + action_type.uid = None + parent.portal_categories._setObject(action_type.id, action_type) + for type_info in self.objectValues(): + self._migratePortalType(types_tool, type_info) + types_tool.activate().Base_setDefaultSecurity() + except: + transaction.abort() + LOG('OldTypesTool', PANIC, 'Could not convert portal_types: ', + error=sys.exc_info()) + raise # XXX The exception may be hidden by acquisition code + # (None returned instead) + else: + LOG('OldTypesTool', WARNING, "... portal_types converted.") + return types_tool + + def __of__(self, parent): + base_self = aq_base(self) # Is it required ? + if parent.__dict__[TypesTool.id] is not base_self: + return OFSFolder.__of__(self, parent) + return UnrestrictedMethod(base_self._migrateTypesTool)(parent) + +CMFCore_TypesTool.TypesTool = OldTypesTool diff --git a/product/ERP5Type/TranslationProviderBase.py b/product/ERP5Type/TranslationProviderBase.py index 291c900ba1..1f38276607 100644 --- a/product/ERP5Type/TranslationProviderBase.py +++ b/product/ERP5Type/TranslationProviderBase.py @@ -17,16 +17,24 @@ from AccessControl import ClassSecurityInfo from Products.CMFCore.Expression import Expression from Products.ERP5Type import _dtmldir -from Permissions import ManagePortal +from Permissions import AccessContentsInformation, ManagePortal, ModifyPortalContent from OFS.SimpleItem import SimpleItem from Products.ERP5Type import PropertySheet -from Acquisition import aq_base +from Acquisition import aq_base, Implicit import Products from zLOG import LOG -_MARKER = {} + +class PropertyDomainDict(Implicit): + def _aq_dynamic(self, attr): + type_info = self.aq_parent + try: + return type_info._property_domain_dict[attr].__of__(type_info) + except KeyError: + return None + class TranslationProviderBase: """ @@ -86,33 +94,30 @@ class TranslationProviderBase: property_domain_dict[prop_id] = TranslationInformation(prop_id, domain_name) original_property_domain_dict = getattr(aq_base(self), - '_property_domain_dict', _MARKER) + '_property_domain_dict', None) original_property_domain_keys = original_property_domain_dict.keys() property_domain_keys = property_domain_dict.keys() property_domain_keys.sort() original_property_domain_keys.sort() # Only update if required in order to prevent ZODB from growing - if original_property_domain_dict is _MARKER or\ + if original_property_domain_dict is None or\ property_domain_keys != original_property_domain_keys: # Update existing dict property_domain_dict.update(original_property_domain_dict) # And store self._property_domain_dict = property_domain_dict - - security.declarePrivate( 'getPropertyTranslationDomainDict' ) - def getPropertyTranslationDomainDict(self,): + security.declareProtected(AccessContentsInformation, 'getPropertyTranslationDomainDict') + def getPropertyTranslationDomainDict(self): """ Return all the translation defined by a provider. """ - property_domain_dict = getattr(aq_base(self), - '_property_domain_dict', _MARKER) # initialize if needed - if property_domain_dict is _MARKER: + if getattr(self, '_property_domain_dict', None) is None: self.updateInitialPropertyTranslationDomainDict() - return self._property_domain_dict - return property_domain_dict + return dict((k, v.__of__(self)) + for k, v in self._property_domain_dict.iteritems()) # # ZMI methods @@ -167,19 +172,22 @@ class TranslationProviderBase: return self.manage_editTranslationForm(REQUEST, manage_tabs_message= 'Translations Updated.') + security.declareProtected(ModifyPortalContent, 'property_domain_dict') + @property + def property_domain_dict(self): + return PropertyDomainDict().__of__(self) InitializeClass(TranslationProviderBase) -class TranslationInformation (SimpleItem): +class TranslationInformation(SimpleItem): """ This class represent the association between a property of a portal type and the domain name used to translate this property """ - security = ClassSecurityInfo() + security.declareObjectProtected(AccessContentsInformation) - security.declarePrivate( '__init__') def __init__(self, property_name='', domain_name=None): """ Set up an instance @@ -187,26 +195,22 @@ class TranslationInformation (SimpleItem): self.property_name = property_name self.domain_name = domain_name - security.declarePrivate('getPropertyName') + security.declareProtected(AccessContentsInformation, 'getPropertyName') def getPropertyName(self): """ Return the property name """ return self.property_name - security.declarePrivate('getDomainName') + security.declareProtected(AccessContentsInformation, 'getDomainName') def getDomainName(self): """ Return the domain name """ return self.domain_name - security.declarePrivate('setDomainName') - def setDomainName(self, domain_name='erp5_ui'): - """ - Set the domain name value - """ - self.domain_name = domain_name - - + security.declareProtected(ModifyPortalContent, 'edit') + def edit(self, **kw): + self.__dict__.update(kw) + InitializeClass(TranslationInformation) diff --git a/product/ERP5Type/XMLObject.py b/product/ERP5Type/XMLObject.py index c960245c52..8e8bae8a99 100644 --- a/product/ERP5Type/XMLObject.py +++ b/product/ERP5Type/XMLObject.py @@ -76,19 +76,11 @@ class XMLObject( Folder ): ) } - # Declarative properties - property_sheets = ( PropertySheet.Base - , PropertySheet.XMLObject - , PropertySheet.SimpleItem - , PropertySheet.Folder - ) - # Declarative security security = ClassSecurityInfo() # Declarative properties - property_sheets = ( PropertySheet.Base - , PropertySheet.XMLObject ) + property_sheets = ( PropertySheet.XMLObject, ) # Inheritance fixes security.declareProtected( Permissions.ModifyPortalContent, 'setDescription' ) diff --git a/product/ERP5Type/__init__.py b/product/ERP5Type/__init__.py index 96705f7aac..b6bc766023 100644 --- a/product/ERP5Type/__init__.py +++ b/product/ERP5Type/__init__.py @@ -30,7 +30,7 @@ All ERP5 classes derive from ERP5Type """ # Switch(es) for ongoing development which require single code base -USE_BASE_TYPE = False +USE_BASE_TYPE = True #False USE_INTERACTOR = False # Update ERP5 Globals diff --git a/product/ERP5Type/patches/ActionInformation.py b/product/ERP5Type/patches/ActionInformation.py index 039d3e7984..e53f5ceda3 100644 --- a/product/ERP5Type/patches/ActionInformation.py +++ b/product/ERP5Type/patches/ActionInformation.py @@ -99,7 +99,6 @@ if 1: self.icon = Expression( expr ) return expr - security.declarePrivate( 'setIconExpression' ) def setIconExpression(self, icon): if icon and type( icon ) is StringType: @@ -151,7 +150,6 @@ if 1: 'icon': self.getIconExpression(), 'priority': self.getPriority() } - ActionInformation.__init__ = __init__ ActionInformation.getAction = getAction ActionInformation._getIconObject = _getIconObject @@ -171,14 +169,18 @@ try: def __init__(self, action, ec): original_init(self, action, ec) if not isinstance(action, dict): - if self.data['icon']: + # ivan + if self.data.get('icon', None) is not None: self.data['icon'] = self._getIcon self._lazy_keys.append('icon') else: self.data['icon'] = '' def _getIcon(self): - return self._action._getIconObject()(self._ec) + # ivan + icon_expression_obj = self._action._getIconObject() + if icon_expression_obj not in ('', None): + return icon_expression_obj(self._ec) ActionInfo.__init__ = __init__ ActionInfo._getIcon = _getIcon diff --git a/product/ERP5Type/patches/CMFCoreUtils.py b/product/ERP5Type/patches/CMFCoreUtils.py index 03e8c9bbe6..0e7607d86c 100644 --- a/product/ERP5Type/patches/CMFCoreUtils.py +++ b/product/ERP5Type/patches/CMFCoreUtils.py @@ -39,15 +39,17 @@ def CMFCoreUtils_getViewFor(obj, view='view'): ti = obj.getTypeInfo() if ti is not None: - + view_id = ti._normalizeActionId(view) context = getActionContext( obj ) test_context = getExprContext(obj, obj) # Patch 1: mimic _listActionInfos in ActionsTool actions = ti.listActions() for action in actions: - if action.getId() == view or action.getCategory().endswith('_%s' % view): + # portal_types hack + action_type = action.getActionType() + if action.getId() == view_id or action_type.endswith('_%s' % view): # Patch 2: consider anything ending by _view if _verifyActionPermissions(obj, action): - if action.visible and action.testCondition(test_context): # Patch 3: test actions + if action.isVisible() and action.testCondition(test_context): # Patch 3: test actions target = action.action(context).strip() if target.startswith('/'): target = target[1:] @@ -64,7 +66,6 @@ def CMFCoreUtils_getViewFor(obj, view='view'): target = target[1:] __traceback_info__ = ( ti.getId(), target ) return obj.restrictedTraverse( target ) - raise AccessControl_Unauthorized( 'No accessible views available for ' '%s' % '/'.join( obj.getPhysicalPath() ) ) else: diff --git a/product/ERP5Type/tests/ERP5TypeTestCase.py b/product/ERP5Type/tests/ERP5TypeTestCase.py index 602dcd41c2..f3abc399ea 100644 --- a/product/ERP5Type/tests/ERP5TypeTestCase.py +++ b/product/ERP5Type/tests/ERP5TypeTestCase.py @@ -319,7 +319,8 @@ class ERP5TypeTestCase(PortalTestCase): erp5_load_data_fs = int(os.environ.get('erp5_load_data_fs', 0)) if update_business_templates and erp5_load_data_fs: update_only = os.environ.get('update_only', None) - template_list = (erp5_catalog_storage, 'erp5_core', 'erp5_xhtml_style') + tuple(template_list) + # XXX erp5_type BT will be merged into erp5_core later. + template_list = (erp5_catalog_storage, 'erp5_core', 'erp5_type', 'erp5_xhtml_style') + tuple(template_list) # Update only specified business templates, regular expression # can be used. if update_only is not None: diff --git a/product/ERP5Type/tests/testERP5Type.py b/product/ERP5Type/tests/testERP5Type.py index 26b5ded830..7ca4e5bbd7 100644 --- a/product/ERP5Type/tests/testERP5Type.py +++ b/product/ERP5Type/tests/testERP5Type.py @@ -1371,16 +1371,16 @@ class TestPropertySheet: type_tool = self.getTypeTool() portal_type_object = type_tool['Organisation'] def addCustomAction(name,condition): - portal_type_object.addAction( - id = name - , name = 'Become Geek' - , action = 'become_geek_action' - , condition = condition - , permission = ('View', ) - , category = 'object_action' - , visible = 1 - , priority = 2.0 ) - addCustomAction('action1','python: object.getDescription()=="foo"') + portal_type_object.newContent(portal_type='Action Information', + id = name, + title = 'Become Geek', + action = 'string:${object_url}/become_geek_action', + condition = condition, + action_permission = 'View', + action_type = 'object_action', + visible = 1, + float_index = 2.0) + addCustomAction('action1','python: here.getDescription()=="foo"') obj = self.getOrganisationModule().newContent(portal_type='Organisation') action_tool = self.getPortal().portal_actions actions = action_tool.listFilteredActionsFor(obj) @@ -2178,8 +2178,8 @@ class TestPropertySheet: doc = self.portal.person_module.newContent(portal_type='Person') ti = self.getTypesTool()['Person'] self.assertFalse(hasattr(doc, 'getDestination')) - ti.manage_editProperties(dict(base_category_list= - list(ti.base_category_list) + ['destination'])) + ti.manage_editProperties(dict(type_base_category_list= + ti.getTypeBaseCategoryList(()) + ['destination'])) self.assertTrue(hasattr(doc, 'getDestination')) def test_aq_reset_on_workflow_chain_change(self): diff --git a/product/zope.patch b/product/zope.patch new file mode 100644 index 0000000000..4a228af49b --- /dev/null +++ b/product/zope.patch @@ -0,0 +1,11 @@ +--- Products/CMFCore/ActionsTool.py ++++ Products/CMFCore/ActionsTool.py +@@ -159,7 +159,7 @@ + actions.extend( self._listActionInfos(provider, object) ) + + # Include actions from object. +- if object is not None: ++ if 0: #object is not None: + base = aq_base(object) + if IActionProvider.isImplementedBy(base): + actions.extend( object.listActionInfos(object=object) ) -- 2.30.9