On Apr 14, 6:34 pm, Paweł Stradomski <[email protected]> wrote:
> Are you sure you are properly clearing/removing the sqlalchemy session upon
> finishing each request? Are you using contextual sessions?

yes on both.

1. I have cleanup code at the end of the request, and also have a
safety code at the beginning of the request to make sure we start from
scratch.

2. orm.sessionmaker creates my session, and then orm.scoped_session
contextualizes it.

> I'd guess the problem is due to more and more objects existing in the session
> (though I might be wrong).

Why would that cause a recursion depth error ?

The actual error that gets raised is:
    Error - <type 'exceptions.RuntimeError'>: maximum recursion depth
exceeded


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to