Skip to content
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

allow overriding synthesized properties #3559

Merged
merged 4 commits into from Jan 6, 2020

Conversation

mmerickel
Copy link
Member

I found it pretty annoying that if I do something like config.add_request_method(lambda r: r.authenticated_identity, 'user', property=True) that later I could not do request.user = ... in a test case or for whatever reason. This isn't a very intentional behavior in Pyramid as-is - it's just the way the property() descriptor works. So I made my own SettableProperty descriptor that we use by default.

@digitalresistor digitalresistor merged commit 5702c3c into Pylons:master Jan 6, 2020
@mmerickel mmerickel deleted the settable-properties branch November 29, 2020 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants