Re: [pylons-discuss] How do I "forward" requests and switch their contexts?

2017-09-20 Thread 'Torsten Irländer' via pylons-discuss
Hi Jens, I would try to factor out as many code as possible which is common to both views into a separate function and use this function both context. I assume the validation and setting values in the profile work in the same way and does not rely on its context. This way you can implement

[pylons-discuss] How do I "forward" requests and switch their contexts?

2017-09-19 Thread jens . troeger
Hello everybody, I could need a bit of help with a more architectural question. I'm using Cornice to build a REST server on top of Pyramid/SQLAlchemy. Now I've got two main "domains" in my endpoints, which are accessed by the two different user roles in