CORD-2184: Add Color and EmbeddedImage to exampleservice
Change-Id: I5e0f934a116cb44749b0cf3a2408e9b459d1dfd2
(cherry picked from commit 9d1b2c141004d6ebc03d87f21bf699af86834c18)
diff --git a/xos/synchronizer/steps/sync_exampleserviceinstance.py b/xos/synchronizer/steps/sync_exampleserviceinstance.py
index 3462960..373fb5e 100644
--- a/xos/synchronizer/steps/sync_exampleserviceinstance.py
+++ b/xos/synchronizer/steps/sync_exampleserviceinstance.py
@@ -60,6 +60,19 @@
fields['tenant_message'] = o.tenant_message
exampleservice = self.get_exampleservice(o)
fields['service_message'] = exampleservice.service_message
+
+ if o.foreground_color:
+ fields["foreground_color"] = o.foreground_color.html_code
+
+ if o.background_color:
+ fields["background_color"] = o.background_color.html_code
+
+ images=[]
+ for image in o.embedded_images.all():
+ images.append({"name": image.name,
+ "url": image.url})
+ fields["images"] = images
+
return fields
def delete_record(self, port):