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:
65eccc2
)
fix bug, 'node_filter' should be 'person_filter'
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 4 Aug 2009 22:04:24 +0000
(22:04 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 4 Aug 2009 22:04:24 +0000
(22:04 +0000)
PLC/Persons.py
patch
|
blob
|
history
diff --git
a/PLC/Persons.py
b/PLC/Persons.py
index
6feb270
..
862d6ba
100644
(file)
--- a/
PLC/Persons.py
+++ b/
PLC/Persons.py
@@
-388,7
+388,7
@@
class Persons(Table):
# Separate the list into integers and strings
ints = filter(lambda x: isinstance(x, (int, long)), person_filter)
strs = filter(lambda x: isinstance(x, StringTypes), person_filter)
# Separate the list into integers and strings
ints = filter(lambda x: isinstance(x, (int, long)), person_filter)
strs = filter(lambda x: isinstance(x, StringTypes), person_filter)
-
node
_filter = Filter(Person.fields, {'person_id': ints, 'email': strs})
+
person
_filter = Filter(Person.fields, {'person_id': ints, 'email': strs})
sql += " AND (%s) %s" % person_filter.sql(api, "OR")
elif isinstance(person_filter, dict):
person_filter = Filter(Person.fields, person_filter)
sql += " AND (%s) %s" % person_filter.sql(api, "OR")
elif isinstance(person_filter, dict):
person_filter = Filter(Person.fields, person_filter)