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

Support software release state.

Note: console comes bundled with library, no need to do backward compatibility.
parent e452be63
......@@ -139,8 +139,8 @@ def init(config):
state=None):
return slap.registerOpenOrder().request(software_release, partition_reference,
partition_parameter_kw, software_type, filter_kw, state)
def shorthandSupply(software_release, computer_guid=None):
return slap.registerSupply().supply(software_release, computer_guid)
def shorthandSupply(software_release, computer_guid=None, state='available'):
return slap.registerSupply().supply(software_release, computer_guid, state)
local['request'] = shorthandRequest
local['supply'] = shorthandSupply
......
......@@ -139,10 +139,11 @@ class Supply(SlapDocument):
zope.interface.implements(interface.ISupply)
def supply(self, software_release, computer_guid=None):
def supply(self, software_release, computer_guid=None, state='available'):
self._connection_helper.POST('/supplySupply', {
'url': software_release,
'computer_id': computer_guid})
'computer_id': computer_guid,
'state': state})
class OpenOrder(SlapDocument):
......
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