Re: [Repoze-dev] A question about the API description of repoze.bfg.route.make_app

2009-07-30 Thread Chris McDonough
On 7/30/09 2:07 PM, george hu wrote: > Hi Chris, > > I'm confused about the "callable" here. According to the official > python document - "Note that classes are callable (calling a class > returns a new instance); class instances are callable if they have a > call() method." When I look at the co

Re: [Repoze-dev] A question about the API description of repoze.bfg.route.make_app

2009-07-29 Thread Chris McDonough
A root factory is a callable that accepts an environ and returns a root object. - C On 7/29/09 3:15 PM, george hu wrote: > It is said "root_factory must be a callable that accepts a ". I > suspect it is not accurate. Instead, the root_factory here is > described in Glossary: "The “root

[Repoze-dev] A question about the API description of repoze.bfg.route.make_app

2009-07-29 Thread george hu
It is said "root_factory must be a callable that accepts a ". I suspect it is not accurate. Instead, the root_factory here is described in Glossary: "The “root factory” of an repoze.bfg application is called on every request sent to the application." And actually the user defined root_fac