Commit 9df78fb0 authored by Pablo Armingol's avatar Pablo Armingol
Browse files

Changes in context

parent d573d041
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -182,9 +182,9 @@ message Component { //Defined previously to this section
  Uuid component_uuid   = 1;
  string name           = 2;
  string type           = 3;
  repeated string child = 4; // list[sub-component.name]
  map<string, string> attributes = 5; // dict[attr.name => json.dumps(attr.value)]
  string parent         = 6;
  
  map<string, string> attributes = 4; // dict[attr.name => json.dumps(attr.value)]
  string parent         = 5;
}

// -----------------------------------------------------
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ class ComponentModel(_Base): #Inherit

    def dump(self) -> Dict:
        data = json.loads(self.attributes)
        data['component_uuid'] = self.component_uuid
        data['component_uuid'] = {'uuid': self.component_uuid},
        data['name'] = self.name
        data['type'] = self.type
        data['parent'] = self.parent