Exemple #1
0
    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
Exemple #2
0
    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
Exemple #3
0
 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]
Exemple #4
0
 def get_all(cls, context, **kwargs):
     return db_api.receiver_get_all(context, **kwargs)
Exemple #5
0
 def get_all(cls, context, **kwargs):
     return db_api.receiver_get_all(context, **kwargs)