[Paste] `use` base config from installed egg

Top Page
Author: Wyatt Lee Baldwin
Date:  
To: Paste Users
Subject: [Paste] `use` base config from installed egg
I would like to `use` a base config file from an installed egg in the
config files of a set of related applications. From my reading of the
docs, this group, and the code, this isn't currently possibly.

From looking briefly at the code, perhaps a _load_config_from_egg
function could figure out the file system path and then use
ConfigLoader just as _loadconfig does, and everything would proceed in
the usual way from there.

Is this something that would be appropriate in PasteDeploy itself? If
not, is there a good, non-hacky way to add a custom loader function (I
think I can see how to monkey-patch a loader, but I don't want to do
that)?

Here's an example to help clarify:

MyCoolFramework/
    mycoolframework/
        __init__.py
        config/
            __init__.py
            base.ini
    setup.py

MyCoolApp/
    mycoolapp/
        __init__.py
    app.ini
    setup.py

In app.ini in MyCoolApp, I want to do something like this:

[app:main]
use = config_from_egg:MyCoolFramework:config/base.ini

-- 
You received this message because you are subscribed to the Google Groups "Paste Users" group.
To post to this group, send email to paste-users@???.
To unsubscribe from this group, send email to paste-users+unsubscribe@???.
For more options, visit this group at http://groups.google.com/group/paste-users?hl=en.