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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5
Commits
c844be68
Commit
c844be68
authored
Oct 29, 2012
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it possible to show not yet indexed threads using a relative url passed from REQUEST.
parent
5b852bb3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
87 additions
and
3 deletions
+87
-3
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/WebSection_createNewDiscussionThread.xml
.../erp5_discussion/WebSection_createNewDiscussionThread.xml
+2
-1
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/WebSection_getDiscussionThreadList.xml
...ns/erp5_discussion/WebSection_getDiscussionThreadList.xml
+78
-0
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/WebSection_viewDiscussionThreadForm/listbox.xml
...iscussion/WebSection_viewDiscussionThreadForm/listbox.xml
+6
-1
bt5/erp5_discussion/bt/revision
bt5/erp5_discussion/bt/revision
+1
-1
No files found.
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/WebSection_createNewDiscussionThread.xml
View file @
c844be68
...
@@ -160,7 +160,8 @@ if send_notification_text not in (\'\', None):\n
...
@@ -160,7 +160,8 @@ if send_notification_text not in (\'\', None):\n
store_as_event=False)\n
store_as_event=False)\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
thread_relative_url=discussion_thread.getRelativeUrl()))\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/WebSection_getDiscussionThreadList.xml
0 → 100644
View file @
c844be68
<?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>
_body
</string>
</key>
<value>
<string>
"""\n
This script gets list of Discussion Thread for a Forum using catalog. \n
Due to asynchronous nature of catalog it can use\n
passed from REQUEST not index yet threads.\n
"""\n
thread_relative_url = context.REQUEST.get(\'thread_relative_url\')\n
discussion_thread_list = [x.getObject() for x in context.getDocumentValueList(**kw)]\n
if thread_relative_url is not None:\n
thread = context.restrictedTraverse(thread_relative_url)\n
if thread is not None and thread not in discussion_thread_list:\n
discussion_thread_list = [thread] + discussion_thread_list\n
return discussion_thread_list\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
WebSection_getDiscussionThreadList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/WebSection_viewDiscussionThreadForm/listbox.xml
View file @
c844be68
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
<string>
list_method
</string>
<string>
list_method
</string>
<string>
search
</string>
<string>
search
</string>
<string>
search_columns
</string>
<string>
search_columns
</string>
<string>
selection_name
</string>
<string>
sort
</string>
<string>
sort
</string>
<string>
sort_columns
</string>
<string>
sort_columns
</string>
<string>
title
</string>
<string>
title
</string>
...
@@ -210,6 +211,10 @@
...
@@ -210,6 +211,10 @@
</list>
</list>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
selection_name
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<item>
<key>
<string>
sort
</string>
</key>
<key>
<string>
sort
</string>
</key>
<value>
<value>
...
@@ -281,7 +286,7 @@
...
@@ -281,7 +286,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
method_name
</string>
</key>
<key>
<string>
method_name
</string>
</key>
<value>
<string>
getDocumentValue
List
</string>
</value>
<value>
<string>
WebSection_getDiscussionThread
List
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/erp5_discussion/bt/revision
View file @
c844be68
125
126
\ No newline at end of file
\ No newline at end of file
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