Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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]
Ejemplo n.º 4
0
 def get_all(cls, context, **kwargs):
     return db_api.receiver_get_all(context, **kwargs)
Ejemplo n.º 5
0
 def get_all(cls, context, **kwargs):
     return db_api.receiver_get_all(context, **kwargs)