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
7
Merge Requests
7
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
Jérome Perrin
erp5
Commits
7382b7da
Commit
7382b7da
authored
Oct 04, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! py2/py3: Make Products code compatible with both python2 and python3.
parent
858ff048
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product/ERP5/Document/Alarm.py
product/ERP5/Document/Alarm.py
+2
-1
No files found.
product/ERP5/Document/Alarm.py
View file @
7382b7da
...
...
@@ -40,6 +40,7 @@ from Products.CMFActivity.ActivityRuntimeEnvironment import getActivityRuntimeEn
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.XMLObject
import
XMLObject
from
Products.ERP5Type.UnrestrictedMethod
import
UnrestrictedMethod
from
Products.ERP5Type.Utils
import
str2bytes
from
Products.ERP5.mixin.periodicity
import
PeriodicityMixin
class
Alarm
(
XMLObject
,
PeriodicityMixin
):
...
...
@@ -358,7 +359,7 @@ class Alarm(XMLObject, PeriodicityMixin):
for
x
in
result_list
]
rendered_alarm_result
=
'
\
n
'
.
join
(
rendered_alarm_result_list
)
attachment_list
.
append
({
'name'
:
'alarm_result.txt'
,
'content'
:
rendered_alarm_result
.
encode
(
),
'content'
:
str2bytes
(
rendered_alarm_result
),
'mime_type'
:
'text/plain'
})
notification_tool
.
sendMessage
(
recipient
=
candidate_list
,
...
...
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