doc/api/predicates.rst
author Philippe Pepiot <ph@itsalwaysdns.eu>
Tue, 31 Mar 2020 18:22:05 +0200
changeset 12966 6cd938c29ca3
parent 12792 e2cdb1be6bd9
permissions -rw-r--r--
[server] Make connection pooler configurable and set better default values Drop the configuration connections-pool-size and add new configurations options: * connections-pool-min-size. Set to 0 by default so we open connections only when needed. This avoid opening min-size*processes connections at startup, which is, it think, a good default. * connections-pool-max-size. Set to 0 (unlimited) by default, so we move the bottleneck to postgresql. * connections-idle-timeout. Set to 10 minutes. I don't have arguments about this except that this is the default in pgbouncer.
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