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

On removal of site remove the sub of its site manager from parent site manager #14

Merged
merged 5 commits into from
Sep 10, 2020

Conversation

icemac
Copy link
Member

@icemac icemac commented Sep 9, 2020

Fixes #1.

The implementation was originally taken from https://github.com/zopefoundation/grokcore.site/blob/fc945c90c5093de8f7ff958cf498eb6305b9c068/src/grokcore/site/subscriber.py#L35-L46 but changed in the review process of this PR.

@icemac icemac added the bug label Sep 9, 2020
@icemac icemac self-assigned this Sep 9, 2020
src/zope/site/site.py Outdated Show resolved Hide resolved
@icemac icemac requested a review from sallner September 9, 2020 14:45
Copy link
Member

@jamadden jamadden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking at and fixing this!

src/zope/site/site.rst Show resolved Hide resolved
CHANGES.rst Outdated Show resolved Hide resolved
CHANGES.rst Outdated Show resolved Hide resolved
Michael Howitz and others added 3 commits September 10, 2020 08:03
Co-authored-by: Jason Madden <jamadden@gmail.com>
Co-authored-by: Jason Madden <jamadden@gmail.com>
Copy link
Member

@sallner sallner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I did not expect the __bases__ to populate the subs attribute of the global site manager.

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

Successfully merging this pull request may close these issues.

ILocalSiteManager subs attribute keeps subsites referenced after deleting.
3 participants