From 680ce64d199f9b65931c8e880aafb4ec9c348260 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine <arnaud.fontaine@nexedi.com> Date: Tue, 25 Jun 2013 20:59:38 +0900 Subject: [PATCH] ZODB Components: erp5_core_component bt5 was only used for the prototype. --- bt5/erp5_core_component/bt/comment | 20 ------------------- bt5/erp5_core_component/bt/copyright_list | 1 - bt5/erp5_core_component/bt/dependency_list | 1 - bt5/erp5_core_component/bt/description | 1 - bt5/erp5_core_component/bt/license | 1 - bt5/erp5_core_component/bt/maintainer_list | 2 -- bt5/erp5_core_component/bt/revision | 1 - .../bt/template_format_version | 1 - bt5/erp5_core_component/bt/title | 1 - bt5/erp5_core_component/bt/version | 1 - product/ERP5/tests/testBusinessTemplate.py | 5 ----- product/ERP5Type/dynamic/component_package.py | 2 ++ .../tests/testERP5NamingConvention.py | 2 +- 13 files changed, 3 insertions(+), 36 deletions(-) delete mode 100644 bt5/erp5_core_component/bt/comment delete mode 100644 bt5/erp5_core_component/bt/copyright_list delete mode 100644 bt5/erp5_core_component/bt/dependency_list delete mode 100644 bt5/erp5_core_component/bt/description delete mode 100644 bt5/erp5_core_component/bt/license delete mode 100644 bt5/erp5_core_component/bt/maintainer_list delete mode 100644 bt5/erp5_core_component/bt/revision delete mode 100644 bt5/erp5_core_component/bt/template_format_version delete mode 100644 bt5/erp5_core_component/bt/title delete mode 100644 bt5/erp5_core_component/bt/version diff --git a/bt5/erp5_core_component/bt/comment b/bt5/erp5_core_component/bt/comment deleted file mode 100644 index b33f4ad849..0000000000 --- a/bt5/erp5_core_component/bt/comment +++ /dev/null @@ -1,20 +0,0 @@ -A prototype of pure ZODB source code management for ERP5 (mostly required for Cloud deployments and 24/7 operation). - -Migration idea: - -Anything which looks like source code in ERP5 (HTML, py, etc.) should be serialized automatically with 2 forks (Ã la MacOS 6/7/8/9). One fork represents the source code (ex. Order.py) and another fork represents extra metadata which is managed by ZODB (ex. Order.xml). - -ERP5 source code is thus moved (in the sens of git) from Products/ERP5/Document/Order.py to bt5/erp5_core_component/.../Order.py. No history is thus lost. It also leads to a quite simple structure since everything which was in Products is now moved to bt5 without any dependency problem. - -In the end, only ERP5Type remains. Everything else in ERP5 can be hot updated with nice transactional feature. - -First we have to start with Extensions and Documents (present in bt5). Then we should add all files present in Productrs/*/Document and Productrs/*/Tool. Then Mixins and Interfaces. At the end, Accessors. The core of ERP5. - -The core of ERP5 will eventually move from ERP5Type to a python library. A wrapper product (ERP5Site) main remain though for compatibility with Zope 2.X. - -How to develop in this environment: -- all coding, debuging and testing should be handled TTW with a good AJAX editor or with external editor. The ERP5 runtime is supposed to be located remotely on the Cloud, no longer on a laptop or local server -- users of kate, emacs, vi, etc. should remote mount ZODB to edit text files through WebDAV. FUSE/DAVS works well enough these days for this purpose - -git integration -- this topic is still under discussion since ZODB plays here the role diff --git a/bt5/erp5_core_component/bt/copyright_list b/bt5/erp5_core_component/bt/copyright_list deleted file mode 100644 index 833de3039f..0000000000 --- a/bt5/erp5_core_component/bt/copyright_list +++ /dev/null @@ -1 +0,0 @@ -Nexedi SA \ No newline at end of file diff --git a/bt5/erp5_core_component/bt/dependency_list b/bt5/erp5_core_component/bt/dependency_list deleted file mode 100644 index d0ca7aef23..0000000000 --- a/bt5/erp5_core_component/bt/dependency_list +++ /dev/null @@ -1 +0,0 @@ -erp5_core \ No newline at end of file diff --git a/bt5/erp5_core_component/bt/description b/bt5/erp5_core_component/bt/description deleted file mode 100644 index cc9902aea1..0000000000 --- a/bt5/erp5_core_component/bt/description +++ /dev/null @@ -1 +0,0 @@ -ZODB based component system for ERP5. \ No newline at end of file diff --git a/bt5/erp5_core_component/bt/license b/bt5/erp5_core_component/bt/license deleted file mode 100644 index 3a3e12bcad..0000000000 --- a/bt5/erp5_core_component/bt/license +++ /dev/null @@ -1 +0,0 @@ -GPL \ No newline at end of file diff --git a/bt5/erp5_core_component/bt/maintainer_list b/bt5/erp5_core_component/bt/maintainer_list deleted file mode 100644 index 4565a022a4..0000000000 --- a/bt5/erp5_core_component/bt/maintainer_list +++ /dev/null @@ -1,2 +0,0 @@ -Arnaud -jp \ No newline at end of file diff --git a/bt5/erp5_core_component/bt/revision b/bt5/erp5_core_component/bt/revision deleted file mode 100644 index d8263ee986..0000000000 --- a/bt5/erp5_core_component/bt/revision +++ /dev/null @@ -1 +0,0 @@ -2 \ No newline at end of file diff --git a/bt5/erp5_core_component/bt/template_format_version b/bt5/erp5_core_component/bt/template_format_version deleted file mode 100644 index 56a6051ca2..0000000000 --- a/bt5/erp5_core_component/bt/template_format_version +++ /dev/null @@ -1 +0,0 @@ -1 \ No newline at end of file diff --git a/bt5/erp5_core_component/bt/title b/bt5/erp5_core_component/bt/title deleted file mode 100644 index e37d3494de..0000000000 --- a/bt5/erp5_core_component/bt/title +++ /dev/null @@ -1 +0,0 @@ -erp5_core_component \ No newline at end of file diff --git a/bt5/erp5_core_component/bt/version b/bt5/erp5_core_component/bt/version deleted file mode 100644 index ceab6e11ec..0000000000 --- a/bt5/erp5_core_component/bt/version +++ /dev/null @@ -1 +0,0 @@ -0.1 \ No newline at end of file diff --git a/product/ERP5/tests/testBusinessTemplate.py b/product/ERP5/tests/testBusinessTemplate.py index 3428d89989..87debb5523 100644 --- a/product/ERP5/tests/testBusinessTemplate.py +++ b/product/ERP5/tests/testBusinessTemplate.py @@ -7126,11 +7126,6 @@ class TestDocumentTemplateItem(BusinessTemplateMixin): sequence_list.addSequenceString(sequence_string) sequence_list.play(self) - # Specific to ZODB Components *only* - def getBusinessTemplateList(self): - return (super(TestDocumentTemplateItem, self).getBusinessTemplateList() + - ('erp5_core_component',)) - component_module = DocumentComponent._getDynamicModuleNamespace() component_portal_type = DocumentComponent.portal_type diff --git a/product/ERP5Type/dynamic/component_package.py b/product/ERP5Type/dynamic/component_package.py index aec1bafaf0..bdc41a820b 100644 --- a/product/ERP5Type/dynamic/component_package.py +++ b/product/ERP5Type/dynamic/component_package.py @@ -98,6 +98,8 @@ class ComponentDynamicPackage(ModuleType): component_tool = portal.portal_components # When installing ERP5 site, erp5_core_components has not been installed # yet, thus this will obviously failed... + # + #Â XXX-arnau: Is this needed as it is now done in synchronizeDynamicModules? except AttributeError: return {} diff --git a/product/ERP5Type/tests/testERP5NamingConvention.py b/product/ERP5Type/tests/testERP5NamingConvention.py index dbff6a1abb..803b1c6baa 100644 --- a/product/ERP5Type/tests/testERP5NamingConvention.py +++ b/product/ERP5Type/tests/testERP5NamingConvention.py @@ -56,7 +56,7 @@ class TestNamingConvention(ERP5TypeTestCase): 'erp5_trade_proxy_field_legacy', 'erp5_trade_ui_test', 'erp5_ace_editor', 'erp5_authentication_policy', 'erp5_bearer_token', 'erp5_bespin', 'erp5_certificate_authority', 'erp5_code_mirror', 'erp5_computer_immobilisation', - 'erp5_core_component', 'erp5_credential_oauth2', 'erp5_data_protection', 'erp5_data_set', + 'erp5_credential_oauth2', 'erp5_data_protection', 'erp5_data_set', 'erp5_development_wizard', 'erp5_dhtml_style', 'erp5_direct_debit_payment', 'erp5_rss_style', 'erp5_discussion', 'erp5_tax_resource', 'erp5_discount_resource', 'erp5_email_reader', 'erp5_external_account', 'erp5_forum_tutorial', -- GitLab