Commit 28a4df18 authored by Boris Kocherov's avatar Boris Kocherov

ziptodocuments: add parent_relative_url to added documents

parent 54d39102
......@@ -50,10 +50,12 @@
if (body) {
if (body.$schema && body.$schema !== "") {
ret.portal_type = "JSON Schema";
ret.parent_relative_url = "schema_module";
ret.title = body.title || filename;
} else {
// XXX need schema relation property
ret.portal_type = "JSON Document";
ret.parent_relative_url = "document_module";
}
} else {
ret.format = "json";
......
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