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
138
Merge Requests
138
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
35cadb66
Commit
35cadb66
authored
May 16, 2018
by
Roque
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMFActivity: warnings for deprecated methods
parent
bb4a3312
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
product/CMFActivity/ActivityTool.py
product/CMFActivity/ActivityTool.py
+10
-4
No files found.
product/CMFActivity/ActivityTool.py
View file @
35cadb66
...
...
@@ -859,8 +859,11 @@ class ActivityTool (Folder, UniqueObject):
"""
Backward-compatibility code only.
"""
LOG
(
'ActivityTool'
,
WARNING
,
'"getServerAddress" class method is deprecated, use "getServerAddress" module-level function instead.'
)
warnings
.
warn
(
'"getServerAddress" class method is deprecated, use "getServerAddress" module-level function instead.'
,
DeprecationWarning
,
stacklevel
=
2
,
)
return
getServerAddress
()
security
.
declareProtected
(
CMFCorePermissions
.
ManagePortal
,
'getCurrentNode'
)
...
...
@@ -868,8 +871,11 @@ class ActivityTool (Folder, UniqueObject):
"""
Backward-compatibility code only.
"""
LOG
(
'ActivityTool'
,
WARNING
,
'"getCurrentNode" class method is deprecated, use "getCurrentNode" module-level function instead.'
)
warnings
.
warn
(
'"getCurrentNode" class method is deprecated, use "getCurrentNode" module-level function instead.'
,
DeprecationWarning
,
stacklevel
=
2
,
)
return
getCurrentNode
()
security
.
declareProtected
(
CMFCorePermissions
.
ManagePortal
,
'getDistributingNode'
)
...
...
Roque
@rporchetto
mentioned in merge request
!647 (merged)
·
May 16, 2018
mentioned in merge request
!647 (merged)
mentioned in merge request !647
Toggle commit 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