Commit 769dab8d authored by Łukasz Nowak's avatar Łukasz Nowak

Support json in json.

parent 10660755
......@@ -85,6 +85,10 @@ def WebSection_setObject(self, id, ob, **kw):
data = self.REQUEST.get('BODY')
schema = self.WebSite_getJSONSchema()
structure = json.loads(data)
# 0 elementh in structure is json in json
# 1 elementh is just signature
structure = [json.loads(structure[0]), structure[1]]
validictory.validate(structure, schema)
file_name = structure[0].get('file', None)
......
68
\ No newline at end of file
69
\ No newline at end of file
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