def get_recording(self, rec): if not self.recs.contains_id(rec): return None recording = Recording(my_id=rec, name=rec, redis=self.redis, access=self.access) recording.owner = self return recording
def get_recording(self, rec): """Return recording. :param str rec: recording ID :returns: recording :rtype: Recording or None """ if not self.recs.contains_id(rec): return None recording = Recording(my_id=rec, name=rec, redis=self.redis, access=self.access) recording.owner = self return recording