Yes, Inherit you AppConfig and provide an after_init_config(self, conf) method it will receive the configuration after it got loaded from development.ini and merged with app_cfg.py. There you can change it the way you prefer before it's actually processed.
On Mon, Feb 8, 2016 at 12:03 PM, Bastien Sevajol <[email protected]> wrote: > Hi, > > Related to this topic > <https://groups.google.com/forum/#!searchin/turbogears/read$20ini$20in$20app_cfg/turbogears/tAzc7SDPuV4/QrwrkLbP41QJ>i > would like to read development.ini values in app_cfg.py file. Typically to > propose simple configuration choice / deployment. Like: > > [app:main] > # You can choice between "internal" authentication or "ldap" > authentication: > auth = internal > > Then app_cfg.py config will be construct depending of auth value. > > Is it possible ? > > Thank's ! > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" 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]. > Visit this group at https://groups.google.com/group/turbogears. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "TurboGears" 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]. Visit this group at https://groups.google.com/group/turbogears. For more options, visit https://groups.google.com/d/optout.

