doc/book/devrepo/migration.rst
changeset 12733 d242a1692907
parent 12196 b6b87c36beed
child 12742 ca698656251c
equal deleted inserted replaced
12732:7e6aafa089d2 12733:d242a1692907
   180 
   180 
   181 The following functions for workflow creation are available in `repository`
   181 The following functions for workflow creation are available in `repository`
   182 scripts:
   182 scripts:
   183 
   183 
   184 * `add_workflow(label, workflowof, initial=False, commit=False, **kwargs)`, adds a new workflow
   184 * `add_workflow(label, workflowof, initial=False, commit=False, **kwargs)`, adds a new workflow
   185   for a given type(s)
   185   for a given type(s),
       
   186 * `get_workflow_for(etype)`, return the workflow for the given entity type,
       
   187 * `transition_by_name(self, trname)`, method of cubicweb.entities.wfobjs.Workflow instance
       
   188   that returns the transition named `trname`,
       
   189 * `set_permissions(self, requiredgroups=(), conditions=(), reset=True)` method of
       
   190   cubicweb.entities.wfobjs.Transition instance that sets or adds (if `reset` is False)
       
   191   groups and conditions for this transition.
   186 
   192 
   187 You can find more details about workflows in the chapter :ref:`Workflow` .
   193 You can find more details about workflows in the chapter :ref:`Workflow` .
   188 
   194 
   189 Configuration migration
   195 Configuration migration
   190 -----------------------
   196 -----------------------