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
Labels
Merge Requests
139
Merge Requests
139
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
2be048fa
Commit
2be048fa
authored
Mar 27, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_discussion: display module like a web forum
parent
f581f7ee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
88 additions
and
20 deletions
+88
-20
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionModule_viewDiscussionThreadList/listbox.xml
...ion/DiscussionModule_viewDiscussionThreadList/listbox.xml
+24
-19
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_getContextPostCount.py
...s/erp5_discussion/DiscussionThread_getContextPostCount.py
+1
-1
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_getDiscussionPostCount.py
...rp5_discussion/DiscussionThread_getDiscussionPostCount.py
+1
-0
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_getDiscussionPostCount.xml
...p5_discussion/DiscussionThread_getDiscussionPostCount.xml
+62
-0
No files found.
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionModule_viewDiscussionThreadList/listbox.xml
View file @
2be048fa
...
@@ -10,11 +10,12 @@
...
@@ -10,11 +10,12 @@
<key>
<string>
delegated_list
</string>
</key>
<key>
<string>
delegated_list
</string>
</key>
<value>
<value>
<list>
<list>
<string>
all_columns
</string>
<string>
columns
</string>
<string>
columns
</string>
<string>
count_method
</string>
<string>
domain_root_list
</string>
<string>
domain_root_list
</string>
<string>
domain_tree
</string>
<string>
domain_tree
</string>
<string>
selection_name
</string>
<string>
selection_name
</string>
<string>
sort
</string>
<string>
title
</string>
<string>
title
</string>
</list>
</list>
</value>
</value>
...
@@ -77,35 +78,24 @@
...
@@ -77,35 +78,24 @@
<value>
<value>
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
all_
columns
</string>
</key>
<key>
<string>
columns
</string>
</key>
<value>
<value>
<list>
<list>
<tuple>
<tuple>
<string>
source_
title
</string>
<string>
title
</string>
<string>
Original Poster
</string>
<string>
Title
</string>
</tuple>
</tuple>
<tuple>
<tuple>
<string>
creation_dat
e
</string>
<string>
source_titl
e
</string>
<string>
Creation Date
</string>
<string>
Author
</string>
</tuple>
</tuple>
<tuple>
<tuple>
<string>
modification_date
</string>
<string>
modification_date
</string>
<string>
Modification Date
</string>
<string>
Modification Date
</string>
</tuple>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
columns
</string>
</key>
<value>
<list>
<tuple>
<string>
title
</string>
<string>
Title
</string>
</tuple>
<tuple>
<tuple>
<string>
reference
</string>
<string>
DiscussionThread_getDiscussionPostCount
</string>
<string>
Re
ference
</string>
<string>
Re
sponses
</string>
</tuple>
</tuple>
<tuple>
<tuple>
<string>
translated_validation_state_title
</string>
<string>
translated_validation_state_title
</string>
...
@@ -114,6 +104,10 @@
...
@@ -114,6 +104,10 @@
</list>
</list>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
count_method
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<item>
<key>
<string>
domain_root_list
</string>
</key>
<key>
<string>
domain_root_list
</string>
</key>
<value>
<value>
...
@@ -152,6 +146,17 @@
...
@@ -152,6 +146,17 @@
<key>
<string>
selection_name
</string>
</key>
<key>
<string>
selection_name
</string>
</key>
<value>
<string>
discussion_module_selection
</string>
</value>
<value>
<string>
discussion_module_selection
</string>
</value>
</item>
</item>
<item>
<key>
<string>
sort
</string>
</key>
<value>
<list>
<tuple>
<string>
modification_date
</string>
<string>
DESC
</string>
</tuple>
</list>
</value>
</item>
<item>
<item>
<key>
<string>
target
</string>
</key>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
<value>
<string>
Click to edit the target
</string>
</value>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_getContextPostCount.py
View file @
2be048fa
...
@@ -6,4 +6,4 @@ discussion = context.DiscussionThread_getContextThread()
...
@@ -6,4 +6,4 @@ discussion = context.DiscussionThread_getContextThread()
if
discussion
==
None
:
if
discussion
==
None
:
return
0
return
0
return
discussion
.
countFolder
(
portal_type
=
'Discussion Post'
)[
0
][
0
]
return
discussion
.
DiscussionThread_getDiscussionPostCount
()
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_getDiscussionPostCount.py
0 → 100644
View file @
2be048fa
return
context
.
countFolder
(
portal_type
=
'Discussion Post'
)[
0
][
0
]
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_getDiscussionPostCount.xml
0 → 100644
View file @
2be048fa
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
DiscussionThread_getDiscussionPostCount
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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