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
140
Merge Requests
140
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
f72165fd
Commit
f72165fd
authored
Dec 09, 2014
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PreferenceTool: fix _getPreference Unauthorized
parent
d8373308
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
product/ERP5Form/PreferenceTool.py
product/ERP5Form/PreferenceTool.py
+1
-2
No files found.
product/ERP5Form/PreferenceTool.py
View file @
f72165fd
...
@@ -30,7 +30,6 @@
...
@@ -30,7 +30,6 @@
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
AccessControl.SecurityManagement
import
getSecurityManager
,
\
from
AccessControl.SecurityManagement
import
getSecurityManager
,
\
setSecurityManager
,
newSecurityManager
setSecurityManager
,
newSecurityManager
from
AccessControl.ZopeGuards
import
guarded_getattr
from
MethodObject
import
Method
from
MethodObject
import
Method
from
Products.ERP5Type.Globals
import
InitializeClass
,
DTMLFile
from
Products.ERP5Type.Globals
import
InitializeClass
,
DTMLFile
...
@@ -73,7 +72,7 @@ class PreferenceMethod(Method):
...
@@ -73,7 +72,7 @@ class PreferenceMethod(Method):
# there is a design problem in current archive API.
# there is a design problem in current archive API.
sql_catalog_id
=
kw
.
pop
(
'sql_catalog_id'
,
None
)
sql_catalog_id
=
kw
.
pop
(
'sql_catalog_id'
,
None
)
for
pref
in
instance
.
_getSortedPreferenceList
(
sql_catalog_id
=
sql_catalog_id
):
for
pref
in
instance
.
_getSortedPreferenceList
(
sql_catalog_id
=
sql_catalog_id
):
value
=
g
uarded_g
etattr
(
pref
,
self
.
_preference_getter
)(
_marker
,
*
args
,
**
kw
)
value
=
getattr
(
pref
,
self
.
_preference_getter
)(
_marker
,
*
args
,
**
kw
)
# XXX Due to UI limitation, null value is treated as if the property
# XXX Due to UI limitation, null value is treated as if the property
# was not defined. The drawback is that it is not possible for a
# was not defined. The drawback is that it is not possible for a
# user to mask a non-null global value with a null value.
# user to mask a non-null global value with a null value.
...
...
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