[Zope-CMF] Re: [CMF-checkins] CVS: Products/CMFCore
Florent Guillaume
fg at nuxeo.com
Fri Apr 8 09:05:49 EDT 2005
Yvo Schubbe wrote:
> === Products/CMFCore/CatalogTool.py 1.55.2.4 => 1.55.2.5 ===
> --- Products/CMFCore/CatalogTool.py:1.55.2.4 Fri Mar 25 12:16:58 2005
> +++ Products/CMFCore/CatalogTool.py Thu Apr 7 12:37:46 2005
> @@ -249,8 +247,8 @@
> if kw.has_key(k):
> range = kw[k]['range'] or ''
> query = kw[k]['query']
> - if (not isinstance(query, TupleType) and
> - not isinstance(query, ListType)):
> + if (not isinstance(query, tuple) and
> + not isinstance(query, list)):
> query = (query,)
> else:
> range = ''
Here you can actually use:
if not isinstance(query, (tuple, list)):
Florent
--
Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D
+33 1 40 33 71 59 http://nuxeo.com fg at nuxeo.com
More information about the Zope-CMF
mailing list