predicates.py
branchstable
changeset 8872 b638a99ab9cf
parent 8866 64f24ecad177
child 8889 be91151107f6
child 9152 b0155bfd4e17
--- a/predicates.py	Mon Apr 08 16:53:03 2013 +0200
+++ b/predicates.py	Mon Apr 08 17:12:53 2013 +0200
@@ -190,7 +190,7 @@
 
 from logilab.common.compat import all, any
 from logilab.common.interface import implements as implements_iface
-from logilab.common.registry import Predicate, objectify_predicate
+from logilab.common.registry import Predicate, objectify_predicate, yes
 
 from yams.schema import BASE_TYPES, role_name
 from rql.nodes import Function
@@ -201,6 +201,9 @@
 from cubicweb.uilib import eid_param
 from cubicweb.schema import split_expression
 
+# remember, these imports are there for bw compat only
+__BACKWARD_COMPAT_IMPORTS = (yes,)
+
 def score_interface(etypesreg, eclass, iface):
     """Return XXX if the give object (maybe an instance or class) implements
     the interface.