adhocracy_core.sheets.workflow module¶
Sheets to assign workflows to resources and change states.
-
interface
ISample[source]¶ Extends:
adhocracy_core.interfaces.ISheetSheet with the sample workflow.
-
class
StateName(*arg, **kw)[source]¶ Bases:
adhocracy_core.schema.SingleLineWorkflow state name.
Possible values are set by the given workflow binding.
-
class
StateData(*arg, **kw)[source]¶ Bases:
adhocracy_core.schema.MappingSchemaResource specific data for a workflow state.
-
missing= <colander._drop object>¶
-
-
class
StateDataList(*args, **kw)[source]¶ Bases:
adhocracy_core.schema.SequenceSchemaList of StateData.
-
deferred_workflow_validator(node: adhocracy_core.schema.SchemaNode, kw: dict) → <built-in function callable>[source]¶ Deferred workflow name validator.
-
class
Workflow(*arg, **kw)[source]¶ Bases:
adhocracy_core.schema.SingleLineSchemaNode for workflow types.
Default value requires the schema binding workflow.
-
class
WorkflowAssignmentSchema(*arg, **kw)[source]¶ Bases:
adhocracy_core.schema.MappingSchemaWorkflow assignment sheet data structure.
-
workflow= None¶ Workflow assigned to the sheet context resource.
Available workflows are defined in
adhocracy_core.workflows.
-
workflow_state= None¶ Workflow state of the sheet context resource.
Setting this executes a transition to the new state value.
-
-
interface
IWorkflowAssignment[source]¶ Extends:
adhocracy_core.interfaces.ISheetMarket interface for the workflow assignment sheet.
-
class
WorkflowAssignmentSheet(meta: adhocracy_core.interfaces.SheetMetadata, context: <InterfaceClass adhocracy_core.interfaces.IResourceSheet>, registry: pyramid.registry.Registry, request: <InterfaceClass pyramid.interfaces.IRequest>=None, creating: adhocracy_core.interfaces.ResourceMetadata=None)[source]¶ Bases:
adhocracy_core.sheets.AnnotationRessourceSheetSheet class for workflow assignment sheets.
It allows to view and modify the workflow state of context. If the you set a new workflow state a transition to this state is executed.
The workflow of context is only found, if the resource_type metadata of context has a valid ‘workflow` entry.