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, passing 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: make_app(some_root_factory, mypackage, options={'configure_zcml':'/path/to/configure.zcml') .. would do something. ;-) Putting stuff into Pylons' .ini file is fine, but you'll need to pull it out and 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 Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev