Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
preetwinder
erp5
Commits
5c349095
Commit
5c349095
authored
10 years ago
by
Kazuhiko Shiozaki
Browse files
Options
Download
Email Patches
Plain Diff
fix security declarations.
parent
1b8b06d0
Changes
2
Hide 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):
return
result
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getExceptionValueList'
)
'get
CalendarPeriod
ExceptionValueList'
)
def
getCalendarPeriodExceptionValueList
(
self
):
"""
Return a list of objects that allows te define exception to the
...
...
This diff is collapsed.
Click to expand it.
product/ERP5/Tool/TaskDistributionTool.py
View file @
5c349095
...
...
@@ -273,7 +273,7 @@ class TaskDistributionTool(BaseTool):
test_result
=
portal
.
restrictedTraverse
(
test_result_path
)
return
test_result
.
getSimulationState
()
==
"started"
and
1
or
0
security
.
declare
Object
Protected
(
Permissions
.
AccessContentsInformation
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getMemcachedDict'
)
def
getMemcachedDict
(
self
):
""" Return a dictionary used for non persistent data related to distribution
"""
...
...
This diff is collapsed.
Click to expand it.
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