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
Hide 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,14 +214,14 @@ class ERP5User(PropertiedUser):
...
@@ -214,14 +214,14 @@ class ERP5User(PropertiedUser):
result
=
self
.
_user_value
result
=
self
.
_user_value
if
result
is
not
None
:
if
result
is
not
None
:
return
result
return
result
user
,
=
[
x
for
x
in
self
.
aq_parent
.
searchUsers
(
user
_list
=
[
x
for
x
in
self
.
aq_parent
.
searchUsers
(
exact_match
=
True
,
exact_match
=
True
,
id
=
self
.
getId
(),
id
=
self
.
getId
(),
)
if
'path'
in
x
]
)
if
'path'
in
x
]
result
=
self
.
_user_value
=
self
.
getPortalObject
().
restrictedTraverse
(
if
len
(
user_list
)
==
1
:
user
[
'path'
],
result
=
self
.
_user_value
=
self
.
getPortalObject
().
restrictedTraverse
(
)
user_list
[
0
][
'path'
]
)
return
result
return
result
def
getLoginValue
(
self
):
def
getLoginValue
(
self
):
""" -> login document
""" -> login document
...
...
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