[pylons-discuss] Re: pyramid webdav example?

2017-12-11 Thread jens . troeger
This question is somewhat dated and still unanswered. I’d like to renew it though: has anybody in the meantime been playing around with WebDAV (or its derivates CalDAV and CardDAV

[pylons-discuss] CSRF token implementation

2017-12-11 Thread Thierry Florac
Hi, I'm using Pyramid 1.84 and trying to implement a CSRF token cookie verification for any POST or AJAX request. My code is as follow: CSRF_TOKEN_COOKIE_NAME = 'csrf_token' @subscriber(INewRequest) def handle_new_request(event): """Handle any request with CSRF token