diff options
| author | Bertrand Janin <tamentis@neopulsar.org> | 2010-12-05 13:48:09 -0500 |
|---|---|---|
| committer | Bertrand Janin <tamentis@neopulsar.org> | 2010-12-05 13:48:09 -0500 |
| commit | b4ddae4694c94a9b1281aab9f3ca5f21979d203b (patch) | |
| tree | f7a25a2d23fdb1bc711401a286eda0ca05e810e1 /docs/tutorials | |
| parent | 16388c331306114c39865207dcdf97722436ea28 (diff) | |
| download | pyramid-b4ddae4694c94a9b1281aab9f3ca5f21979d203b.tar.gz pyramid-b4ddae4694c94a9b1281aab9f3ca5f21979d203b.tar.bz2 pyramid-b4ddae4694c94a9b1281aab9f3ca5f21979d203b.zip | |
Updated references to 'app' by 'main'.
Diffstat (limited to 'docs/tutorials')
| -rw-r--r-- | docs/tutorials/wiki2/basiclayout.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/tutorials/wiki2/basiclayout.rst b/docs/tutorials/wiki2/basiclayout.rst index 01fdd351e..a9f7b2282 100644 --- a/docs/tutorials/wiki2/basiclayout.rst +++ b/docs/tutorials/wiki2/basiclayout.rst @@ -19,12 +19,12 @@ an ``__init__.py`` file. Even if empty, this marks a directory as a Python package. We use ``__init__.py`` both as a package marker and to contain configuration code. -When you run the application using the ``paster`` command using the -``development.ini`` generated config file, the application configuration -points at an Setuptools *entry point* described as ``egg:tutorial#app``. In -our application, because the application's ``setup.py`` file says so, this -entry point happens to be the ``app`` function within the file named -``__init__.py``: +The generated ``development.ini`` file is read by ``paster`` which looks for +the application module in the ``use`` variable of the ``app:tutorial`` +section. The *entry point* is defined in the Setuptools configuration of this +module, specifically in the ``setup.py`` file. For this tutorial, the *entry +point* is defined as ``tutorial:main`` and points to the following ``main`` +function: .. literalinclude:: src/basiclayout/tutorial/__init__.py :linenos: |
