doc/api/predicates.rst
author Philippe Pepiot <ph@itsalwaysdns.eu>
Tue, 31 Mar 2020 19:15:03 +0200
changeset 12957 0c973204033a
parent 12792 e2cdb1be6bd9
permissions -rw-r--r--
[server] prevent returning closed cursor to the database pool In since c8c6ad8 init_repository use repo.internal_cnx() instead of repo.system_source.get_connection() so it use the pool and we should not close cursors from the pool before returning it back. Otherwise we may have "connection already closed" error. This bug only trigger when connection-pool-size = 1. Since we are moving to use a dynamic pooler we need to get this fixed. This does not occur with sqlite since the connection wrapper instantiate new cursor everytime, but this occur with other databases.
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
12792
e2cdb1be6bd9 [doc8] D002 Trailing whitespace
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 10499
diff changeset
    13
10499
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
12792
e2cdb1be6bd9 [doc8] D002 Trailing whitespace
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 10499
diff changeset
    25
10499
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
12792
e2cdb1be6bd9 [doc8] D002 Trailing whitespace
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 10499
diff changeset
    39
10499
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
12792
e2cdb1be6bd9 [doc8] D002 Trailing whitespace
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 10499
diff changeset
    41
10499
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
12792
e2cdb1be6bd9 [doc8] D002 Trailing whitespace
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 10499
diff changeset
    55
10499
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