• Nicolas Dumazet's avatar
    The guard is already checked once using isWorkflowMethodSupported, and · ef56caad
    Nicolas Dumazet authored
    notify* methods are never called if the guard evaluates to False. This
    check looks costly and useless.
    
    
    The only possibility (?) would be that one of your Interaction workflow guards
    checks kw['workflow_method_args'] and returns a different result depending
    on when _checkTransitionGuard is called.
    That seems like a tricky (wrong? unlikely?) usecase.
    If you are in this case, let me know, and if needed I'll engineer a fast guard
    check that is only ever checked once.
    
    
    git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42725 20353a03-c40f-0410-a6d1-a30d3c3de9de
    ef56caad
InteractionWorkflow.py 11.7 KB