Commit 45f2991d authored by Marco Mariani's avatar Marco Mariani

softwareInstanceRename()

parent 2bae9c83
......@@ -272,6 +272,17 @@ def requestComputerPartition():
else:
return request_slave()
@app.route('/softwareInstanceRename', methods=['POST'])
def softwareInstanceRename():
new_name = request.form['new_name'].encode()
computer_partition_id = request.form['computer_partition_id'].encode()
q = 'UPDATE %s SET partition_reference = ? WHERE reference = ?'
execute_db('partition', q, [new_name, computer_partition_id])
return 'done'
def request_not_shared():
software_release = request.form['software_release'].encode()
# some supported parameters
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment