def index_datastreams(self): for name in ds_loader.iter_datastreams(): if not getattr(config.datastream, "enable_%s" % name, False): continue ds = ds_loader.get_datastream(name) self.print("[%s] Indexing datastream" % ds.name) ds.ensure_collection()
def handle_list(self): for ds_name in sorted(loader.iter_datastreams()): self.print(ds_name)