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

Make subsitelogoviewlet more robust #100

Merged
merged 1 commit into from Nov 29, 2016

Conversation

raphael-s
Copy link
Contributor

@raphael-s raphael-s commented Nov 28, 2016

Fixes some previous mistakes I made in #99

subsitelogoviewlet should now be protected against any troubles caused by other content with the id logo

closes #98

@mbaechtold
Copy link
Contributor

@raphael-s, could you please add a test?

@@ -19,13 +19,14 @@ def __init__(self, context, request, view, manager=None):
def update(self):
super(SubsiteLogoViewlet, self).update()

portal = api.portal.get()
Copy link
Contributor

Choose a reason for hiding this comment

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

I would move that to the else as portal is only used there.

@raphael-s raphael-s force-pushed the rs-MakeSubsiteLogoViewletMoreRobust branch from bf4dab7 to 138c48a Compare November 28, 2016 16:58
@raphael-s raphael-s force-pushed the rs-MakeSubsiteLogoViewletMoreRobust branch from 138c48a to 8a20413 Compare November 28, 2016 17:24
@mbaechtold mbaechtold merged commit a2514e9 into master Nov 29, 2016
@mbaechtold mbaechtold deleted the rs-MakeSubsiteLogoViewletMoreRobust branch November 29, 2016 07:34
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.

Do not Fail if a content is named (ID) logo
2 participants