Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
ca676bdc
Commit
ca676bdc
authored
May 19, 2011
by
Nicolas Delaby
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote branch 'origin/master'
parents
27eae56b
cde683af
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
52 additions
and
91 deletions
+52
-91
bt5/erp5_discussion/PortalTypeTemplateItem/portal_types/Discussion%20Post.xml
...PortalTypeTemplateItem/portal_types/Discussion%20Post.xml
+16
-4
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionPost_getAuthorDict.xml
...al_skins/erp5_discussion/DiscussionPost_getAuthorDict.xml
+5
-1
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionPost_init.xml
...Item/portal_skins/erp5_discussion/DiscussionPost_init.xml
+0
-75
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_createNewDiscussionPost.xml
...5_discussion/DiscussionThread_createNewDiscussionPost.xml
+2
-1
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewAuthorWidget.xml
...ins/erp5_discussion/DiscussionThread_viewAuthorWidget.xml
+10
-4
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewLastPostWidget.xml
...s/erp5_discussion/DiscussionThread_viewLastPostWidget.xml
+9
-4
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/ERP5Site_getUserPreferredForumSettingsDict.xml
...discussion/ERP5Site_getUserPreferredForumSettingsDict.xml
+1
-1
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/ERP5Site_viewDiscussionThreadForm/listbox.xml
..._discussion/ERP5Site_viewDiscussionThreadForm/listbox.xml
+8
-0
bt5/erp5_discussion/bt/revision
bt5/erp5_discussion/bt/revision
+1
-1
No files found.
bt5/erp5_discussion/PortalTypeTemplateItem/portal_types/Discussion%20Post.xml
View file @
ca676bdc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<ZopeData>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<pickle>
<global
name=
"
ERP5TypeInformation"
module=
"Products.ERP5Type.ERP5T
ype"
/>
<global
name=
"
Base Type"
module=
"erp5.portal_t
ype"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<dictionary>
...
@@ -61,7 +61,9 @@
...
@@ -61,7 +61,9 @@
</item>
</item>
<item>
<item>
<key>
<string>
init_script
</string>
</key>
<key>
<string>
init_script
</string>
</key>
<value>
<string>
DiscussionPost_init
</string>
</value>
<value>
<none/>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
permission
</string>
</key>
<key>
<string>
permission
</string>
</key>
...
@@ -77,6 +79,12 @@
...
@@ -77,6 +79,12 @@
<key>
<string>
type_class
</string>
</key>
<key>
<string>
type_class
</string>
</key>
<value>
<string>
TextDocument
</string>
</value>
<value>
<string>
TextDocument
</string>
</value>
</item>
</item>
<item>
<key>
<string>
type_interface
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<item>
<key>
<string>
type_mixin
</string>
</key>
<key>
<string>
type_mixin
</string>
</key>
<value>
<value>
...
@@ -94,7 +102,9 @@
...
@@ -94,7 +102,9 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
domain_name
</string>
</key>
<key>
<string>
domain_name
</string>
</key>
<value>
<none/>
</value>
<value>
<none/>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
property_name
</string>
</key>
<key>
<string>
property_name
</string>
</key>
...
@@ -111,7 +121,9 @@
...
@@ -111,7 +121,9 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
domain_name
</string>
</key>
<key>
<string>
domain_name
</string>
</key>
<value>
<none/>
</value>
<value>
<none/>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
property_name
</string>
</key>
<key>
<string>
property_name
</string>
</key>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionPost_getAuthorDict.xml
View file @
ca676bdc
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
portal = context.getPortalObject()\n
portal = context.getPortalObject()\n
\n
\n
author = context.getSourceValue()\n
author = context.getSourceValue()\n
result = {\'author_url\':
\'#\'
,\n
result = {\'author_url\':
None
,\n
\'author_signature\': None,\n
\'author_signature\': None,\n
\'author_title\': context.Base_translateString(\'Unknown User\')}\n
\'author_title\': context.Base_translateString(\'Unknown User\')}\n
\n
\n
...
@@ -68,6 +68,10 @@ if author is not None:\n
...
@@ -68,6 +68,10 @@ if author is not None:\n
return result\n
return result\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
<key>
<string>
_proxy_roles
</string>
</key>
<value>
<value>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionPost_init.xml
deleted
100644 → 0
View file @
27eae56b
<?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>
context.setTextFormat(\'text/html\')\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
**kw
</string>
</value>
</item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
<value>
<tuple>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
DiscussionPost_init
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_createNewDiscussionPost.xml
View file @
ca676bdc
...
@@ -66,7 +66,8 @@ discussion_post = context.newContent(\n
...
@@ -66,7 +66,8 @@ discussion_post = context.newContent(\n
source_value = person,\n
source_value = person,\n
predecessor_value = predecessor,\n
predecessor_value = predecessor,\n
version = version,\n
version = version,\n
language = language)\n
language = language,\n
text_format = \'text/html\')\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
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewAuthorWidget.xml
View file @
ca676bdc
...
@@ -36,12 +36,18 @@
...
@@ -36,12 +36,18 @@
<key>
<string>
_text
</string>
</key>
<key>
<string>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<tal:block tal:define="author_dict python: here.DiscussionPost_getAuthorDict()">
\n
<tal:block tal:define="author_dict python: here.DiscussionPost_getAuthorDict();\n
is_author_link_available python:author_dict[\'author_url\'] is not None;">
\n
\n
<a
class=
"listbox-row-discussion-thread-author-link"
\n
<a
class=
"listbox-row-discussion-thread-author-link"
\n
tal:attributes=
"href author_dict/author_url"
\n
tal:attributes=
"href author_dict/author_url"
\n
tal:content=
"author_dict/author_title"
/>
\n
tal:content=
"author_dict/author_title"
\n
</tal:block>
\n
tal:condition=
"is_author_link_available"
/>
\n
\n
<span
tal:content=
"author_dict/author_title"
\n
tal:condition=
"not:is_author_link_available"
/>
\n
\n
</tal:block>
]]>
</unicode>
</value>
]]>
</unicode>
</value>
</item>
</item>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/DiscussionThread_viewLastPostWidget.xml
View file @
ca676bdc
...
@@ -38,17 +38,22 @@
...
@@ -38,17 +38,22 @@
<tal:block tal:define="last_post here/DiscussionThread_getLastPost;\n
<tal:block tal:define="last_post here/DiscussionThread_getLastPost;\n
author_dict last_post/DiscussionPost_getAuthorDict;\n
author_dict last_post/DiscussionPost_getAuthorDict;\n
">
\n
is_author_link_available python:author_dict[\'author_url\'] is not None;">
\n
\n
<a
class=
"listbox-row-discussion-thread-last-post-by-author-link"
\n
<a
class=
"listbox-row-discussion-thread-last-post-by-author-link"
\n
tal:attributes=
"href author_dict/author_url"
\n
tal:attributes=
"href author_dict/author_url"
\n
tal:content=
"author_dict/author_title"
/>
\n
tal:content=
"author_dict/author_title"
\n
tal:condition=
"is_author_link_available"
/>
\n
\n
<span
tal:content=
"author_dict/author_title"
\n
tal:condition=
"not:is_author_link_available"
/>
\n
\n
<a
class=
"listbox-row-discussion-thread-last-post-link"
\n
<a
class=
"listbox-row-discussion-thread-last-post-link"
\n
tal:attributes=
"href python: \'%s/view?list_start=%s&reset=1#%s\' %(here.absolute_url(), last_post.getId(), last_post.getUid())"
>
\n
tal:attributes=
"href python: \'%s/view?list_start=%s&reset=1#%s\' %(here.absolute_url(), last_post.getId(), last_post.getUid())"
>
\n
<img
src=
"document_icon.gif"
alt=
"Link To Post"
/>
\n
<img
src=
"document_icon.gif"
alt=
"Link To Post"
/>
\n
</a>
\n
</a>
\n
\n
\n
</tal:block>
\n
</tal:block>
]]>
</unicode>
</value>
]]>
</unicode>
</value>
</item>
</item>
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/ERP5Site_getUserPreferredForumSettingsDict.xml
View file @
ca676bdc
...
@@ -65,7 +65,7 @@ def getPreferredForumSignature(username):\n
...
@@ -65,7 +65,7 @@ def getPreferredForumSignature(username):\n
preference_state=\'enabled\')\n
preference_state=\'enabled\')\n
if preference is not None:\n
if preference is not None:\n
result[\'preferred_forum_signature\'] = preference.getProperty(\'preferred_forum_signature\', None)\n
result[\'preferred_forum_signature\'] = preference.getProperty(\'preferred_forum_signature\', None)\n
result[\'preferred_forum_quote_original_message\'] = preference.getProperty(\'preferred_forum_quote_original_message\',
Fals
e)\n
result[\'preferred_forum_quote_original_message\'] = preference.getProperty(\'preferred_forum_quote_original_message\',
Tru
e)\n
return result\n
return result\n
\n
\n
getPreferredForumSignature = CachingMethod(getPreferredForumSignature,\n
getPreferredForumSignature = CachingMethod(getPreferredForumSignature,\n
...
...
bt5/erp5_discussion/SkinTemplateItem/portal_skins/erp5_discussion/ERP5Site_viewDiscussionThreadForm/listbox.xml
View file @
ca676bdc
...
@@ -279,6 +279,14 @@
...
@@ -279,6 +279,14 @@
<string>
response_count
</string>
<string>
response_count
</string>
<string></string>
<string></string>
</tuple>
</tuple>
<tuple>
<string>
author
</string>
<string></string>
</tuple>
<tuple>
<string>
last_post
</string>
<string></string>
</tuple>
<tuple>
<tuple>
<string>
title
</string>
<string>
title
</string>
<string>
ListBox_getDiscussionThreadUrl
</string>
<string>
ListBox_getDiscussionThreadUrl
</string>
...
...
bt5/erp5_discussion/bt/revision
View file @
ca676bdc
92
94
\ 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