From 83df8b32956ed6044b88daf8fffd63d15b33d4ba Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 13 Jan 2010 15:18:21 +0000 Subject: - Get rid of references to repoze.bfg.router.Router. --- repoze/bfg/scripting.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'repoze/bfg/scripting.py') diff --git a/repoze/bfg/scripting.py b/repoze/bfg/scripting.py index b6f7ed97f..8547eae62 100644 --- a/repoze/bfg/scripting.py +++ b/repoze/bfg/scripting.py @@ -2,14 +2,13 @@ from repoze.bfg.request import Request def get_root(app, request=None): """ Return a tuple composed of ``(root, closer)`` when provided a - :class:`repoze.bfg.router.Router` instance as the ``app`` - argument. The ``root`` returned is the application root object. - The ``closer`` returned is a callable (accepting no arguments) - that should be called when your scripting application is finished - using the root. If ``request`` is not None, it is used as the - request passed to the :mod:`repoze.bfg` application root factory. - A request is constructed and passed to the root factory if - ``request`` is None.""" + :term:`router` instance as the ``app`` argument. The ``root`` + returned is the application root object. The ``closer`` returned + is a callable (accepting no arguments) that should be called when + your scripting application is finished using the root. If + ``request`` is not None, it is used as the request passed to the + :mod:`repoze.bfg` application root factory. A request is + constructed and passed to the root factory if ``request`` is None.""" registry = app.registry if request is None: request = Request.blank('/') -- cgit v1.2.3