Exemplo n.º 1
0
def products_biblio_modify_multi(comma_separated_tiids):
    resp = []
    for tiid in comma_separated_tiids.split(","):
        current_user_must_own_tiid(tiid)
        resp.append(patch_biblio(tiid, request.json))
        local_sleep(1)

    return json_resp_from_thing({"msg": resp})  # angular needs obj not array.
Exemplo n.º 2
0
def product_biblio_modify(tiid):
    # This should actually be like /profile/:id/product/:tiid/biblio
    # and it should return the newly-modified product, instead of the
    # part-product it gets from core now.

    current_user_must_own_tiid(tiid)
    resp = patch_biblio(tiid, request.json)
    local_sleep(1)

    return json_resp_from_thing({"msg": resp})