[pylons-discuss] Re: Upgraded Pyramid and other modules, now tracebacks are broken

2014-12-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/13/2014 05:59 PM, Ben Sizer wrote: > Thanks for your reply. > > I wouldn't know how to catch the exception any further upstream. I add > the routes (in this case mapping 'front_page' to '/'), call > make_wsgi_app, that gets run by paste/pserve (

Re: [pylons-discuss] Upgraded Pyramid and other modules, now tracebacks are broken

2014-12-15 Thread Jonathan Vanasco
I've never used Pyramid under windows, so I could be off here... But when running under Mac/Linux, one can trip 500x error that just says "Invalid Request" (or similar) under a few scenarios: • exceptions in the wsgi middleware stack • exceptions in most areas of the debugtoolbar code • excepti

[pylons-discuss] Re: How to correctly set then access authenticated_userid from tests?

2014-12-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/15/2014 05:22 AM, pyramidX wrote: > I have the following test method, where I add a test user to the > database, then with a DummyRequest I call my login view, then I assert > the authenticated_userid is what I think it should be. However it > r

[pylons-discuss] How to correctly set then access authenticated_userid from tests?

2014-12-15 Thread pyramidX
I have the following test method, where I add a test user to the database, then with a DummyRequest I call my login view, then I assert the authenticated_userid is what I think it should be. However it returns None. def test_login(self): self.config = testing.setUp() self.config