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

Fix bug when registering a user #53

Merged
merged 1 commit into from
Feb 1, 2016
Merged

Fix bug when registering a user #53

merged 1 commit into from
Feb 1, 2016

Conversation

pbauer
Copy link
Sponsor Member

@pbauer pbauer commented Feb 1, 2016

This pr adds a setter to the attribute schema of UserDataPanelAdapter.

When registering a user the properties-setter in plone.app.users.browser.register.BaseRegistrationForm.applyProperties uses adapter.schema = schema to set schema on plone.app.users.browser.userdatapanel.UserDataPanelAdapter.

That operation used the __setattr__-method of its super but UserDataPanelAdapter.schema was a property so that had to fail. We also use object.__getattribute__ to bypass the getter of the super that checked for schema and would result in a infinite recursion.

…PanelAdapter

when registering a user the properties-setter in
plone.app.users.browser.register.BaseRegistrationForm.applyProperties uses
``adapter.schema = schema`` to set schema on plone.app.users.browser.userdatapanel.UserDataPanelAdapter.
That used the __setattr__ of its super but UserDataPanelAdapter.schema was a property.
jensens added a commit that referenced this pull request Feb 1, 2016
Fix bug when registering a user
@jensens jensens merged commit 2f67157 into master Feb 1, 2016
@jensens jensens deleted the thet-zope4 branch February 1, 2016 14:47
jensens added a commit to plone/buildout.coredev that referenced this pull request Feb 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants