[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [GMG-Devel] Help extract documentation from my brain
From: |
Christopher Allan Webber |
Subject: |
Re: [GMG-Devel] Help extract documentation from my brain |
Date: |
Sun, 17 Jul 2011 20:46:59 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Some more, now on the config system...
Config system
=============
You might notice that MediaGoblin has two configuration files... one
is paste.ini and one is mediagoblin.ini. This is only sort of true,
paste.ini is only really used to set up the application to be run by
Paste Deploy. Anyway, the focus of this section is on the
mediagoblin.ini file.
In short: it uses [ConfigObj]. There are a few particular features
about this...
- We can set defaults and specify types in the file
mediagoblin/config_spec.ini
- It *is* possible to add custom validators / types. See the
ConfigObj and the [Validator] documentation.
- you'll notice that there's a whole section in here that's celery
related... we can configure celery from the config file.
[ConfigObj]: http://www.voidspace.org.uk/python/configobj.html
[Validator]:
http://www.voidspace.org.uk/python/validate.html#adding-functions
- [GMG-Devel] Help extract documentation from my brain, Christopher Allan Webber, 2011/07/16
- Re: [GMG-Devel] Help extract documentation from my brain, will kahn-greene, 2011/07/16
- Re: [GMG-Devel] Help extract documentation from my brain, Vinzenz Vietzke, 2011/07/16
- Re: [GMG-Devel] Help extract documentation from my brain, Odin, 2011/07/17
- Re: [GMG-Devel] Help extract documentation from my brain, Christopher Allan Webber, 2011/07/17
- Re: [GMG-Devel] Help extract documentation from my brain, Caleb Davis, 2011/07/19