def init_local(self): super(ObfuscateCourseEventsTask, self).init_local() with read_config_file( self.explicit_event_whitelist) as explicit_events_file: self.explicit_events = self.parse_explicit_events_file( explicit_events_file)
def xblock_config(self): """The complete structure as read from the config file""" if not hasattr(self, '_xblock_config'): with read_config_file(self.xblock_obfuscation_config) as xblock_config_file: self._xblock_config = yaml.load(xblock_config_file) return self._xblock_config
def init_local(self): super(ObfuscateCourseEventsTask, self).init_local() with read_config_file(self.explicit_event_whitelist) as explicit_events_file: self.explicit_events = self.parse_explicit_events_file(explicit_events_file)