def _store_burst(self, proj_id, status, sim_config, name): """ Create and store a burst entity, for the project given project_id, having the given status and simulator parames config, under the given name. """ burst = BurstConfiguration(proj_id, status, sim_config, name) burst.prepare_before_save() return dao.store_entity(burst)
def _store_burst(self, proj_id, status, sim_config, name): """ Create and store a burst entity, for the project given project_id, having the given status and simulator parames config, under the given name. """ burst = BurstConfiguration(proj_id, status, sim_config, name) burst.prepare_before_save() return dao.store_entity(burst)
def store_burst(project_id, simulator_config=None): """ Build and persist BurstConfiguration entity. """ burst = BurstConfiguration(project_id) if simulator_config is not None: burst.simulator_configuration = simulator_config burst.prepare_before_save() return dao.store_entity(burst)