Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bryan Kaperick
erp5
Commits
b9573ee1
Commit
b9573ee1
authored
Jun 02, 2011
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Discussion Post should behave as embedded document by default (i.e. acquire security from parent).
parent
8ad37760
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
5 additions
and
9 deletions
+5
-9
bt5/erp5_discussion/PortalTypeTemplateItem/portal_types/Discussion%20Post.xml
...PortalTypeTemplateItem/portal_types/Discussion%20Post.xml
+1
-1
bt5/erp5_discussion/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
...rtalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
+1
-1
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_createNewDiscussionPost.xml
...5_discussion/DiscussionThread_createNewDiscussionPost.xml
+0
-1
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewAsWeb.xml
...rtal_skins/erp5_discussion/DiscussionThread_viewAsWeb.xml
+1
-1
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/WebSection_createNewDiscussionThread.xml
.../erp5_discussion/WebSection_createNewDiscussionThread.xml
+0
-1
bt5/erp5_discussion/bt/revision
bt5/erp5_discussion/bt/revision
+1
-1
bt5/erp5_discussion/bt/template_portal_type_workflow_chain_list
...p5_discussion/bt/template_portal_type_workflow_chain_list
+1
-3
No files found.
bt5/erp5_discussion/PortalTypeTemplateItem/portal_types/Discussion%20Post.xml
View file @
b9573ee1
...
@@ -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>
...
...
bt5/erp5_discussion/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
View file @
b9573ee1
<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, edi
t_workflow
</workflow>
<workflow>
edit_workflow, embedded
t_workflow
</workflow>
</chain>
</chain>
<chain>
<chain>
<type>
Discussion Thread
</type>
<type>
Discussion Thread
</type>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_createNewDiscussionPost.xml
View file @
b9573ee1
...
@@ -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
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewAsWeb.xml
View file @
b9573ee1
...
@@ -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>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/WebSection_createNewDiscussionThread.xml
View file @
b9573ee1
...
@@ -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
...
...
bt5/erp5_discussion/bt/revision
View file @
b9573ee1
99
100
\ No newline at end of file
\ No newline at end of file
bt5/erp5_discussion/bt/template_portal_type_workflow_chain_list
View file @
b9573ee1
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment