I guess whatever I do is going to be a bit of a hack...  I was hoping I was
just missing some simple.  :)

But for the future...  What about allowing something like this:

smart-attach-daemon =
    /tmp/mongo1.pid mongod --pidfilepath /tmp/mongo1.pid --dbpath foo1
--port 50001
    /tmp/mongo2.pid mongod --pidfilepath /tmp/mongo2.pid --dbpath foo2
--port 50002

As opposed to duplicate keys to define lists of values.


On Wed, Mar 13, 2013 at 3:28 PM, Roberto De Ioris <[email protected]> wrote:

>
> > Yes.  But in general, ConfigParser from Python 3.2 and on defaults to
> > crapping out when it finds duplicate keys (which is the parser used by
> > PasteDeploy).  So, I have the same problem in my pyramid application when
> > I
> > run the script to initialize the DB based on the settings in the INI
> file.
> >
> > Part of the benefit of an INI file is to have all the configurable
> options
> > in one place.  :)  So, I'd prefer to not have to parse it out if I can
> > avoid it.
> >
>
> I understand, but it is a configparser problem/choice, there is nothing
> "simple" we can do :(
>
> What popup in my mind is defining a "custom option" for the second key:
>
> http://uwsgi-docs.readthedocs.org/en/latest/CustomOptions.html
>
> declare-option = foobar=option1
>
> the annoying thing is that you can only define a single "declare-option"
> before configparser complains again.
>
> --
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to