Commit 29728eb0 authored by Romain Courteaud's avatar Romain Courteaud

Validate partition after creation, to give view permission to auditor

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42565 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4f034773
......@@ -66,6 +66,7 @@ for send_partition in computer_dict[\'partition_list\']:\n
partition = existing_partition_dict.get(send_partition[\'reference\'], None)\n
if partition is None:\n
partition = context.newContent(portal_type=\'Computer Partition\')\n
partition.validate()\n
partition.markFree()\n
partition.edit(reference=send_partition[\'reference\'])\n
network_interface = send_partition[\'tap\'][\'name\']\n
......
328
\ No newline at end of file
329
\ No newline at end of file
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