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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5
Commits
35cadb66
Commit
35cadb66
authored
May 16, 2018
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMFActivity: warnings for deprecated methods
parent
bb4a3312
Changes
1
Hide 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):
...
@@ -859,8 +859,11 @@ class ActivityTool (Folder, UniqueObject):
"""
"""
Backward-compatibility code only.
Backward-compatibility code only.
"""
"""
LOG
(
'ActivityTool'
,
WARNING
,
warnings
.
warn
(
'"getServerAddress" class method is deprecated, use "getServerAddress" module-level function instead.'
)
'"getServerAddress" class method is deprecated, use "getServerAddress" module-level function instead.'
,
DeprecationWarning
,
stacklevel
=
2
,
)
return
getServerAddress
()
return
getServerAddress
()
security
.
declareProtected
(
CMFCorePermissions
.
ManagePortal
,
'getCurrentNode'
)
security
.
declareProtected
(
CMFCorePermissions
.
ManagePortal
,
'getCurrentNode'
)
...
@@ -868,8 +871,11 @@ class ActivityTool (Folder, UniqueObject):
...
@@ -868,8 +871,11 @@ class ActivityTool (Folder, UniqueObject):
"""
"""
Backward-compatibility code only.
Backward-compatibility code only.
"""
"""
LOG
(
'ActivityTool'
,
WARNING
,
warnings
.
warn
(
'"getCurrentNode" class method is deprecated, use "getCurrentNode" module-level function instead.'
)
'"getCurrentNode" class method is deprecated, use "getCurrentNode" module-level function instead.'
,
DeprecationWarning
,
stacklevel
=
2
,
)
return
getCurrentNode
()
return
getCurrentNode
()
security
.
declareProtected
(
CMFCorePermissions
.
ManagePortal
,
'getDistributingNode'
)
security
.
declareProtected
(
CMFCorePermissions
.
ManagePortal
,
'getDistributingNode'
)
...
...
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