An error occurred fetching the project authors.
  1. 24 Feb, 2022 1 commit
    • Jérome Perrin's avatar
      configurator: fix some BusinessConfiguration methods · d4a9d1c3
      Jérome Perrin authored
      BusinessConfiguration have a resource category, but it's the workflow,
      it's not really a resource, so some APIs from the base Amount class are
      not available. Because they have no meaning on BusinessConfiguration
      anyway, define the broken APIs to return nothing.
      
      This fixes errors trying to use check_consistency alarm on Business
      Configurations.
      d4a9d1c3
  2. 23 Apr, 2021 1 commit
    • Arnaud Fontaine's avatar
      ERP5Workflow: DC Workflows are now ERP5 objects (!1378). · df85ef46
      Arnaud Fontaine authored
      This also moves all Configurator Workflows in workflow_module to portal_workflow
      (workflow_module was an implementation of Workflows based on ERP5 objects and
      not using DCWorkflow code).
      
      * Workflows are now defined on on portal_workflow._chains_by_type anymore but,
        as everything else, on the Portal Type itself.
      * portal_workflow can contain and work at the same time with legacy and new
        Workflows (ERP5Type/patches/DCWorkflow.py monkey-patching DCWorkflow classes
        to provide the same API).
      * Existing Workflow Scripts should work as they are and the code can be updated
        later on to take advantage of the new API:
        + With legacy implementation Workflow {Scripts,Transitions,Worklists,States}
          were in a Folder ({scripts,transitions,worklists,states} attribute) but
          all of these are now in the Workflow itself and their IDs are prefixed
          (PropertySheet-style), for example `script_`. Legacy attributes are
          provided in new implementation to call the new API.
        + When calling a Workflow Script, `container` was bound to its parent, namely
          WF.scripts (Folder) and a Workflow Script could call another. Now `container`
          is bound to the WF itself and Workflow Scripts are in a Workflow directly.
          New implementation `scripts` attribute handle such use case.
        + Override portal_workflow.__getattr__ so that a Workflow Script can call
          another one without prefix.
      * Worklist are Predicate: Worklist filter objects based on given criterions and
        thus it makes more sense for a Worklist to be a Predicate (albeit a Predicate
        with only Identity Criterion and nothing else).
        + Criterion Properties:
          * state_variable.
          * local_roles (SECURITY_PARAMETER_ID).
          * Any Workflow Variables with for_catalog == 1.
      
      erp5_performance_test:testWorkflowPerformance were ran to compare DCWorkflow
      and ERP5Workflow implementations and it seems to be about 4% slower with the
      new implementation (legacy: 7.547, 7.593, 7.618, 7.59, 7.514 and new: 7.842,
      7.723, 7.902, 7.837, 7.875).
      
      Work done by Wenjie Zheng, Isabelle Vallet, Sebastien Robin and myself.
      df85ef46
  3. 19 Mar, 2020 1 commit
  4. 09 Mar, 2020 1 commit
  5. 04 Jul, 2018 1 commit
    • Vincent Pelletier's avatar
      all: Remove recursiveImmediateReindexObject, and references to it. · c0b284be
      Vincent Pelletier authored
      This method does not belong to Folder (nor Base, even as an alias), as
      it recurses wihout any limit in a tree whose node count is unknown.
      Such generic recursion should either be deferred (split in multiple
      transactions, each processing a limited chunk of the tree) or not be
      recursive (which of course depends on the need).
      There is a single caller left (constructInstance) where the subtree size
      is assumed to be reasonable, as it was constructed inside current
      transaction. So essentially rename this method so it is only used in such
      conditions.
      c0b284be
  6. 16 Mar, 2014 1 commit
  7. 20 Dec, 2013 1 commit
  8. 15 Oct, 2012 1 commit
  9. 11 Oct, 2012 1 commit
  10. 08 Mar, 2012 4 commits
    • Rafael Monnerat's avatar
      Set Configuraton Save default title · c0e831b4
      Rafael Monnerat authored
      c0e831b4
    • Rafael Monnerat's avatar
      e1394fc6
    • Rafael Monnerat's avatar
      Get Description and Image from Workflow itself. · 3e9163f6
      Rafael Monnerat authored
      Instead get Informations from the Business Configuration, get information directly from the Workflow Document. This easly creates a identity if the workflow and also simplify the process of Pré-configuration.
      3e9163f6
    • Rafael Monnerat's avatar
      Make build faster · 2689e6b1
      Rafael Monnerat authored
       - Check if the bt5 is already installed, this is not a change of behaviour, just a performance improvement
       - Cache getInstalledBusinessTemplateTitleList, because it doesn't change during the build and it is a bit time consuming do it so often.
       - Use activate and install_dependency, this can make bt5 list shorter and make core relies on BT5 definitions.
       - Build should wait for updateBusinessTemplateFromUrl
       - Automatic Dependence handling updateBusinessTemplateFromUrl is invoked using activities.
      2689e6b1
  11. 01 Aug, 2011 1 commit
  12. 21 Jul, 2011 3 commits
  13. 21 Jun, 2011 1 commit
  14. 24 May, 2011 1 commit
  15. 07 Apr, 2011 1 commit
  16. 05 Apr, 2011 3 commits
  17. 31 Mar, 2011 2 commits
  18. 18 Mar, 2011 1 commit
  19. 17 Mar, 2011 2 commits
  20. 15 Mar, 2011 1 commit
  21. 07 Jan, 2011 3 commits
  22. 28 Dec, 2010 1 commit
  23. 22 Dec, 2010 1 commit