X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FPersons.py;h=c61e8bda254d6b0aeb2d6575758d585aac1993ef;hb=e1a827010ec8e6e5c1e1272e22b3269108bcc9c8;hp=519a088e201312288a26bf43dea5b272160f2c53;hpb=582a9d6c7de8de214d9824c2e232737fc4d7b74a;p=plcapi.git diff --git a/PLC/Persons.py b/PLC/Persons.py index 519a088..c61e8bd 100644 --- a/PLC/Persons.py +++ b/PLC/Persons.py @@ -4,7 +4,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: Persons.py,v 1.16 2006/11/02 18:32:55 mlhuang Exp $ +# $Id: Persons.py,v 1.17 2006/11/08 22:45:20 mlhuang Exp $ # from types import StringTypes @@ -297,7 +297,7 @@ class Persons(Table): ", ".join(Person.fields) if person_filter is not None: - if isinstance(person_filter, list): + if isinstance(person_filter, (list, tuple, set)): # 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)