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
Léo-Paul Géneau
erp5
Commits
5c349095
Commit
5c349095
authored
Aug 17, 2014
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix security declarations.
parent
1b8b06d0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
product/ERP5/Document/PresencePeriod.py
product/ERP5/Document/PresencePeriod.py
+1
-1
product/ERP5/Tool/TaskDistributionTool.py
product/ERP5/Tool/TaskDistributionTool.py
+1
-1
No files found.
product/ERP5/Document/PresencePeriod.py
View file @
5c349095
...
@@ -114,7 +114,7 @@ class PresencePeriod(Movement, PeriodicityMixin):
...
@@ -114,7 +114,7 @@ class PresencePeriod(Movement, PeriodicityMixin):
return
result
return
result
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getExceptionValueList'
)
'get
CalendarPeriod
ExceptionValueList'
)
def
getCalendarPeriodExceptionValueList
(
self
):
def
getCalendarPeriodExceptionValueList
(
self
):
"""
"""
Return a list of objects that allows te define exception to the
Return a list of objects that allows te define exception to the
...
...
product/ERP5/Tool/TaskDistributionTool.py
View file @
5c349095
...
@@ -273,7 +273,7 @@ class TaskDistributionTool(BaseTool):
...
@@ -273,7 +273,7 @@ class TaskDistributionTool(BaseTool):
test_result
=
portal
.
restrictedTraverse
(
test_result_path
)
test_result
=
portal
.
restrictedTraverse
(
test_result_path
)
return
test_result
.
getSimulationState
()
==
"started"
and
1
or
0
return
test_result
.
getSimulationState
()
==
"started"
and
1
or
0
security
.
declare
ObjectProtected
(
Permissions
.
AccessContentsInformation
)
security
.
declare
Protected
(
Permissions
.
AccessContentsInformation
,
'getMemcachedDict'
)
def
getMemcachedDict
(
self
):
def
getMemcachedDict
(
self
):
""" Return a dictionary used for non persistent data related to distribution
""" Return a dictionary used for non persistent data related to distribution
"""
"""
...
...
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