euphorie / Euphorie

Euphorie is a tool for risk assessment
https://pythonhosted.org/Euphorie/
GNU General Public License v2.0
12 stars 6 forks source link

Keep session URL usable when tool is updated #524

Closed reinhardt closed 1 year ago

reinhardt commented 1 year ago

This currently keeps the URL with the old session ID. I'd rather do a redirect to the URL with the new ID but I can't figure out how to do that in a namespace traversal. response.redirect() just gives me a blank page, raise Redirect gives me a traceback. Any ideas?

syslabcom/scrum#833

ale-rt commented 1 year ago

What if you handle the Redirect exception in the error_view? Or maybe there is something like an IBeforeTraversal adapter that can be used for that. Anyway if it takes too much effort finding the proper solution go with an MVP. It is already a massive improvement and so far no customer complained. And the URLs in the page should have the new id. It does not seem a big deal to me anyway.

reinhardt commented 1 year ago

Thanks! I'll invest an hour more into exploring these hints.

reinhardt commented 1 year ago

I've found a way to do it via an error view.