• Julien Muchembled's avatar
    Automatic ERP5 Site creation · 6bb4c56e
    Julien Muchembled authored
    If the following configuration section is present:
    
    <product-config initsite>
      owner <user-id>
      id <site-id>
      <key> <value>
    </product-config>
    
    the ERP5 product automatically creates a site at startup if there's none.
    This is done by "extending" AppInitializer (OFS.Application).
    
    <key> is any string parameter accepted by manage_addERP5Site, including new
    ones to configure Cloudooo and install bt5. Cloudooo is often required by the
    configurator: apart from that, it does not deserve a field on the addERP5Site
    form.
    
    This deprecates erp5_promise, at least in its current form, for several reasons:
    
    - Since 7fe14b20, alarms aren't run often
      enough.
    
    - For the configuration of external services like memcached, using an alarm or
      anything not instantaneous to update them is wrong because it poses a risk to
      connect to wrong instances. erp5_promise does not handle the catalog because
      it could not and we have another mechanism for that (userhosts), so let's
      handle other services like the catalog.
    
    - The list of bt5 to have installed is only useful at site creation:
      - either (usually) to install configurators, which in turn decide of the list
        to have installed,
      - or a value provided the user, but SlapOS parameters aren't a place to
        duplicate the ERP5 UI.
    
    - With previous commit, the list of bt5 repositories does not depend anymore
      on the location of the software built by SlapOS, and we also don't want to
      duplicate the UI, so the only case where it would remain useful is when the
      list is changed by the software itself, which almost never happens.
      We'll reimplement the promise as a constraint when necessary.
    
    We end up with the minimum functionality to install a configurator
    automatically, and the user does not have to wait anymore for an alarm to be
    triggered.
    
    The default site preference in erp5_core does not come anymore with a default
    value that was specific to SlapOS. It was not enough for our needs and such
    setting should anyway go in a system preference.
    6bb4c56e
Name
Last commit
Last update
..
addERP5Site.dtml Loading commit data...
addPortal.dtml Loading commit data...
addPythonScriptThroughZMIForm.dtml Loading commit data...
explainAlarmTool.dtml Loading commit data...
explainCatalogTool.dtml Loading commit data...
explainContributionTool.dtml Loading commit data...
explainDeliveryTool.dtml Loading commit data...
explainDomainTool.dtml Loading commit data...
explainIdTool.dtml Loading commit data...
explainIntegrationTool.dtml Loading commit data...
explainIntrospectionTool.dtml Loading commit data...
explainNotificationTool.dtml Loading commit data...
explainOrderTool.dtml Loading commit data...
explainPasswordTool.dtml Loading commit data...
explainRouteTool.dtml Loading commit data...
explainRuleTool.dtml Loading commit data...
explainSegmentTool.dtml Loading commit data...
explainSimulationTool.dtml Loading commit data...
explainSolverTool.dtml Loading commit data...
explainTemplateTool.dtml Loading commit data...
explainTestTool.dtml Loading commit data...
explainTrashTool.dtml Loading commit data...
interaction_properties.dtml Loading commit data...
interaction_variables.dtml Loading commit data...
interactions.dtml Loading commit data...
manageAlarmNode.dtml Loading commit data...
properties.dtml Loading commit data...