-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate that docstrings influence access rights #774
Comments
I am totally fine with that - as long as any changes we make don't suddenly expose methods and functions that were not exposed before. |
I am +100 but the default should be that in order for something to be published, a security declaration is required. |
@ale-rt You mean nothing should be published that has no security declarations? The only publishable filesystem code should be code covered by some kind of security declaration. |
Thanks, I tried to explain my point better. Some like https://pypi.org/project/experimental.publishtraverse/ does. |
I am quite convinced that the existence of a docstring does not make an object public. We have 2 separate concerns: publishable (controlled via a docstring) and access rights (controlled via It is normal that a publishable object (i.e. one with a docstring) requires special permissions to be used via the Web -- i.e. a docstring does not make an object (fully) public. We may want some objects not to be accessible via the Web (i.e. publishable) even if the current user has the required permissions. Therefore, we need additional control (beside I propose the introduction of a decorator The feature could be implemented via an attribute The problem with this are (other) decorators because they might not retain attributes of the decorated function. An example of such a misbehaving decorator is |
I propose to deprecate that a docstring makes a method public
I think it is too implicit given we have a working permission declaration system for years now.
Making it deprecated could already be done in Zope 4. Thus we could even remove it in Zope 5.
What do you guys think about this proposal?
The text was updated successfully, but these errors were encountered: