• Arnaud Fontaine's avatar
    ERP5Workflow: Worklist is a Predicate. · 774ef6ef
    Arnaud Fontaine authored
    This commit is going to be squashed into:
      ERP5Workflow: DC Workflows are now ERP5 objects (!1378).
      ERP5Workflow: Migrate all DCWorkflows to ERP5 objects (!1378).
    
    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): No more ad-hoc check_roles parameter on checkGuard().
      * Any Workflow Variable with for_catalog == 1.
      * Introduce getIdentityCriterionDict()
    
    Also:
      * Remove "ad-hoc" matched* properties: This sounds like a premature optimization.
      * No need for Worklist Variable as these use "normal" Workflow Variables (where for_catalog == 1).
    774ef6ef
test.erp5.testDomainTool.py 25.4 KB