Re: [pylons-devel] Uncatchable InvalidRequestError within view depending on order of SQLAlchemy queries

2016-03-21 Thread Zsolt Ero
. Zsolt On 21 March 2016 at 11:20, Simon King wrote: > On Sat, Mar 19, 2016 at 3:44 AM, Zsolt Ero wrote: >> >> My project is based on standard SQLAlchemy scaffold, ZTE, using ORM. >> Pyramid 1.5.8. >> >> I'm trying to catch an IntegrityError (unique

[pylons-devel] Re: Setting translogger format via ini

2016-03-20 Thread Zsolt Ero
I guess that's an alternative as well. Is there a way to access and configure an already existing [filter:translogger] from the Python code? // about the tween version, I've just realised that it's not even using translogger or is it? I mean I've been so puzzled because of translogger and I've

Re: [pylons-devel] Re: request context for Sentry

2016-03-19 Thread Zsolt Ero
g here probably but the raven docs have pretty > straightforward support for configuring it via the ini file. Have you tried > this? > > https://docs.getsentry.com/hosted/clients/python/integrations/pyramid/#pastedeploy-filter > > On Sat, Mar 19, 2016 at 5:44 PM, Zsolt Ero wrote: &

[pylons-devel] Re: request context for Sentry

2016-03-19 Thread Zsolt Ero
app = Sentry(app, client=client) This way client is configured on init and captureException works automatically. Friday, March 18, 2016 at 1:26:39 AM UTC+1, Zsolt Ero wrote: > > Thanks, I see. I believe this way I do not need the .ini part, do I? > > On Thursday, March 17, 2016 a

Re: [pylons-devel] Setting translogger format via ini

2016-03-19 Thread Zsolt Ero
true > > > > On Thu, Mar 10, 2016 at 6:46 PM, Mike Orr > wrote: > > On Thu, Mar 10, 2016 at 3:32 AM, Zsolt Ero > wrote: > >> Hi, > >> > >> My first mailing list post, as this really puzzles me. I'd like to use > a > >> short f

[pylons-devel] Re: request context for Sentry

2016-03-19 Thread Zsolt Ero
Thanks, I see. I believe this way I do not need the .ini part, do I? On Thursday, March 17, 2016 at 3:40:28 AM UTC+1, Jonathan Vanasco wrote: > > > > On Wednesday, March 16, 2016 at 9:36:44 PM UTC-4, Zsolt Ero wrote: >> >> David Cramer from Sentry replied to me that if

[pylons-devel] request context for Sentry

2016-03-19 Thread Zsolt Ero
I'm using Sentry with Pyramid, as per their official .ini config notes: https://docs.getsentry.com/hosted/clients/python/integrations/pyramid/ This way, if there is ever an Internal Server Error page, I get a full stack-trace submitted to Sentry as well as a request which can be replayed or conv

[pylons-devel] Uncatchable InvalidRequestError within view depending on order of SQLAlchemy queries

2016-03-18 Thread Zsolt Ero
My project is based on standard SQLAlchemy scaffold, ZTE, using ORM. Pyramid 1.5.8. I'm trying to catch an IntegrityError (unique key constraint), I've made a very minimal example @view_config(route_name='exception_test', renderer='json') def exception_test(request): user = DBSession.query(

[pylons-devel] Setting translogger format via ini

2016-03-10 Thread Zsolt Ero
Hi, My first mailing list post, as this really puzzles me. I'd like to use a short format for displaying HTTP requests in development mode. Before, I used to have this snippet in my Pyramid app's __init__.py: from paste.translogger import TransLogger format = '%(status)s %(REQUEST_METHOD)s %(RE