2.4 compat
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 19 Oct 2009 15:20:43 +0200
changeset 3722 c414f402cbff
parent 3721 a02f7df5bbec
child 3723 a961c7cb2644
2.4 compat
entities/wfobjs.py
selectors.py
server/repository.py
web/test/unittest_form.py
web/test/unittest_views_editforms.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
--- 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
--- 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
--- 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
--- 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)]