From 21bff45c53e06d283518265b5381450b2f188944 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Sat, 24 Nov 2018 09:18:53 -0600 Subject: Add "constructor" glossary entry --- docs/glossary.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/glossary.rst') diff --git a/docs/glossary.rst b/docs/glossary.rst index 7f396dc7d..89c03860b 100644 --- a/docs/glossary.rst +++ b/docs/glossary.rst @@ -1219,3 +1219,10 @@ Glossary Settings are collected at application startup. They can affect all the components which make up the the application. Pyramid itself, any tweens or Pyramid add-ons used, and :ref:`your own code may reference ` and act on settings. + + constructor + A function returning a Pyramid :term:`WSGI` application. + Every Pyramid application has a single constructor function named ``main``. + It returns a Pyramid :term:`router` generated by a :term:`configurator`, and is written by you. + The Pyramid constructor is the application's :term:`entry point`. + -- cgit v1.2.3