Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Enhancement: can ACLAuthorizationPolicy support __acl__ as a callable? #735
Being a python newb I did not know that any error in property getters result in an AttributeError. I understand the rationale behind it, but it makes me a little anxious to have my "security" code blowing up silently and leaving the traversal "layer" in an unexpected state.
What would be nice is if the ACLAuthorizationPolicy could look out for acl that is a callable and deal with it that way. then errors will bubble up properly.
For now, I've embraced and extended for batterii's innovation platform, but I'm of the opinion it might be desired in pyramid as well.