Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
06621525
Commit
06621525
authored
Feb 04, 2025
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py3: use str2bytes for md5().hexdigest()
parent
71b96e33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
master/bt5/slapos_rss_style/SkinTemplateItem/portal_skins/slapos_rss_style/WebSection_getLegacyMessageList.py
...skins/slapos_rss_style/WebSection_getLegacyMessageList.py
+2
-1
No files found.
master/bt5/slapos_rss_style/SkinTemplateItem/portal_skins/slapos_rss_style/WebSection_getLegacyMessageList.py
View file @
06621525
from
Products.PythonScripts.standard
import
Object
from
Products.PythonScripts.standard
import
Object
from
DateTime
import
DateTime
from
DateTime
import
DateTime
from
hashlib
import
md5
from
hashlib
import
md5
from
Products.ERP5Type.Utils
import
str2bytes
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
web_site
=
None
web_site
=
None
...
@@ -32,7 +33,7 @@ return [Object(**{
...
@@ -32,7 +33,7 @@ return [Object(**{
'author'
:
'Administrator'
,
'author'
:
'Administrator'
,
'link'
:
"%s?date=%s"
%
(
url
,
date_id
),
'link'
:
"%s?date=%s"
%
(
url
,
date_id
),
'pubDate'
:
DateTime
().
earliestTime
(),
'pubDate'
:
DateTime
().
earliestTime
(),
'guid'
:
md5
(
"%s-%s"
%
(
url
,
date_id
)).
hexdigest
(),
'guid'
:
md5
(
str2bytes
(
"%s-%s"
%
(
url
,
date_id
)
)).
hexdigest
(),
'description'
:
description
,
'description'
:
description
,
'thumbnail'
:
(
None
)})
'thumbnail'
:
(
None
)})
]
]
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