You need to write a loader for plaster that can handle yaml files and the
loader needs to satisfy the plaster.interfaces.IWSGIProtocol. No one has
stepped up quite yet to write any alternate file format loaders so you're
on your own there. The ability to do so is what's supported now.

That loader defines everything from how to parse the yaml file for settings
all the way up to how to invoke the main function of the app. For example,
the main(global_config, **settings) spec is defined by pastedeploy and is
not required by any other loaders. If you want to keep that same spec then
you probably have a fair amount of code you need to rip out of pastedeploy
(montague already did this work).

On Mon, Aug 7, 2017 at 2:01 AM, Chris Withers <[email protected]> wrote:

> On 03/08/2017 22:20, Bert JW Regeer wrote:
>
>>
>> I guess it is not entirely clear, but here’s docs for the two
>>>>> methods:
>>>>> https://docs.pylonsproject.org/projects/pyramid/en/latest/
>>>>> narr/environment.html#using-pastedeploy
>>>>>
>>>>>
>>>>> **settings is provided by your launcher, pserve will use plaster and
>>>>> call main() on your application that is registered with setup tools and
>>>>> provide the settings dictionary to do with as you please.
>>>>>
>>>>
>>>> With Steve's pointer to plaster, this sounds great, but how do I tell
>>>> pserve to use plaster?
>>>>
>>>
>>> Sorry, also forgot to ask: I can see how the config.include(...) call
>>> can be triggered from settings, but how would I do the same for the
>>> ldap* methods?
>>>
>>
>>
>> You’d have to write some custom code to automatically make those calls,
>> but you can use the settings dictionary to pull out the values you need.
>>
>
> Okay, stepping back, if I wanted to replace my production.ini with a
> production.yaml, what do I need to change and where?
>
> cheers,
>
> Chris
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/pylons-discuss/f6d70888-ca0e-5c7b-02a1-85c2e59e5b77%40withers.org.
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CAKdhhwEi3dvH_BeC1c4B3nLkCGeL5qq0wL_28e66dTC-dBfdDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to