This one time, at band camp, Jamie Wilkinson wrote: > >This one time, at band camp, Jamie Wilkinson wrote: >>Hmm, I htink it's because I forgot to clear the objectstore at the start of >>BaseController.__call__, it *seems* to be working correctly after putting >>that back in. > >Spoke too soon, that's not the cause nor the fix.
Ok, dumb mistake. As Mike explains in this thread: http://www.mail-archive.com/[email protected]/msg00419.html using a ProxyEngine you need to connect to the database within each thread, as the connect is only valid within the scope of that thread. So of course when the redirect fires, the browser calls a new controller, and that new controller hasn't yet got an engine set. So the fix is of course to put a global_connect in the BaseController too; which I was avoiding because I had been having problems with DB creation for the test suite, but that's ok, I can work around it for now. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
