Commit e680c59b authored by Boris Kocherov's avatar Boris Kocherov

use publish workflow state for all documents

parent 364b72b5
...@@ -195,7 +195,6 @@ ...@@ -195,7 +195,6 @@
"Owner" "Owner"
]; ];
obj._Add_portal_content_Permission = [ obj._Add_portal_content_Permission = [
"Assignee",
"Assignor", "Assignor",
"Manager" "Manager"
]; ];
...@@ -204,8 +203,6 @@ ...@@ -204,8 +203,6 @@
"Manager" "Manager"
]; ];
obj._Modify_portal_content_Permission = [ obj._Modify_portal_content_Permission = [
"Assignee",
"Assignor",
"Manager" "Manager"
]; ];
obj._View_Permission = [ obj._View_Permission = [
...@@ -403,8 +400,8 @@ ...@@ -403,8 +400,8 @@
} }
xmldoc.version = context._options.version; xmldoc.version = context._options.version;
document_publication_wfl = { document_publication_wfl = {
action: "publish_alive", action: "publish",
validation_state: "published_alive" validation_state: "published"
}; };
xmldoc.workflow_history = { xmldoc.workflow_history = {
document_publication_workflow: document_publication_wfl document_publication_workflow: document_publication_wfl
...@@ -479,8 +476,6 @@ ...@@ -479,8 +476,6 @@
default: default:
xmldoc.content_type = "image/" + ext; xmldoc.content_type = "image/" + ext;
} }
document_publication_wfl.action = "publish";
document_publication_wfl.validation_state = "published";
break; break;
case "json": case "json":
xmldoc.content_type = "application/json"; xmldoc.content_type = "application/json";
...@@ -504,8 +499,6 @@ ...@@ -504,8 +499,6 @@
xmldoc.portal_type = "File"; xmldoc.portal_type = "File";
path = "document_module"; path = "document_module";
xmldoc.title = filename; xmldoc.title = filename;
document_publication_wfl.action = "publish";
document_publication_wfl.validation_state = "published";
} }
path = path + "/"; path = path + "/";
for (i in context._template_path_list) { for (i in context._template_path_list) {
...@@ -544,8 +537,8 @@ ...@@ -544,8 +537,8 @@
content_type: null, // "text/cache-manifest content_type: null, // "text/cache-manifest
workflow_history: { workflow_history: {
document_publication_workflow: { document_publication_workflow: {
action: "publish_alive", action: "publish",
validation_state: "published_alive" validation_state: "published"
} }
}, },
text_content: "CACHE MANIFEST\nCACHE:\n" + text_content: "CACHE MANIFEST\nCACHE:\n" +
......
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