Commit bdf5b458 authored by Łukasz Nowak's avatar Łukasz Nowak

Implement destroyedSoftwareRelease call.

parent d7971d89
...@@ -242,6 +242,14 @@ class SlapTool(BaseTool): ...@@ -242,6 +242,14 @@ class SlapTool(BaseTool):
""" """
return self._availableSoftwareRelease(url, computer_id) return self._availableSoftwareRelease(url, computer_id)
security.declareProtected(Permissions.AccessContentsInformation,
'destroyedSoftwareRelease')
def destroyedSoftwareRelease(self, url, computer_id):
"""
Reports that Software Release is available
"""
return self._destroyedSoftwareRelease(url, computer_id)
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'softwareReleaseError') 'softwareReleaseError')
def softwareReleaseError(self, url, computer_id, error_log): def softwareReleaseError(self, url, computer_id, error_log):
...@@ -641,6 +649,14 @@ class SlapTool(BaseTool): ...@@ -641,6 +649,14 @@ class SlapTool(BaseTool):
computer_document = self._getComputerDocument(computer_id) computer_document = self._getComputerDocument(computer_id)
computer_document.stopSoftwareReleaseInstallation(software_release_url=url) computer_document.stopSoftwareReleaseInstallation(software_release_url=url)
@convertToREST
def _destroyedSoftwareRelease(self, url, computer_id):
"""
Reports that Software Release is available
"""
computer_document = self._getComputerDocument(computer_id)
computer_document.cleanupSoftwareReleaseInstallation(software_release_url=url)
@convertToREST @convertToREST
def _softwareReleaseError(self, url, computer_id, error_log): def _softwareReleaseError(self, url, computer_id, error_log):
""" """
......
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