[Repoze-dev] [repoze.bfg.jinja2] Many jinja2.Environment object are created, one by view. It's a mistake ?

2010-06-25 Thread Stéphane Klein
Hi, I use ``repoze.bfg.jinja2`` in a project. I've read the source code and I wonder why a new ``jinja2.Environment`` object are created by view ? It's a bug ? or a feature ? Thanks for your help, Stephane -- Stéphane Kleinsteph...@harobed.org - French blog: http://stephane-klein.info

[Repoze-dev] repoze.zodbconn connection handling

2010-06-25 Thread Wichert Akkerman
I am using repoze.zodbconn in a BFG application but I suspect it is not working as it should be: as soon as multiple requests come in at the same time I get a lot of locking errors and broken results: LockError: Couldn't lock '/Users/wichert/Work/code/buildout/blackbox/var/Data.fs.lock' The

Re: [Repoze-dev] repoze.zodbconn connection handling

2010-06-25 Thread Wichert Akkerman
On 6/25/10 20:03 , Wichert Akkerman wrote: The way I've setup repoze.zodbconn is from repoze.zodbconn.finder import PersistentApplicationFinder from myproject import appmaker finder = PersistentApplicationFinder(settings[zodb.url], appmaker) def get_root(request):

Re: [Repoze-dev] cogbin is back - please add/update keyword turbogears2 in your setup.py and upload to pypi.

2010-06-25 Thread Lukasz Szybalski
On Fri, Jun 25, 2010 at 12:40 PM, Wichert Akkerman wich...@wiggy.net wrote: On 6/25/10 16:50 , Lukasz Szybalski wrote: django-lazysignup 0.1.2 django-lockdown 0.1.1 django-paranoid-sessions 0.2.0 grokproject 2.0.1 So unfortunately the Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware

Re: [Repoze-dev] repoze.zodbconn connection handling

2010-06-25 Thread Charlie Clark
Am 25.06.2010, 20:03 Uhr, schrieb Wichert Akkerman wich...@wiggy.net: I am using repoze.zodbconn in a BFG application but I suspect it is not working as it should be: as soon as multiple requests come in at the same time I get a lot of locking errors and broken results: LockError: Couldn't

Re: [Repoze-dev] repoze.zodbconn connection handling

2010-06-25 Thread Wichert Akkerman
On 6/25/10 20:18 , Charlie Clark wrote: Am 25.06.2010, 20:03 Uhr, schrieb Wichert Akkermanwich...@wiggy.net: I am using repoze.zodbconn in a BFG application but I suspect it is not working as it should be: as soon as multiple requests come in at the same time I get a lot of locking errors and

Re: [Repoze-dev] repoze.zodbconn connection handling

2010-06-25 Thread Chris McDonough
On Fri, 2010-06-25 at 12:55 -0600, Shane Hathaway wrote: On 06/25/2010 12:03 PM, Wichert Akkerman wrote: I am using repoze.zodbconn in a BFG application but I suspect it is not working as it should be: as soon as multiple requests come in at the same time I get a lot of locking errors and

Re: [Repoze-dev] repoze.zodbconn connection handling

2010-06-25 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shane Hathaway wrote: On 06/25/2010 12:03 PM, Wichert Akkerman wrote: I am using repoze.zodbconn in a BFG application but I suspect it is not working as it should be: as soon as multiple requests come in at the same time I get a lot of locking

Re: [Repoze-dev] repoze.zodbconn connection handling

2010-06-25 Thread Shane Hathaway
On 06/25/2010 01:16 PM, Chris McDonough wrote: We've addressed this in repoze.who by giving r.who's middleware a mode which injects only a factory into the environ instead of more eagerly constructing identity information. We can't really do that for repoze.zodbconn#connector, or at least it

Re: [Repoze-dev] repoze.zodbconn connection handling

2010-06-25 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shane Hathaway wrote: On 06/25/2010 01:16 PM, Chris McDonough wrote: We've addressed this in repoze.who by giving r.who's middleware a mode which injects only a factory into the environ instead of more eagerly constructing identity information.

Re: [Repoze-dev] repoze.zodbconn connection handling

2010-06-25 Thread Chris McDonough
On Fri, 2010-06-25 at 15:58 -0400, Tres Seaver wrote: Then we could make PersistentApplicationFinder use 'repoze.zodbconn.connection_factory' from the environment. That looks lazy enough for my taste. ;) +1 - C ___ Repoze-dev mailing list