On Fri, Jun 5, 2009 at 1:27 PM, Chris McDonough <chr...@plope.com> wrote:

> What I *should* have done from the very start was to pass the request
> object in to both root factories and context factories.  But it's too late
> for that now; we'd break too many people's apps.

Just to play devil's advocate, here: we're already breaking compatibility
for url dispatch, so we're not really concerned about that. For apps that
use a root factory, each app should only have one, so a backwards
incompatible change in signature should only really require touching one
place in their code to upgrade to 1.0.  And that change need only touch two
lines of code:

def root_factory(environ):
    # blah blah blah that uses environ


def root_factory(request);
    environ = request.environ
    # blah blah blah that uses environ

Repoze-dev mailing list

Reply via email to