On 8/28/09 2:24 PM, Iain Duncan wrote:
> On Fri, 2009-08-28 at 14:07 -0400, Chris McDonough wrote:
>> Hi Iain,
>> Use an ini file setting in your bfg app's paste.ini section like:
>> configure_zcml = /path/to/configure.zcml
> Would this also work if put in a pylons ini file? Or do you know what
> else one would need to do to make it work?

See http://docs.repoze.org/bfg/current/narr/startup.html#the-startup-process

See in particular the first code example in there that starts with "from 
repoze.bfg.router import make_app".  Note that the "app" function in there 
(which happens to be a paster app entry point) calls make_app with **kw, 
it in to make_app as "options".  **kw there represents the ini parameters that 
come from the paste.ini file app section.

So something like:


.. would do something.  ;-)

Putting stuff into Pylons' .ini file is fine, but you'll need to pull it out 
call make_app by hand to get a bfg app if you do that.

> Thanks so much for the help Chris, that oughta keep me going. I hope
> this thing I'm cooking up can eventually be useful to the repoze
> community. The more zope I learn the more I love bfg! =)

Good luck!

- C
Repoze-dev mailing list

Reply via email to