Commit 28a4df18 by Boris Kocherov

ziptodocuments: add parent_relative_url to added documents

1 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";
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!