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
1
Issues
1
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
Roque
erp5
Commits
1d331b95
Commit
1d331b95
authored
Jan 20, 2025
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_discussion: update forum threads view
parent
28a163a3
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
320 additions
and
43 deletions
+320
-43
bt5/erp5_discussion/ActionTemplateItem/portal_types/Discussion%20Forum/view_threads.xml
...lateItem/portal_types/Discussion%20Forum/view_threads.xml
+2
-2
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionForum_viewThread.xml
...rtal_skins/erp5_discussion/DiscussionForum_viewThread.xml
+7
-3
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionForum_viewThread/listbox.xml
...ns/erp5_discussion/DiscussionForum_viewThread/listbox.xml
+1
-1
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionForum_viewThread/listbox_author.xml
..._discussion/DiscussionForum_viewThread/listbox_author.xml
+13
-16
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionForum_viewThread/listbox_last_post.xml
...scussion/DiscussionForum_viewThread/listbox_last_post.xml
+142
-0
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionForum_viewThread/listbox_response_count.xml
...ion/DiscussionForum_viewThread/listbox_response_count.xml
+142
-0
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionPost_getAttachmentList.py
...skins/erp5_discussion/DiscussionPost_getAttachmentList.py
+2
-1
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionPost_getAttachmentList.xml
...kins/erp5_discussion/DiscussionPost_getAttachmentList.xml
+0
-8
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_createNewDiscussionPost.py
...p5_discussion/DiscussionThread_createNewDiscussionPost.py
+0
-1
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_createNewDiscussionPost.xml
...5_discussion/DiscussionThread_createNewDiscussionPost.xml
+1
-1
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewCreateNewDiscussionPostDialog.xml
...on/DiscussionThread_viewCreateNewDiscussionPostDialog.xml
+0
-1
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewLastPostWidget.zpt
...s/erp5_discussion/DiscussionThread_viewLastPostWidget.zpt
+3
-2
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewPosts.xml
...rtal_skins/erp5_discussion/DiscussionThread_viewPosts.xml
+4
-4
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewPosts/my_posts.xml
...s/erp5_discussion/DiscussionThread_viewPosts/my_posts.xml
+3
-3
No files found.
bt5/erp5_discussion/ActionTemplateItem/portal_types/Discussion%20Forum/view_threads.xml
View file @
1d331b95
...
...
@@ -56,7 +56,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
View threads (getDocumentValueList)
</string>
</value>
<value>
<string>
Discussion Threads
</string>
</value>
</item>
<item>
<key>
<string>
visible
</string>
</key>
...
...
@@ -73,7 +73,7 @@
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
string:${object_url}/DiscussionForum_view
Form
</string>
</value>
<value>
<string>
string:${object_url}/DiscussionForum_view
Thread
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionForum_view
Form
.xml
→
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionForum_view
Thread
.xml
View file @
1d331b95
...
...
@@ -71,7 +71,11 @@
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<list/>
<list>
<string>
listbox_response_count
</string>
<string>
listbox_author
</string>
<string>
listbox_last_post
</string>
</list>
</value>
</item>
<item>
...
...
@@ -91,7 +95,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
DiscussionForum_view
Form
</string>
</value>
<value>
<string>
DiscussionForum_view
Thread
</string>
</value>
</item>
<item>
<key>
<string>
method
</string>
</key>
...
...
@@ -99,7 +103,7 @@
</item>
<item>
<key>
<string>
name
</string>
</key>
<value>
<string>
DiscussionForum_view
</string>
</value>
<value>
<string>
DiscussionForum_view
Thread
</string>
</value>
</item>
<item>
<key>
<string>
pt
</string>
</key>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionForum_view
Form
/listbox.xml
→
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionForum_view
Thread
/listbox.xml
View file @
1d331b95
...
...
@@ -238,7 +238,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Discussion Threads
(DiscussionForum_viewForm)
</string>
</value>
<value>
<string>
Discussion Threads
</string>
</value>
</item>
<item>
<key>
<string>
url_columns
</string>
</key>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/Discussion
Thread_viewCreateNewDiscussionPostDialog/your_title
.xml
→
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/Discussion
Forum_viewThread/listbox_author
.xml
View file @
1d331b95
...
...
@@ -10,8 +10,8 @@
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
css_class
</string>
<string>
default
</string>
<string>
display_width
</string>
<string>
editable
</string>
<string>
title
</string>
</list>
...
...
@@ -19,7 +19,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_title
</string>
</value>
<value>
<string>
listbox_author
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
...
...
@@ -55,16 +55,16 @@
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
display_width
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
...
...
@@ -93,12 +93,12 @@
<value>
<dictionary>
<item>
<key>
<string>
default
</string>
</key>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
d
isplay_width
</string>
</key>
<value>
<
int>
40
</int
>
</value>
<key>
<string>
d
efault
</string>
</key>
<value>
<
string></string
>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
...
...
@@ -106,7 +106,7 @@
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_
string
_field
</string>
</value>
<value>
<string>
my_
label
_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
...
...
@@ -118,7 +118,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Title
</string>
</value>
<value>
<string>
Post Author
</string>
</value>
</item>
</dictionary>
</value>
...
...
@@ -128,16 +128,13 @@
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<tuple>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
<tuple/>
</tuple>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: c
ontext.REQUEST.get(\'discussion_post_title\',\'\'
)
</string>
</value>
<value>
<string>
python: c
ell.DiscussionThread_viewAuthorWidget(
)
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionForum_viewThread/listbox_last_post.xml
0 → 100644
View file @
1d331b95
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
css_class
</string>
<string>
default
</string>
<string>
editable
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
listbox_last_post
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_label_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Latest Post Author
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: cell.DiscussionThread_viewLastPostWidget()
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionForum_viewThread/listbox_response_count.xml
0 → 100644
View file @
1d331b95
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
css_class
</string>
<string>
default
</string>
<string>
editable
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
listbox_response_count
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_label_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Responses
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: cell.countFolder(portal_type=\'Discussion Post\')[0][0]
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionPost_getAttachmentList.py
View file @
1d331b95
...
...
@@ -6,5 +6,6 @@
result
=
[]
for
successor
in
context
.
getSuccessorValueList
():
result
.
append
({
'title'
:
successor
.
getTitle
(),
'url'
:
successor
.
absolute_url
()})
'url'
:
successor
.
File_getDownloadUrl
(),
'content_type'
:
successor
.
getPortalType
()})
return
result
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionPost_getAttachmentList.xml
View file @
1d331b95
...
...
@@ -52,14 +52,6 @@
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
DiscussionPost_getAttachmentList
</string>
</value>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_createNewDiscussionPost.py
View file @
1d331b95
...
...
@@ -16,7 +16,6 @@ if is_temp_object:
discussion_post
=
discussion_thread
.
newContent
(
portal_type
=
"Discussion Post"
,
title
=
title
,
text_content
=
text_content
,
source_value
=
person
,
predecessor_value
=
predecessor
,
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_createNewDiscussionPost.xml
View file @
1d331b95
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
t
itle, t
ext_content, form_id=\'view\', predecessor=None, file=None, **kw
</string>
</value>
<value>
<string>
text_content, form_id=\'view\', predecessor=None, file=None, **kw
</string>
</value>
</item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewCreateNewDiscussionPostDialog.xml
View file @
1d331b95
...
...
@@ -97,7 +97,6 @@
<key>
<string>
left reply-dialog
</string>
</key>
<value>
<list>
<string>
your_title
</string>
<string>
your_text_content
</string>
<string>
your_file
</string>
<string>
your_captcha
</string>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewLastPostWidget.zpt
View file @
1d331b95
...
...
@@ -10,9 +10,10 @@
<span tal:content="author_dict/author_title"
tal:condition="not:is_author_link_available"/>
<a class="listbox-row-discussion-thread-last-post-link"
<!-- TODO fix url to latest post -->
<!--a class="listbox-row-discussion-thread-last-post-link"
tal:attributes="href python: '%s/view?list_start=%s&reset=1#%s' %(here.getReference(), last_post.getId(), last_post.getUid())">
<img src="document_icon.gif" alt="Link To Post"/>
</a>
</a
--
>
</tal:block>
\ No newline at end of file
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/Discussion
Forum_viewGadget
.xml
→
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/Discussion
Thread_viewPosts
.xml
View file @
1d331b95
...
...
@@ -76,7 +76,7 @@
<key>
<string>
left
</string>
</key>
<value>
<list>
<string>
my_
thread
s
</string>
<string>
my_
post
s
</string>
</list>
</value>
</item>
...
...
@@ -91,7 +91,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Discussion
Forum_viewGadget
</string>
</value>
<value>
<string>
Discussion
Thread_viewPosts
</string>
</value>
</item>
<item>
<key>
<string>
method
</string>
</key>
...
...
@@ -99,7 +99,7 @@
</item>
<item>
<key>
<string>
name
</string>
</key>
<value>
<string>
Discussion
Forum_view
</string>
</value>
<value>
<string>
Discussion
Thread_viewPosts
</string>
</value>
</item>
<item>
<key>
<string>
pt
</string>
</key>
...
...
@@ -115,7 +115,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Discussion
Forum
</string>
</value>
<value>
<string>
Discussion
Posts
</string>
</value>
</item>
<item>
<key>
<string>
unicode_mode
</string>
</key>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/Discussion
Forum_viewGadget/my_thread
s.xml
→
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/Discussion
Thread_viewPosts/my_post
s.xml
View file @
1d331b95
...
...
@@ -8,7 +8,7 @@
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_
thread
s
</string>
</value>
<value>
<string>
my_
post
s
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
...
...
@@ -229,7 +229,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Discussion
Threads (rjs gadget)
</string>
</value>
<value>
<string>
Discussion
Posts
</string>
</value>
</item>
<item>
<key>
<string>
validator_field_id
</string>
</key>
...
...
@@ -253,7 +253,7 @@
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: [(\'
source_column\', \'Event_getSafeSourceTitle\'), (\'lines\', 100), ("query_dict", {"portal_type": "Discussion Thread", "follow_up__uid": context.getUid
()})]
</string>
</value>
<value>
<string>
python: [(\'
lines\', 15), (\'attachment_column\', \'DiscussionPost_getAttachmentList\'), ("query_dict", {"portal_type": "Discussion Post", "parent_relative_url": context.getRelativeUrl
()})]
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
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