diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-11-22 01:57:13 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-11-22 01:57:13 +0000 |
| commit | c947545b2a86b5fd07fe5ad6a33556a5ce1f2f7b (patch) | |
| tree | 1df5c4d3c1b2affef5371581a598baf289b071e3 /docs | |
| parent | 1cd48deb6b55b9fc36e433cde80229646013bce0 (diff) | |
| download | pyramid-c947545b2a86b5fd07fe5ad6a33556a5ce1f2f7b.tar.gz pyramid-c947545b2a86b5fd07fe5ad6a33556a5ce1f2f7b.tar.bz2 pyramid-c947545b2a86b5fd07fe5ad6a33556a5ce1f2f7b.zip | |
Murg 2.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/configuration.rst | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/docs/narr/configuration.rst b/docs/narr/configuration.rst index 1fa08c141..767005e23 100644 --- a/docs/narr/configuration.rst +++ b/docs/narr/configuration.rst @@ -36,26 +36,32 @@ Because :mod:`repoze.bfg` is a framework, from the perspective of the people who have written :mod:`repoze.bfg` itself, each deployment of an application written using :mod:`repoze.bfg` implies a specific *configuration* of the framework iself. For example, a song-serving -application might plug code into the framework that manages songs, -while the ledger-serving application might code into the framework -that manages accounting information. :mod:`repoze.bfg` refers to the -way which code is plugged in to it as "configuration". - -It can be a bit strange to think of code you write which -:mod:`repoze.bfg` interacts with as "configuration". Many people -think of "configuration" as entirely declarative knobs that control -operation of a specific application deployment; for instance, it's -easy to think of the values implied by a ``.ini.`` configuration file -that is read at application startup time as configuration. However, -because :mod:`repoze.bfg` is itself a framework, from the perspective -of the authors of :mod:`repoze.bfg`, when you plug code into it, you -**are** "configuring" the :mod:`repoze.bfg` framework *itself* for the -purpose of creating an application. :mod:`repoze.bfg` refers to this -act as "configuration". +application might plug code into the :mod:`repoze.bfg` framework that +manages songs, while the ledger-serving application might code into +the :mod:`repoze.bfg` framework that manages accounting information. +:mod:`repoze.bfg` refers to the way in which code is plugged in to it +for a specific deployment as "configuration". + +It can be a bit strange to think of the act of plugging code which you +write into :mod:`repoze.bfg` as "configuration". Many people think of +"configuration" as knobs that control operation of only a specific +application deployment; for instance, it's easy to think of the values +implied by a ``.ini.`` configuration file that is read at application +startup time as configuration. However, because :mod:`repoze.bfg` is +itself a framework, from the perspective of the authors of +:mod:`repoze.bfg`, when you plug code into it, you **are** indeed +"configuring" the :mod:`repoze.bfg` framework *itself* for the purpose +of creating an application deployment. From the perspective of an +developer creating an application using :mod:`repoze.bfg`, performing +the tasks that :mod:`repoze.bfg` calls "configuration" might +alternately be referred to as "wiring" or +"plumbing". :mod:`repoze.bfg` refers to it as "configuration", for +lack of a more elegant term. There are a number of different mechanisms you may use to configure :mod:`repoze.bfg` to create an application: *imperative* configuration -and *declarative* configuration. +and *declarative* configuration. We'll examine both modes in the +sections which follow. Hello World, Configured Imperatively ------------------------------------ |
