# HG changeset patch # User Sylvain Thénault # Date 1255958443 -7200 # Node ID c414f402cbffb8b7e58896fe4bd196facad68efc # Parent a02f7df5bbec835bbc967ad3939d2833fcaa1753 2.4 compat diff -r a02f7df5bbec -r c414f402cbff entities/wfobjs.py --- a/entities/wfobjs.py Mon Oct 19 15:17:20 2009 +0200 +++ b/entities/wfobjs.py Mon Oct 19 15:20:43 2009 +0200 @@ -11,6 +11,7 @@ from logilab.common.decorators import cached, clear_cache from logilab.common.deprecation import deprecated +from logilab.common.compat import any from cubicweb.entities import AnyEntity, fetch_config from cubicweb.interfaces import IWorkflowable diff -r a02f7df5bbec -r c414f402cbff selectors.py --- a/selectors.py Mon Oct 19 15:17:20 2009 +0200 +++ b/selectors.py Mon Oct 19 15:20:43 2009 +0200 @@ -45,7 +45,7 @@ import logging from warnings import warn, filterwarnings -from logilab.common.compat import all +from logilab.common.compat import all, any from logilab.common.interface import implements as implements_iface from yams import BASE_TYPES diff -r a02f7df5bbec -r c414f402cbff server/repository.py --- a/server/repository.py Mon Oct 19 15:17:20 2009 +0200 +++ b/server/repository.py Mon Oct 19 15:20:43 2009 +0200 @@ -24,6 +24,7 @@ from time import time, localtime, strftime from logilab.common.decorators import cached +from logilab.common.compat import any from yams import BadSchemaDefinition from rql import RQLSyntaxError diff -r a02f7df5bbec -r c414f402cbff web/test/unittest_form.py --- a/web/test/unittest_form.py Mon Oct 19 15:17:20 2009 +0200 +++ b/web/test/unittest_form.py Mon Oct 19 15:20:43 2009 +0200 @@ -10,6 +10,7 @@ from xml.etree.ElementTree import fromstring from logilab.common.testlib import unittest_main, mock_object +from logilab.common.compat import any from cubicweb import Binary from cubicweb.devtools.testlib import CubicWebTC diff -r a02f7df5bbec -r c414f402cbff web/test/unittest_views_editforms.py --- a/web/test/unittest_views_editforms.py Mon Oct 19 15:17:20 2009 +0200 +++ b/web/test/unittest_views_editforms.py Mon Oct 19 15:20:43 2009 +0200 @@ -6,9 +6,12 @@ :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses """ from logilab.common.testlib import unittest_main +from logilab.common.compat import any + from cubicweb.devtools.testlib import CubicWebTC from cubicweb.web.views.autoform import AutomaticEntityForm as AEF from cubicweb.web.formwidgets import AutoCompletionWidget + def rbc(entity, category): return [(rschema.type, x) for rschema, tschemas, x in AEF.erelations_by_category(entity, category)]