Commit 22ab0792 authored by Łukasz Nowak's avatar Łukasz Nowak

Avoid calling needless workflow transition.

parent a9c73ef8
...@@ -369,7 +369,7 @@ class SlapTool(BaseTool): ...@@ -369,7 +369,7 @@ class SlapTool(BaseTool):
user = self.getPortalObject().portal_membership.getAuthenticatedMember()\ user = self.getPortalObject().portal_membership.getAuthenticatedMember()\
.getUserName() .getUserName()
self._logAccess(user, computer_id, '#error while installing %s' % url) self._logAccess(user, computer_id, '#error while installing %s' % url)
return self._softwareReleaseError(url, computer_id, error_log) #return self._softwareReleaseError(url, computer_id, error_log)
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'buildingComputerPartition') 'buildingComputerPartition')
...@@ -856,7 +856,7 @@ class SlapTool(BaseTool): ...@@ -856,7 +856,7 @@ class SlapTool(BaseTool):
.getUserName() .getUserName()
self._logAccess(user, instance.getReference(), self._logAccess(user, instance.getReference(),
'#error while instanciating') '#error while instanciating')
return instance.reportComputerPartitionError() #return instance.reportComputerPartitionError()
@convertToREST @convertToREST
def _softwareInstanceRename(self, new_name, computer_id, def _softwareInstanceRename(self, new_name, computer_id,
......
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