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
def get(id, mid): return decode_redis( redis_store.hgetall("collections/{}/members/{}".format(id, mid)))
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"))