Commit 2be048fa authored by Romain Courteaud's avatar Romain Courteaud

erp5_discussion: display module like a web forum

parent f581f7ee
...@@ -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_date</string> <string>source_title</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>Reference</string> <string>Responses</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>
......
...@@ -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()
<?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>
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