rio-labs / rio

WebApps in pure Python. No JavaScript, HTML and CSS needed
https://rio.dev
Apache License 2.0
453 stars 14 forks source link

Create a Class for Storing Guard Parameters #64

Open mad-moo opened 2 weeks ago

mad-moo commented 2 weeks ago

Guards are currently passed the current session, as well as a list of active pages. This differs from a lot of other, similar situations, where we pass classes storing all values. It's also a situation that can easily demand more values in the future, so wrapping everything in a class would definitely make sense here.