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
140
Merge Requests
140
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
623d7748
Commit
623d7748
authored
Jul 21, 2021
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
knowledge_pad: show author in RSS
parent
1a0a1595
Pipeline
#16692
failed with stage
in 0 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
bt5/erp5_knowledge_pad/ExtensionTemplateItem/portal_components/extension.erp5.GetRssDataAsDict.py
...Item/portal_components/extension.erp5.GetRssDataAsDict.py
+1
-0
bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/Base_getRssDataAsDocumentList.py
...portal_skins/erp5_gadget/Base_getRssDataAsDocumentList.py
+1
-0
bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewRssGadgetPreferenceDialog.xml
...ns/erp5_gadget/ERP5Site_viewRssGadgetPreferenceDialog.xml
+1
-1
bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/RssFeed_getSummaryAsHTML.zpt
...tem/portal_skins/erp5_gadget/RssFeed_getSummaryAsHTML.zpt
+8
-2
No files found.
bt5/erp5_knowledge_pad/ExtensionTemplateItem/portal_components/extension.erp5.GetRssDataAsDict.py
View file @
623d7748
...
@@ -48,6 +48,7 @@ def getRssDataAsDict(context, url, username=None, password=None):
...
@@ -48,6 +48,7 @@ def getRssDataAsDict(context, url, username=None, password=None):
for
entry
in
d
.
entries
:
for
entry
in
d
.
entries
:
entry_dict
=
{}
entry_dict
=
{}
entry_dict
[
'title'
]
=
entry
[
'title'
]
entry_dict
[
'title'
]
=
entry
[
'title'
]
entry_dict
[
'author'
]
=
entry
.
get
(
'author'
,
''
)
entry_dict
[
'link'
]
=
entry
[
'link'
]
entry_dict
[
'link'
]
=
entry
[
'link'
]
entry_dict
[
'other_links'
]
=
[
x
[
'href'
]
for
x
in
entry
[
'links'
]]
entry_dict
[
'other_links'
]
=
[
x
[
'href'
]
for
x
in
entry
[
'links'
]]
entry_dict
[
'md5'
]
=
md5
((
entry
.
get
(
'guid'
)
or
entry
.
get
(
'id'
)
or
entry
[
'link'
]).
encode
()).
hexdigest
()
entry_dict
[
'md5'
]
=
md5
((
entry
.
get
(
'guid'
)
or
entry
.
get
(
'id'
)
or
entry
[
'link'
]).
encode
()).
hexdigest
()
...
...
bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/Base_getRssDataAsDocumentList.py
View file @
623d7748
...
@@ -54,6 +54,7 @@ for result in items:
...
@@ -54,6 +54,7 @@ for result in items:
message
=
newTempBase
(
context
,
'item'
)
message
=
newTempBase
(
context
,
'item'
)
message
.
edit
(
field_title
=
result
.
get
(
'title'
,
'No title'
),
message
.
edit
(
field_title
=
result
.
get
(
'title'
,
'No title'
),
field_date
=
date
,
field_date
=
date
,
field_author
=
result
[
'author'
],
field_content
=
result
.
get
(
'content'
,
'No content'
),
field_content
=
result
.
get
(
'content'
,
'No content'
),
field_img
=
result
.
get
(
'img'
,
''
),
field_img
=
result
.
get
(
'img'
,
''
),
field_others_links
=
result
.
get
(
'other_links'
,
''
),
field_others_links
=
result
.
get
(
'other_links'
,
''
),
...
...
bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewRssGadgetPreferenceDialog.xml
View file @
623d7748
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
enctype
</string>
</key>
<key>
<string>
enctype
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
multipart/form-data
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
group_list
</string>
</key>
<key>
<string>
group_list
</string>
</key>
...
...
bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/RssFeed_getSummaryAsHTML.zpt
View file @
623d7748
<tal:block
<tal:block
tal:define="title here/field_title;
tal:define="title here/field_title;
author here/field_author;
date here/field_date|nothing;
date here/field_date|nothing;
description here/field_content;
description here/field_content;
image here/field_img;
image here/field_img;
...
@@ -40,7 +41,9 @@
...
@@ -40,7 +41,9 @@
<span class="document-title"
<span class="document-title"
tal:content="title"/> -
tal:content="title"/> -
<span class="modification-date"
<span class="modification-date"
tal:content="date"/>
tal:content="date"/> -
<span class="modification-date"
tal:content="author"/>
</a>
</a>
</div>
</div>
...
@@ -60,7 +63,10 @@
...
@@ -60,7 +63,10 @@
<span class="document-title"
<span class="document-title"
tal:content="title"/> -
tal:content="title"/> -
<span class="modification-date"
<span class="modification-date"
tal:content="date"/>
tal:content="date"/> -
<span class="modification-date"
tal:content="author"/>
</div>
</div>
<!-- Hidden description -->
<!-- Hidden description -->
...
...
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