1. 27 Oct, 2016 4 commits
    • iv's avatar
      ERP5Workflow: perf: cleanup of doActionFor · c589e844
      iv authored
      Before this fix, checking that the action was possible from the
      current state was not done correctly (isActionSupported was not
      used to set the transition).
      
      Also avoid to check if transition is in getTransitionValueList:
      it is useless (transition *is* on of the workflow or is None!)
      and calls the expensive 'objectValues' method
      c589e844
    • iv's avatar
      ERP5Workflow: perf: support parameter 'state' in isActionSupported · 484fd839
      iv authored
      This allows to avoid the call of _getWorkflowStateOf if it was already
      done before, and so reduce the number of calls of '_getOb' method.
      484fd839
    • iv's avatar
      ERP5Workflow: use get...List methods · 6f7223dd
      iv authored
      6f7223dd
    • iv's avatar
      ERP5Workflow: perf: avoid expensive operations in getattr · b97ae55e
      iv authored
      __getattr__ was overriden in order to be able to call the script
      using its reference (not prefixed by script_) from another workflow
      script (see testTradeReports for example)
      
      the problem is that it was doing a lot of useless getattr (each time,
      it was checking for script_foo, even if foo is a transition, state, ...)
      
      we now just change the context given to the script by adding foo
      for script_foo to the context dict
      b97ae55e
  2. 24 Oct, 2016 1 commit
  3. 21 Oct, 2016 1 commit
  4. 19 Oct, 2016 1 commit
  5. 18 Oct, 2016 4 commits
  6. 17 Oct, 2016 2 commits
  7. 14 Oct, 2016 3 commits
  8. 12 Oct, 2016 1 commit
  9. 11 Oct, 2016 5 commits
  10. 10 Oct, 2016 4 commits
  11. 07 Oct, 2016 8 commits
  12. 05 Oct, 2016 5 commits
  13. 04 Oct, 2016 1 commit