Yeah... in your app's .ini file:

[app:myapp]
....
my_setting = 1

In the code:

from repoze.bfg.settings import get_settings
settings = get_settings()
setting = settings['my_setting']


Andreas Jung wrote:
> Hi,
> 
> is there a common pattern for passing additional configuration parameters
> to a repoze.bfg app (either through the paster server cmdline call
> or through the server.ini file)? Is there some common API or approach
> for doing that?
> 
> Andreas
> 
> 
> _______________________________________________
> Repoze-dev mailing list
> Repoze-dev@lists.repoze.org
> http://lists.repoze.org/listinfo/repoze-dev

_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to