Re: [pylons-discuss] Migration from Flask - options?

2020-08-31 Thread Theron Luhn
> With respect to 2.0, sorry everyone but I've been dragging my feet on an > issue in the new security api so it isn't out yet! Hey Michael, anything I can do to help out with the security API? —Theron > On Aug 31, 2020, at 10:23 AM, Michael Merickel wrote: > > The 2.0 security system is

Re: [pylons-discuss] Migration from Flask - options?

2020-08-31 Thread Peter Wilkinson
Thanks everyone for the great responses! I’m planning on having a go at making an authentication policy along the lines of SessionAuthenticationPolicy and have the Flask cookie signing bits imported just to handle that. The apps are definitely going to dealt with as seperate, the migration is

Re: [pylons-discuss] Migration from Flask - options?

2020-08-31 Thread Michael Merickel
The 2.0 security system is pretty backward compatible so I'd recommend just starting with 1.x but I might suggest using the master version of pyramid-cookiecutter-starter as it has significant improvements to the default test fixtures for new projects. With respect to 2.0, sorry everyone but

Re: [pylons-discuss] Migration from Flask - options?

2020-08-31 Thread 'Jonathan Vanasco' via pylons-discuss
I've done a handful of side-by-side migrations or deployments. I think you already identified the generally best approach IMHO: > Conceptually the simplest would be to have a auth cookie that is valid in both, it could be set to only be created in one and honoured in the other. However I

Re: [pylons-discuss] Migration from Flask - options?

2020-08-30 Thread Mike Orr
On Fri, Aug 28, 2020 at 7:27 PM p...@thirdfloor.com.au wrote: > > Hi. > > We have a non-trivial Flask app that I'm in the process of moving chunks of > to Pyramid and would like to get some input on options for how we run two > systems until the whole lots is migrated. > > The data layer is

Re: [pylons-discuss] Migration from Flask - options?

2020-08-29 Thread Peter Wilkinson
Thanks Michael, lots to think about there! I’m hoping to have the code run in separate processes, the data layer has been extracted and any code that touches that moved into services code. Having separate processes turns out to be much cleaner as a migration since any code that does “the wrong

Re: [pylons-discuss] Migration from Flask - options?

2020-08-29 Thread Michael Merickel
Are you trying to host the apps in the same process? Where do you want certain shared parts to live as you migrate? In Pyramid code? In Flask code? Agnostic? Option 1: If you want Pyramid to be able to use any Flask code then you'll have to likely setup Flask's threadlocal variables / request

[pylons-discuss] Migration from Flask - options?

2020-08-28 Thread p...@thirdfloor.com.au
Hi. We have a non-trivial Flask app that I'm in the process of moving chunks of to Pyramid and would like to get some input on options for how we run two systems until the whole lots is migrated. The data layer is agnostic with regards web framework (using ZODB) so that there are no problems