Beispiel #1
0
def zsite_member_new(
    zsite_id,
    member_id,
    state=ZSITE_MEMBER_STATE_INVITE
):
    id, _state = zsite_list_id_state(zsite_id, member_id, CID_ZSITE_TUPLE_LIST_MEMBER)
    if _state < state:
        zsite_list_new(zsite_id, member_id, CID_ZSITE_TUPLE_LIST_MEMBER, state=state)
        po_review_state_set(zsite_id, member_id, 1)
        return True
Beispiel #2
0
def zsite_member_rm(zsite_id, member_id):
    zsite_list_rm(zsite_id, member_id, cid=CID_ZSITE_TUPLE_LIST_MEMBER)
    po_review_state_set(zsite_id, member_id, 0)