Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
slapos slapos
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 122
    • Merge requests 122
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slaposslapos
  • Merge requests
  • !217

Merged
Created Aug 30, 2017 by Julien Muchembled@jmOwner

erp5: by default, create site automatically

  • Overview 6
  • Commits 1
  • Changes 11

Since erp5@6c6b77a0, this is now a safe operation, in that a mistake while moving databases won't result in a loss of the catalog if the zodb is empty.

This new implementation relies on erp5@6bb4c56e, which means that zopes decide on their own to create the site at startup if there's none, and the 'erp5-bootstrap' service is removed from the root partition.

Contrary to what was planned, it remains possible to list several bt5 to install. In itself, it's trivial to restrict to a single bt5, to prevent people from overusing this feature:

--- a/product/ERP5/ERP5Site.py
+++ b/product/ERP5/ERP5Site.py
@@ -1889,7 +1889,7 @@ def create(self,
         bt5_repository_url.split())
       if bt5:
         p.portal_templates.activate(after_method_id="immediateReindexObject",
-          ).upgradeSite(bt5.split(), update_catalog=True)
+          ).upgradeSite([bt5], update_catalog=True)
 
     return p
 
--- a/product/ERP5/dtml/addERP5Site.dtml
+++ b/product/ERP5/dtml/addERP5Site.dtml
@@ -110,7 +110,7 @@ label {
 
   <fieldset>
     <legend class="form-title">Business Templates</legend>
-    <div title="Business Template names, or (TODO) URL pointing to a file in BT5 or ZEXP format.">
+    <div title="Business Template name, or (TODO) URL pointing to a file in BT5 or ZEXP format.">
       <label class="form-label" for="bt5">Install BT5</label>
       <input class="form-element" name="bt5" id="bt5" type="text" size="60"/>
     </div>

However, applying it now would break the default behaviour, which consists in installing many configurators, plus erp5_data_notebook in the case of wendelin. This must be done in a separate commit, after a review of BT dependencies.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: automatic-erp5-site-creation
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7