Beispiel #1
0
 def get_all(cls, context, filters=None, marker=None, limit=None,
             offset=None, sort_keys=None, sort_dirs=None):
     groups = db.group_get_all(
         context, filters=filters, marker=marker, limit=limit,
         offset=offset, sort_keys=sort_keys, sort_dirs=sort_dirs)
     return base.obj_make_list(context, cls(context),
                               objects.Group,
                               groups)
Beispiel #2
0
 def get_all(cls, context, filters=None, marker=None, limit=None,
             offset=None, sort_keys=None, sort_dirs=None):
     groups = db.group_get_all(
         context, filters=filters, marker=marker, limit=limit,
         offset=offset, sort_keys=sort_keys, sort_dirs=sort_dirs)
     return base.obj_make_list(context, cls(context),
                               objects.Group,
                               groups)
Beispiel #3
0
    def get_all_replicated(cls, context, filters=None, marker=None, limit=None,
                           offset=None, sort_keys=None, sort_dirs=None):
        groups = db.group_get_all(
            context, filters=filters, marker=marker, limit=limit,
            offset=offset, sort_keys=sort_keys, sort_dirs=sort_dirs)
        grp_obj_list = base.obj_make_list(context, cls(context),
                                          objects.Group,
                                          groups)

        out_groups = [grp for grp in grp_obj_list
                      if grp.is_replicated]

        return out_groups
Beispiel #4
0
    def get_all_replicated(cls, context, filters=None, marker=None, limit=None,
                           offset=None, sort_keys=None, sort_dirs=None):
        groups = db.group_get_all(
            context, filters=filters, marker=marker, limit=limit,
            offset=offset, sort_keys=sort_keys, sort_dirs=sort_dirs)
        grp_obj_list = base.obj_make_list(context, cls(context),
                                          objects.Group,
                                          groups)

        out_groups = [grp for grp in grp_obj_list
                      if grp.is_replicated]

        return out_groups