doc/api/pyramid/tools.rst
author Denis Laxalde <denis.laxalde@logilab.fr>
Fri, 27 Jan 2017 11:05:07 +0100
changeset 11945 ef6b18c56b5a
parent 11930 83a921bae21c
permissions -rw-r--r--
[skeleton] Add an entry point and configuration for running a Pyramid application We add a `pyramid_main` function in __init__.py that instantiate the WSGI application using "cubicweb.pyramid"; this is defined as an entry point (in setup.py) so that pserve_ can find it. Alongside comes a development.ini file which includes basic settings so that running a Pyramid+CubicWeb application works (only the "instance=<appid>" may be passed as a command-line argument). Logging is also configured there, but only includes the cube at stake and cubicweb (others could be added if needed). .. _perse: \ http://docs.pylonsproject.org/projects/pyramid/en/1.8-branch/pscripts/pserve.html
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11551
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     1
.. _tools_module:
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     2
11631
faf279e33298 Merge with pyramid-cubicweb
Yann Voté <yann.vote@logilab.fr>
parents: 11551
diff changeset
     3
:mod:`cubicweb.pyramid.tools`
11930
83a921bae21c [pkg] Fix some error on building documentation
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 11631
diff changeset
     4
-----------------------------
11551
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     5
11631
faf279e33298 Merge with pyramid-cubicweb
Yann Voté <yann.vote@logilab.fr>
parents: 11551
diff changeset
     6
.. automodule:: cubicweb.pyramid.tools
11551
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     7
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     8
    .. autofunction:: includeme
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     9
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    10
    .. autofunction:: clone_user
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    11
    .. autofunction:: cnx_attach_entity
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    12
    .. autofunction:: cached_build_user
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    13
    .. autofunction:: clear_cache