Re: [web2py] Re: Recent changes to rewrite.py break threaded environments

2010-09-17 Thread Jonathan Lundell
On Sep 17, 2010, at 8:24 AM, mdipierro wrote: > > I will take the patch and you may be fine if your thread does not > access db. Here's a slightly more complete patch. This should maintain backward compatibility with apps that don't use app-specific routing. One that does can call rewrite.selec

Re: [web2py] Re: Recent changes to rewrite.py break threaded environments

2010-09-17 Thread Jonathan Lundell
On Sep 16, 2010, at 10:44 PM, mdipierro wrote: > > Jonathan, > > I misunderstood your problem. You should not spawn threads from a > web2py app. This is not just because the current routing mechanism > does not support it. This is a very general with all web applications > because threads are man

Re: [web2py] Re: Recent changes to rewrite.py break threaded environments

2010-09-16 Thread Jonathan Lundell
On Sep 16, 2010, at 1:04 PM, mdipierro wrote: > > I believe this was fixed. try 1.85.2 posted yesterday Perhaps, but it might be a case we haven't considered. Jonathan, if 1.85.2 does not fix the problem, I can suggest two alternatives. If you are *not* using application-specific routing, call