def load_classconfig(self): """ Loads the content of ``classconfig`` attribute from the user's configuration section. """ config = ConfigData() config.name = self.classname config.data = copy.deepcopy(self.default_classconfig) if self.default_classconfig: self.classconfig = self.__get_config_store().setdefault(self.classname, config).data
def create_classconfig(self): config = ConfigData() config.name = self.classname config.data = copy.deepcopy(self.default_classconfig) if self.default_classconfig is not None: self.__get_config_store().setdefault(self.classname, config)