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
Hugo Ricateau
erp5
Commits
f8c9dcd7
Commit
f8c9dcd7
authored
9 years ago
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Base.skinSuper when returned script has proxy roles
parent
ee15dfe2
master
commit_tool
test-ui
test-rjsacc
test-rjs
renderjs-test
erp5.util-0.4.49
erp5.util-0.4.46
erp5.util-0.4.44
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
product/ERP5Type/Base.py
product/ERP5Type/Base.py
+6
-2
No files found.
product/ERP5Type/Base.py
View file @
f8c9dcd7
...
@@ -2947,9 +2947,13 @@ class Base( CopyContainer,
...
@@ -2947,9 +2947,13 @@ class Base( CopyContainer,
if
id
[:
1
]
!=
'_'
and
id
[:
3
]
!=
'aq_'
:
if
id
[:
1
]
!=
'_'
and
id
[:
3
]
!=
'aq_'
:
skin_info
=
SKINDATA
.
get
(
thread
.
get_ident
())
skin_info
=
SKINDATA
.
get
(
thread
.
get_ident
())
if
skin_info
is
not
None
:
if
skin_info
is
not
None
:
object
=
skinResolve
(
self
.
getPortalObject
(),
(
skin_info
[
0
],
skin
),
id
)
portal
=
self
.
getPortalObject
()
object
=
skinResolve
(
portal
,
(
skin_info
[
0
],
skin
),
id
)
if
object
is
not
None
:
if
object
is
not
None
:
return
object
.
__of__
(
self
)
# First wrap at the portal to set the owner of the executing script.
# This mimics the usual way to get an object from skin folders,
# and it's required when 'object' is an script with proxy roles.
return
object
.
__of__
(
portal
).
__of__
(
self
)
raise
AttributeError
(
id
)
raise
AttributeError
(
id
)
def
_getAcquireLocalRoles
(
self
):
def
_getAcquireLocalRoles
(
self
):
...
...
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