git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee2413a
)
filter password from return
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Sun, 10 Mar 2013 02:26:20 +0000
(21:26 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Sun, 10 Mar 2013 02:26:20 +0000
(21:26 -0500)
PLC/Methods/GetPersons.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/GetPersons.py
b/PLC/Methods/GetPersons.py
index
20427e3
..
8e66615
100644
(file)
--- a/
PLC/Methods/GetPersons.py
+++ b/
PLC/Methods/GetPersons.py
@@
-36,7
+36,12
@@
class GetPersons(Method):
returns = [return_fields]
def call(self, auth, person_filter = None, return_fields = None):
- persons = Persons(self.api, person_filter, return_fields)
+ if return_fields:
+ return_fields = filter(lambda field: field not in hidden_fields,
+ return_fields)
+ else:
+ return_fields = self.return_fields.keys()
+ persons = Persons(self.api, person_filter, return_fields.keys())
# Filter out accounts that are not viewable
#if isinstance(self.caller, Person) and \