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
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
Titouan Soulard
erp5
Commits
4a7c43e8
Commit
4a7c43e8
authored
May 02, 2018
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alarm Tool: use the new getCurrentNode independent from Activity Tool
parent
c1c87afe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product/ERP5/Tool/AlarmTool.py
product/ERP5/Tool/AlarmTool.py
+2
-1
No files found.
product/ERP5/Tool/AlarmTool.py
View file @
4a7c43e8
...
...
@@ -32,6 +32,7 @@ import threading
from
AccessControl
import
ClassSecurityInfo
from
AccessControl.SecurityManagement
import
getSecurityManager
,
\
newSecurityManager
,
setSecurityManager
from
Products.CMFActivity.ActivityTool
import
getCurrentNode
from
Products.ERP5Type.Globals
import
InitializeClass
,
DTMLFile
,
PersistentMapping
from
Products.ERP5Type.Core.Folder
import
Folder
from
Products.ERP5Type.Tool.BaseTool
import
BaseTool
...
...
@@ -164,7 +165,7 @@ class AlarmTool(TimerServiceMixin, BaseTool):
self
.
setupCurrentSkin
(
self
.
REQUEST
)
# only start when we are the alarmNode
alarmNode
=
self
.
getAlarmNode
()
current_node
=
self
.
getCurrentNode
()
current_node
=
getCurrentNode
()
if
alarmNode
==
''
:
self
.
setAlarmNode
(
current_node
)
alarmNode
=
current_node
...
...
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