Commit b9573ee1 authored by Ivan Tyagov's avatar Ivan Tyagov

Discussion Post should behave as embedded document by default (i.e. acquire security from parent).

parent 8ad37760
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</item> </item>
<item> <item>
<key> <string>acquire_local_roles</string> </key> <key> <string>acquire_local_roles</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>content_icon</string> </key> <key> <string>content_icon</string> </key>
......
<workflow_chain> <workflow_chain>
<chain> <chain>
<type>Discussion Post</type> <type>Discussion Post</type>
<workflow>document_conversion_interaction_workflow, document_publication_workflow, document_security_interaction_workflow, edit_workflow</workflow> <workflow>edit_workflow, embeddedt_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>Discussion Thread</type> <type>Discussion Thread</type>
......
...@@ -71,7 +71,6 @@ discussion_post = context.newContent(\n ...@@ -71,7 +71,6 @@ discussion_post = context.newContent(\n
\n \n
# depending on security model Post can be submited for review\n # depending on security model Post can be submited for review\n
portal_status_message = "New post created in background."\n portal_status_message = "New post created in background."\n
discussion_post.release()\n
\n \n
return context.Base_redirect(form_id,\n return context.Base_redirect(form_id,\n
keep_items = dict(portal_status_message=context.Base_translateString(portal_status_message)))\n keep_items = dict(portal_status_message=context.Base_translateString(portal_status_message)))\n
......
...@@ -76,7 +76,6 @@ ...@@ -76,7 +76,6 @@
<value> <value>
<list> <list>
<string>listbox</string> <string>listbox</string>
<string>my_rss_link</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -100,6 +99,7 @@ ...@@ -100,6 +99,7 @@
<list> <list>
<string>my_title</string> <string>my_title</string>
<string>my_include</string> <string>my_include</string>
<string>my_rss_link</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -97,7 +97,6 @@ discussion_post = discussion_thread.newContent(\n ...@@ -97,7 +97,6 @@ discussion_post = discussion_thread.newContent(\n
# depending on security model Thread and Post can be directly published or shared\n # depending on security model Thread and Post can be directly published or shared\n
portal_status_message = "New discussion created. Your post will be reviewed for approval."\n portal_status_message = "New discussion created. Your post will be reviewed for approval."\n
discussion_thread.submit()\n discussion_thread.submit()\n
discussion_post.submit()\n
\n \n
if send_notification_text not in (\'\', None):\n if send_notification_text not in (\'\', None):\n
# we can send notifications\n # we can send notifications\n
......
99 100
\ No newline at end of file \ No newline at end of file
Discussion Post | document_conversion_interaction_workflow
Discussion Post | document_publication_workflow
Discussion Post | document_security_interaction_workflow
Discussion Post | edit_workflow Discussion Post | edit_workflow
Discussion Post | embeddedt_workflow
Discussion Thread | document_conversion_interaction_workflow Discussion Thread | document_conversion_interaction_workflow
Discussion Thread | document_publication_workflow Discussion Thread | document_publication_workflow
Discussion Thread | document_security_interaction_workflow Discussion Thread | document_security_interaction_workflow
......
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