8 Commits

Author SHA1 Message Date
benoitc
9e203e0637 missing import 2010-05-23 00:37:40 +02:00
benoitc
62540cffaa commit changes from @davisp + some fixes 2010-05-22 21:11:25 +02:00
Benoit Chesneau
17a989672d allows Usage=None 2010-05-22 06:14:13 +02:00
Paul J. Davis
6ffbe54734 Added unit tests for new Config code. 2010-05-21 22:54:22 -04:00
Benoit Chesneau
6fbed7ba5b iteritems is deprececated or doesn't exist in future versions of
python3. Instead use list(somedict.items()).
2010-05-19 13:39:39 -04:00
Benoit Chesneau
d46dfad91f fix paster application 2010-05-19 13:39:39 -04:00
Paul J. Davis
793323789d Changing setting definitions from INI to Py
Settings are now enumerated in config.py
2010-05-19 13:39:38 -04:00
Paul J. Davis
036f8b50d9 Major refactor of the configuration mechanics.
* All configuration and bootup is handled by the Application objects.

* There is now a strict ordering on the precedence of configuration
settings:

  1. Each option is given a default value of some sort in options.ini

  2. Any detectable framework configuration settings override the hard
     coded defaults for options. Currently, only Paster applications
     have support for this.

  3. Anything that is specified in a Gunicorn configuration file (by
     default gunicorn.conf.py) overrides what was possibly set by a
     framework specific configuration source.

  4. Anything specified on the command line reins supreme. The command
     line is the final authority on a given configuration option.
     Though, not all configuration options are available via command
     line.

* Configuration metadata is pulled from an options.ini. In the future I'll
use this to build the example gunicorn.conf.py and the config.rst file
in docs/site/config.rst.

I haven't tested the differences thoroughly. The next item on my agenda
is to figure out a way to start testing Gunicorn that doesn't make my
eyes bleed.
2010-05-19 13:39:37 -04:00