Commit 49d00c87 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

slapos_cloud: SoftwareInstance As JSON Text always use Software Instance Schema

parent a9aafff0
...@@ -329,7 +329,7 @@ class SoftwareInstance(Item, JSONType): ...@@ -329,7 +329,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