organization
class
Organization:
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
.load() - initialize each single organization in the tree using
.__init__() - implement the methods
.users(),.parents(),.children()and.fact_sheets().
@classmethod
def
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.