[docstring] minor: add warning about entity cache for rql_condition selector stable
authorJulien Jehannet <julien@smaf.org>
Thu, 20 Jan 2011 14:38:53 +0100
branchstable
changeset 6871 b746dae3a004
parent 6870 658039c5eeac
child 6872 23554151486c
[docstring] minor: add warning about entity cache for rql_condition selector
selectors.py
--- a/selectors.py	Fri Jan 21 12:51:58 2011 +0100
+++ b/selectors.py	Thu Jan 20 14:38:53 2011 +0100
@@ -1145,6 +1145,11 @@
     must use 'X' variable to represent the context entity and may use 'U' to
     represent the request's user.
 
+    .. warning::
+        If simply testing value of some attribute/relation of context entity (X),
+        you should rather use the :class:`score_entity` selector which will
+        benefit from the ORM's request entities cache.
+
     See :class:`~cubicweb.selectors.EntitySelector` documentation for entity
     lookup / score rules according to the input context.
     """