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   [EMAIL PROTECTED]
_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to