predicates.py
changeset 8889 be91151107f6
parent 8867 6ad000b91347
parent 8872 b638a99ab9cf
child 9157 3e4bef7d514d
--- a/predicates.py	Wed Apr 10 16:46:18 2013 +0200
+++ b/predicates.py	Mon Apr 15 13:18:01 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.