예제 #1
0
def ajax_change_attribtue():
    status = False
    #need to identify the user have the power to change the attribute table
    attribute_name = request.args.get('attribute_name', '')
    attribute_value = request.args.get('attribute_value', '')   # attribute_value = 'tag1&tag2'
    submit_user = request.args.get('user', '')
    submit_date = request.args.get('date', '')
    status = change_attribute(attribute_name, attribute_value, submit_user, submit_date)
    return json.dumps(status)
def ajax_change_attribtue():
    status = False
    # need to identify the user have the power to change the attribute table
    attribute_name = request.args.get("attribute_name", "")
    attribute_value = request.args.get("attribute_value", "")  # attribute_value = 'tag1&tag2'
    submit_user = request.args.get("user", "")
    submit_date = request.args.get("date", "")
    status = change_attribute(attribute_name, attribute_value, submit_user, submit_date)
    return json.dumps(status)
예제 #3
0
def ajax_change_attribtue():
    status = False
    #need to identify the user have the power to change the attribute table
    attribute_name = request.args.get('attribute_name', '')
    attribute_value = request.args.get('value', '')
    submit_user = request.args.get('user', '')
    state = request.args.get('state', '')
    status = change_attribute(attribute_name, attribute_value, submit_user, state)
    return json.dumps(status)