Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Romain Courteaud
erp5_rtl_support
Commits
e40756db
Commit
e40756db
authored
Oct 24, 2016
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Security: support ERP5User without Person that is (for now) used in unit tests.
parent
e641651b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
product/ERP5Security/ERP5UserFactory.py
product/ERP5Security/ERP5UserFactory.py
+5
-5
No files found.
product/ERP5Security/ERP5UserFactory.py
View file @
e40756db
...
...
@@ -214,13 +214,13 @@ class ERP5User(PropertiedUser):
result
=
self
.
_user_value
if
result
is
not
None
:
return
result
user
,
=
[
x
for
x
in
self
.
aq_parent
.
searchUsers
(
user
_list
=
[
x
for
x
in
self
.
aq_parent
.
searchUsers
(
exact_match
=
True
,
id
=
self
.
getId
(),
)
if
'path'
in
x
]
if
len
(
user_list
)
==
1
:
result
=
self
.
_user_value
=
self
.
getPortalObject
().
restrictedTraverse
(
user
[
'path'
],
)
user_list
[
0
][
'path'
])
return
result
def
getLoginValue
(
self
):
...
...
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