On Thu, Apr 19, 2012 at 1:14 AM, kgk <[email protected]> wrote: > Even if it debug=false, you cannot access tg.request and by extension > anything that needs > identity (tg.request.identity['repoze.who.userid' ) by the time time the > stream return processing > has started, the variables have been popped.
Well, that is the reason why I passed request._current_obj() as argument to the generator in my code sample. It solves the issue of being able to access the request and identity. Other issues are related to the fact that you have to remove, flush and commit the DBSession yourself. -- You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en.

