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

Issue 5 - Remove dependency on five.grok #22

Merged
merged 1 commit into from
May 2, 2016
Merged

Issue 5 - Remove dependency on five.grok #22

merged 1 commit into from
May 2, 2016

Conversation

rodfersou
Copy link
Member

closes #5

def available(self):
"""Return True if an image has been defined."""
return self.context.image is not None
return getattr(self.context, 'image', None) is not None
Copy link
Member Author

Choose a reason for hiding this comment

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

one time the context was plone portal object and this raises exception for me

Copy link
Member

Choose a reason for hiding this comment

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

this makes no sense; are you registering the viewlet against the right context? you must use ILiveblog.

@rodfersou rodfersou force-pushed the issue_5 branch 3 times, most recently from 5bb16c4 to bcd954e Compare May 2, 2016 19:04
@hvelarde hvelarde changed the title Issue 5 - Remove grok depencency Issue 5 - Remove dependency on five.grok May 2, 2016
@hvelarde hvelarde merged commit 77c1c83 into master May 2, 2016
@hvelarde hvelarde deleted the issue_5 branch May 2, 2016 20:11
hvelarde added a commit that referenced this pull request May 4, 2016
The view was not returning any content after removal of five.grok (refs. #22).
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.

Remove dependency on five.grok
2 participants