git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
miscell
[plcapi.git]
/
PLC
/
Methods
/
GetPersons.py
diff --git
a/PLC/Methods/GetPersons.py
b/PLC/Methods/GetPersons.py
index
06da9f5
..
53143e0
100644
(file)
--- a/
PLC/Methods/GetPersons.py
+++ b/
PLC/Methods/GetPersons.py
@@
-50,7
+50,7
@@
class GetPersons(Method):
for site in sites:
valid_person_ids += site['person_ids']
if not valid_person_ids:
for site in sites:
valid_person_ids += site['person_ids']
if not valid_person_ids:
- return
[]
+ return[]
# this may look suspicious; what if person_filter is not None ?
# turns out the results are getting filtered again below, so we're safe
# this may look suspicious; what if person_filter is not None ?
# turns out the results are getting filtered again below, so we're safe
@@
-70,7
+70,7
@@
class GetPersons(Method):
# Must query at least person_id, site_ids, and role_ids (see
# Person.can_view() and below).
if return_fields is not None:
# Must query at least person_id, site_ids, and role_ids (see
# Person.can_view() and below).
if return_fields is not None:
- added_fields = set(['person_id', 'site_ids', 'role_ids','roles']).difference(return_fields)
+ added_fields = set(['person_id', 'site_ids', 'role_ids',
'roles']).difference(return_fields)
return_fields += added_fields
else:
added_fields = []
return_fields += added_fields
else:
added_fields = []