def init_structure(self): """ Validate and initialize structure """ config = self.config projects = config.get("projects") if not projects: raise Exception("projects required") validate_and_prepare_project_structure(projects) self.structure = projects self.structure_dict = structure_to_dict(projects)
def init_structure(self): """ Validate and initialize structure """ config = self.config projects = config.get("projects") if not projects: raise Exception("projects required") validate_and_prepare_project_structure(projects) self.structure = projects self.structure_dict = structure_to_dict(projects)
def test_dict_options(self): config = { "password": "******", "cookie_secret": "cookie_secret", "structure": [ { "name": "development", "secret": "secret", "namespaces": [ { "name": "public", "publish": True, "watch": True, "presence": True, "join_leave": True, "history_size": 10, "history_lifetime": 30 } ] } ] } validate_and_prepare_project_structure(config["structure"])