Example #1
0
def members_list(id):
    members = redis_store.smembers("collections/{}/members".format(id))
    ret = {"contents": []}
    for m in members:
        cbody = redis_store.hgetall("collections/{}/members/{}".format(id, m))
        ret["contents"].append(decode_redis(cbody))
    return ret
Example #2
0
def get(id, mid):
    return decode_redis(
        redis_store.hgetall("collections/{}/members/{}".format(id, mid)))
Example #3
0
def get_property(id, mid, property):
    return decode_redis(
        redis_store.hget("collections/{}/members/{}".format(id, mid),
                         property))
def get_capabilities(id):
    return decode_redis(
        redis_store.hget("collections/{}".format(id), "capabilities"))