Commit 6d6435b9 authored by Romain Courteaud's avatar Romain Courteaud

Prevent editing deleted Hosting Subscription

parent 606a217b
......@@ -97,6 +97,8 @@ if len(request_hosting_subscription_list) > 1:\n
raise NotImplementedError, "Too many hosting subscription %s found" % software_title\n
elif len(request_hosting_subscription_list) == 1:\n
request_hosting_subscription = request_hosting_subscription_list[0].getObject()\n
if request_hosting_subscription.getRootState() == "deleted":\n
raise NotImplementedError, "The system was not able to filter deleted hosting subscription"\n
else:\n
request_hosting_subscription = None\n
\n
......
698
\ No newline at end of file
699
\ 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