Commit af9d9744 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Romain Courteaud

slapos_cloud: SoftwareInstance As JSON Text always use Software Instance Schema

parent aac37ed3
...@@ -333,7 +333,7 @@ class SoftwareInstance(Item, JSONType): ...@@ -333,7 +333,7 @@ class SoftwareInstance(Item, JSONType):
raise ValueError("Unknown slap state : %s" % requested_state) raise ValueError("Unknown slap state : %s" % requested_state)
# software instance has to define an xml parameter # software instance has to define an xml parameter
result = { result = {
"$schema": self.getPortalObject().portal_types.restrictedTraverse(self.getPortalType()).absolute_url() "$schema": self.getPortalObject().portal_types.restrictedTraverse("Software Instance").absolute_url()
+ "/getTextContent", + "/getTextContent",
"title": self.getTitle().decode("UTF-8"), "title": self.getTitle().decode("UTF-8"),
"reference": self.getReference().decode("UTF-8"), "reference": self.getReference().decode("UTF-8"),
......
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