def templateTaskManagement_delete(): not_null_list = set(["userid"]) alertMsg = [] delete_unit_dict, check = commonFunction.form2dict(request=request, not_null_list=not_null_list, alertMsg=alertMsg) check = delete_row(delete_unit_dict, alertMsg) resp = commonFunction.form_alert_resp(check, alertMsg) commonFunction.save_alertMsg_session(resp['alertType'], resp['alertMsg']) print str(resp) resp = json.dumps(resp) return resp
def templateTaskManagement_plus(): not_null_list = set(["userame", "identityName"]) alertMsg = [] plus_unit_dict, check = commonFunction.form2dict(request=request, not_null_list=not_null_list, alertMsg=alertMsg) if check == True: check = check_plus_exist(plus_unit_dict, alertMsg) if check == True: check = insert_plus(plus_unit_dict, alertMsg) resp = commonFunction.form_alert_resp(check, alertMsg) commonFunction.save_alertMsg_session(resp['alertType'], resp['alertMsg']) print str(resp) resp = json.dumps(resp) return resp
def identityManagement_new(): not_null_list = set(["identityName", "functionName"]) alertMsg = [] new_unit_dict, check = commonFunction.form2dict( request=request, not_null_list=not_null_list, alertMsg=alertMsg) if check: check = check_new_exist(new_unit_dict, alertMsg) if check: check = insert_new(new_unit_dict, alertMsg) resp = commonFunction.form_alert_resp(check, alertMsg) commonFunction.save_alertMsg_session(resp['alertType'], resp['alertMsg']) print str(resp) resp = json.dumps(resp) return resp
def userManagement_edit(): not_null_list = set(["userid"]) alertMsg = [] edit_unit_dict, check = commonFunction.form2dict( request=request, not_null_list=not_null_list, alertMsg=alertMsg) if check == True: check = check_edit_exist(edit_unit_dict, alertMsg) if check == True: check = insert_edit(edit_unit_dict, alertMsg) resp = commonFunction.form_alert_resp(check, alertMsg) commonFunction.save_alertMsg_session(resp['alertType'], resp['alertMsg']) print str(resp) resp = json.dumps(resp) return resp