Reference implementation of an Organization. Organizations are used for defining the structure of a quality report. Every Organization class should be able to:
- load the full organization tree from a data source using
- initialize each single organization in the tree using
- implement the methods
@classmethoddef load(cls, org_model):
Loads an organization tree from the data source specified, in this case the org_model configuration.
def users(self, force_refresh=False):
Returns the users in an organization, including the head of the organization.
Returns the parent organizations of an organization. This is usually a list with only one element, except in matrix organizations.