def update_disciplinary_note(dn_id): """ It call to SCmS to update a item ot this kind. :param dn_id: id of item to update. :return: Nothing in the body. Specific HTTP status code in the header. """ return CRUD.put(service='scms', resource='disciplinarynote', id=dn_id, json=request.get_json())
def update_mark(mark_id): """ It call to SCmS to update a item ot this kind. :param mark_id: id of item to update. :return: Nothing in the body. Specific HTTP status code in the header. """ return CRUD.put(service='scms', resource='mark', id=mark_id, json=request.get_json())
def CRU_disciplinary_note_schema(): """ It call to SCmS to get a schema with options to ve showed in UI form to do a disciplinary note. :return: A dict """ if request.method == 'GET': return CRUD.get(service='scms', resource='disciplinarynote/schema') if request.method == 'PUT': return CRUD.put(service='scms', resource='disciplinarynote/schema', id=None, json=request.get_json())