Caching in auth middleware

2009-02-13 Thread Wichert Akkerman
I have what I suspect is a reasonably common setup with a repoze.who middleware for authentication, followed by transaction, routes, session, cache, registry manager and pylons middlewares. In some cases you want to use a cache in authentication middleware to prevent a SQL server hit on every

Re: Caching in auth middleware

2009-02-13 Thread Wichert Akkerman
Previously Wichert Akkerman wrote: I have what I suspect is a reasonably common setup with a repoze.who middleware for authentication, followed by transaction, routes, session, cache, registry manager and pylons middlewares. In some cases you want to use a cache in authentication

Sudden setuptools conflicts

2009-02-13 Thread Ross Vandegrift
Hey everyone, Recently, I've been working on an app that has branches using Pylons 0.9.6 and 0.9.7. Previously, to switch between them, I would do python setup.py develop and the requirements for my current version would be activated, overwriting the choices of the previous installation.

Pydev and Pylons inside virtual environment, auto completion won’t work.

2009-02-13 Thread Andrija Frincic aka BobRock
I have Pydev installed and running without problem with Python 2.6. I installed Pylons 0.9.7 RC 4 into virtual environment, then configured new interpreter to pint into virtual environment and this one is used for pylons project. My problem is that code auto completion does not work for a classes

Re: Sudden setuptools conflicts

2009-02-13 Thread Mike Orr
On Fri, Feb 13, 2009 at 8:01 AM, Ross Vandegrift r...@kallisti.us wrote: Sometime in the recent past, setuptools stopped doing this. Now, when there's a conflicting version it bails out and warns me. I have to resolve the situation manually. This is really annoying - can I get the old

Re: Beaker bug

2009-02-13 Thread Ross Vandegrift
On Feb 12, 3:11 pm, andres and...@octopart.com wrote: def end_session(self): session.delete() return 'session deleted' When you access start_session and test_session everything works as expected, but end_session does not remove the session from the server and it also

Re: Sudden setuptools conflicts

2009-02-13 Thread Ross Vandegrift
On Fri, Feb 13, 2009 at 11:55:47AM -0800, Mike Orr wrote: On Fri, Feb 13, 2009 at 8:01 AM, Ross Vandegrift r...@kallisti.us wrote: Sometime in the recent past, setuptools stopped doing this. Now, when there's a conflicting version it bails out and warns me. I have to resolve the

Re: Beaker bug

2009-02-13 Thread Ben Bangert
On Feb 12, 2009, at 12:11 PM, andres wrote: Am I not understanding something about the way sessions work? Why you have to save() before calling delete()? Is this a bug? Definitely a bug, can you try upgrading to tip: easy_install -U https://bitbucket.org/bbangert/beaker/get/2f8a09349efa.gz

Re: Sudden setuptools conflicts

2009-02-13 Thread Mike Orr
On Fri, Feb 13, 2009 at 2:33 PM, Ross Vandegrift r...@kallisti.us wrote: On Fri, Feb 13, 2009 at 11:55:47AM -0800, Mike Orr wrote: On Fri, Feb 13, 2009 at 8:01 AM, Ross Vandegrift r...@kallisti.us wrote: Sometime in the recent past, setuptools stopped doing this. Now, when there's a