doc/api/predicates.rst
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 24 Nov 2016 15:36:26 +0100
changeset 11892 08cf02efc7ce
parent 10499 d0907690af55
child 12792 e2cdb1be6bd9
permissions -rw-r--r--
Simplify and fix _cw.drop_entity_cache * it's never called with an eid as argument, beside in a useless case in test (removed) * the only place where it's called from outside the tests is in full-text reindexation in server.checkintegrity: we could removed the request implementation and move it in unittest_rset, byt I decided to keep it for consistency with all other entity cache handling methods * get back a fix from Julien Cristau for the connection's implementation, quoting is commit message: When removing an entity from the transaction's cache, clear the entity's own cache May avoid issues where an entity object is still accessible somewhere else (e.g. an operation) after dropping it from the transaction's cache, with a stale attribute or relation cache.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10499
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
     1
.. _predicates_module:
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
     2
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
     3
:mod:`cubicweb.predicates`
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
     4
==========================
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
     5
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
     6
.. automodule:: cubicweb.predicates
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
     7
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
     8
   .. autoclass:: cubicweb.appobject.yes
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
     9
   .. autoclass:: cubicweb.predicates.match_kwargs
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    10
   .. autoclass:: cubicweb.predicates.appobject_selectable
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    11
   .. autoclass:: cubicweb.predicates.adaptable
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    12
   .. autoclass:: cubicweb.predicates.configuration_values
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    13
   
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    14
   .. autoclass:: cubicweb.predicates.none_rset
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    15
   .. autoclass:: cubicweb.predicates.any_rset
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    16
   .. autoclass:: cubicweb.predicates.nonempty_rset
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    17
   .. autoclass:: cubicweb.predicates.empty_rset
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    18
   .. autoclass:: cubicweb.predicates.one_line_rset
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    19
   .. autoclass:: cubicweb.predicates.multi_lines_rset
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    20
   .. autoclass:: cubicweb.predicates.multi_columns_rset
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    21
   .. autoclass:: cubicweb.predicates.paginated_rset
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    22
   .. autoclass:: cubicweb.predicates.sorted_rset
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    23
   .. autoclass:: cubicweb.predicates.one_etype_rset
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    24
   .. autoclass:: cubicweb.predicates.multi_etypes_rset
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    25
   
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    26
   .. autoclass:: cubicweb.predicates.non_final_entity
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    27
   .. autoclass:: cubicweb.predicates.is_instance
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    28
   .. autoclass:: cubicweb.predicates.score_entity
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    29
   .. autoclass:: cubicweb.predicates.rql_condition
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    30
   .. autoclass:: cubicweb.predicates.relation_possible
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    31
   .. autoclass:: cubicweb.predicates.partial_relation_possible
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    32
   .. autoclass:: cubicweb.predicates.has_related_entities
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    33
   .. autoclass:: cubicweb.predicates.partial_has_related_entities
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    34
   .. autoclass:: cubicweb.predicates.has_permission
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    35
   .. autoclass:: cubicweb.predicates.has_add_permission
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    36
   .. autoclass:: cubicweb.predicates.has_mimetype
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    37
   .. autoclass:: cubicweb.predicates.is_in_state
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    38
   .. autofunction:: cubicweb.predicates.on_fire_transition
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    39
   
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    40
   .. autoclass:: cubicweb.predicates.match_user_groups
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    41
   
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    42
   .. autoclass:: cubicweb.predicates.no_cnx
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    43
   .. autoclass:: cubicweb.predicates.anonymous_user
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    44
   .. autoclass:: cubicweb.predicates.authenticated_user
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    45
   .. autoclass:: cubicweb.predicates.match_form_params
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    46
   .. autoclass:: cubicweb.predicates.match_search_state
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    47
   .. autoclass:: cubicweb.predicates.match_context_prop
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    48
   .. autoclass:: cubicweb.predicates.match_context
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    49
   .. autoclass:: cubicweb.predicates.match_view
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    50
   .. autoclass:: cubicweb.predicates.primary_view
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    51
   .. autoclass:: cubicweb.predicates.contextual
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    52
   .. autoclass:: cubicweb.predicates.specified_etype_implements
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    53
   .. autoclass:: cubicweb.predicates.attribute_edited
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    54
   .. autoclass:: cubicweb.predicates.match_transition
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    55
   
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    56
   .. autoclass:: cubicweb.predicates.match_exception
d0907690af55 [doc] move the documentations from docstring directly to the book.
David Douard <david.douard@logilab.fr>
parents:
diff changeset
    57
   .. autoclass:: cubicweb.predicates.debug_mode