On Mar 24, 3:59 pm, Wyatt Baldwin <[email protected]> wrote:
> On Mar 24, 3:10 pm, Jonathan Vanasco <[email protected]> wrote:
>
>
>
> > ok, so here's what i learned after much testing thanks to all of your
> > suggestions!
>
> > 1- You can only include a different ini file once:
>
> >     ie:
> >        use = config:name.ini
>
> >     not:
> >        use = config:name.ini
> >        use = config:name2.ini
>
> >    Subsequent calls will overwrite all values and discard the previous
> > option
>
> > 2- You can overwrite a value from a file you already included.
>
> >     ie :
> >        use = config:name.ini
> >        value = not what is in name.ini
>
> >    Will set the value to what is not in name.ini
>
> > 3- you need to have 'use = egg:name' in each file.  it yells if you
> > don't.
>
> Hm.. I have derived ini files that don't have a 'use = egg:name', at
> least not in the [app:main] section.

I just did a test for [app:server]. I created a base.ini with this
content:

[server:main]
use = egg:Paste#http
host = 0.0.0.0
port = 5000

Then in my development.ini, I did this:

[server:main]
use = config:base.ini

And it worked.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to