def load_all(cls, context, limit=None, marker=None, sort=None, filters=None, project_safe=True): """Retrieve all receivers from database.""" records = db_api.receiver_get_all(context, limit=limit, marker=marker, sort=sort, filters=filters, project_safe=project_safe) for record in records: receiver = cls._from_db_record(record) yield receiver
def get_all(cls, context, **kwargs): objs = db_api.receiver_get_all(context, **kwargs) return [cls._from_db_object(context, cls(), obj) for obj in objs]
def get_all(cls, context, **kwargs): return db_api.receiver_get_all(context, **kwargs)