Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Refactor Role/Resource Model #2

Open
tonyseek opened this issue Nov 15, 2012 · 3 comments
Open

Refactor Role/Resource Model #2

tonyseek opened this issue Nov 15, 2012 · 3 comments
Assignees
Labels

Comments

@tonyseek
Copy link
Owner

This project uses a static defination to find parent relationship of roles and resources. That way is hard to handle a situation that a role or a resource has a dynamic parents getter.

Currently my solution is using a proxy class to register parent defination rules implicatly. But this way is ugly and broken the Zen of Python.

I have a plan to refactor the role model and resource model, give them a flexible way to use more dynamic rules.

@ghost ghost assigned tonyseek Nov 15, 2012
@sholsapp
Copy link

Can you elaborate on your plan more and maybe give a concrete example? Would such a system be able to handle an implementation of a "wildcard" acls, perhaps?

I'm evaluating this system for my own use and may be able to contribute.

@sholsapp
Copy link

Maybe it would even be worth looking into using an existing RBAC like https://pypi.python.org/pypi/simple-rbac/0.1.1 so this project could focus on the Flask-specific parts. What do you think?

@tonyseek
Copy link
Owner Author

tonyseek commented Jul 2, 2014

I'm sorry for this delayed plan because of lacking mind for designing it : (

so this project could focus on the Flask-specific parts

This project don't have any knownledge about web frameworks like Flask.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants