Commit 16a76549 authored by Sigmund Augdal's avatar Sigmund Augdal
Browse files

Implemented support for adding complex types when creating/updating objects

parent 7cc41c0a
......@@ -282,6 +282,9 @@ def add_property(tag, key, value, datatype=None):
elif type(value) == int:
prop.set(ns('m', 'type'), "Edm.Int64")
prop.text = str(value)
elif type(value) == dict:
for key, value in value.items():
add_property(prop, key, value)
prop.text = value
if datatype:
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