> On Aug 3, 2017, at 15:07, Chris Withers <[email protected] > <mailto:[email protected]>> wrote: > > > > On 03/08/2017 22:04, Chris Withers wrote: >> On 03/08/2017 19:12, Bert JW Regeer wrote: >>> You can grab it from a .ini or wherever when using the latest Pyramid >>> with plaster support (write your own loader to load it from yaml files >>> for example). >>> >>> 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 >>> >>> <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. > > 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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/117c5e87-7148-0d1f-f781-2dcff35a86a6%40withers.org > > <https://groups.google.com/d/msgid/pylons-discuss/117c5e87-7148-0d1f-f781-2dcff35a86a6%40withers.org>. > For more options, visit https://groups.google.com/d/optout > <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/825F6BC4-EC65-47F3-8BCC-A290C6F0821D%400x58.com. For more options, visit https://groups.google.com/d/optout.
