def team_constructor(loader, node): if isinstance(node, yaml.ScalarNode): item = loader.construct_scalar(node) if not isinstance(item, str) or not item: raise ConfigurationError( 'value {} cannot be interpreted as team'.format(item)) elif isinstance(node, yaml.MappingNode): item = loader.construct_mapping(node) if not isinstance(item, dict) or not item: raise ConfigurationError( 'value {} cannot be interpreted as team'.format(item)) return TeamManager().get_object(item)
def exo_account_constructor(loader, node): item = loader.construct_scalar(node) if not isinstance(item, str) or not item: raise ConfigurationError( 'value {} cannot be interpreted as account'.format(item) ) return ExoAccountManager().get_object(item)
def group_constructor(loader, node): item = loader.construct_scalar(node) if not isinstance(item, str) or not item: raise ConfigurationError( 'value {} cannot be interpreted as an opportunity group'.format(item)) return GroupManager().get_object(item)
def user_constructor(loader, node): item = loader.construct_mapping(node=node) if not isinstance(item, dict) or not item: raise ConfigurationError( 'value {} cannot be interpreted as an opportunity'.format(item)) return UserManager().get_object(item)
def landing_constructor(loader, node): item = loader.construct_mapping(node=node) if not isinstance(item, dict) or not item: raise ConfigurationError( 'value {} cannot be interpreted as a page'.format(item)) return LandingManager().get_object(item)
def qa_session_constructor(loader, node): item = loader.construct_scalar(node) if not isinstance(item, str) or not item: raise ConfigurationError( 'value {} cannot be interpreted QA Session'.format(item)) return QaSessionManager().get_object(item)
def forum_constructor(loader, node): item = loader.construct_scalar(node) if not isinstance(item, str) or not item: raise ConfigurationError( 'value {} cannot be interpreted as post'.format(item)) return ForumManager().get_object(item)
def generic_project_constructor(loader, node): item = loader.construct_scalar(node) if not isinstance(item, str) or not item: raise ConfigurationError( 'value {} cannot be interpreted as generic project'.format(item)) return GenericProjectManager().get_object(item)
def survey_reference_constructor(loader, node): item = loader.construct_scalar(node=node) if not isinstance(item, str) or not item: raise ConfigurationError( 'value {} cannot be interpreted as an survey'.format(item)) return SurveyManager().get_object(item)
def referral_constructor(loader, node): item = loader.construct_scalar(node) if not isinstance(item, str) or not item: raise ConfigurationError( 'value {} cannot be interpreted as campaign'.format(item)) return ReferralManager().get_object(item)
def sprint_automated_constructor(loader, node): item = loader.construct_scalar(node) if not isinstance(item, str) or not item: raise ConfigurationError( 'value {} cannot be interpreted as consultant'.format(item)) return SprintAutomatedManager().get_object(item)
def certification_cohort_constructor(loader, node): item = loader.construct_scalar(node) if not isinstance(item, str) or not item: raise ConfigurationError( 'value {} cannot be interpreted as certification cohort'.format(item)) return CertificationCohortManager().get_object(item)