summaryrefslogtreecommitdiff
path: root/repoze/bfg/scripting.py
AgeCommit message (Collapse)Author
2009-07-22Actually, now that I think about it, this is probably wrong. I'm revertingChris Rossi
this change for now. What I observed is that in a ZODB based app, the ZODB connection was closed when I let the closer fall out of scope. I see from examining the code, though, that this is a side effect of the environ that the closer hangs on to getting deleted. There is nothing here that pops the registry when the closer is deleted. You still have to call the closer for that to happen.
2009-07-22Document close on '__del__' behavior of closer.Chris Rossi
2009-05-28- Add a ``get_app`` API functions to the ``paster`` module. ThisChris McDonough
obtains a WSGI application from a config file given a config file name and a section name. See the ``repoze.bfg.paster`` API docs for more information. - Add a new module named ``scripting``. It contains a ``get_root`` API function, which, provided a Router instance, returns a traversal root object and a "closer". See the ``repoze.bfg.scripting`` API docs for more info.
2009-05-27- A paster command has been added named "bfgshell". This command canChris McDonough
be used to get an interactive prompt with your BFG root object in the global namespace. E.g.:: bin/paster bfgshell /path/to/myapp.ini myapp See the ``Project`` chapter in the BFG documentation for more information.
2009-05-27Provide b/c for scripts which used ``registry_manager``Chris McDonough