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

implement selection of location in portlet #23

Merged
merged 11 commits into from Nov 1, 2013
Merged

implement selection of location in portlet #23

merged 11 commits into from Nov 1, 2013

Conversation

hvelarde
Copy link
Member

fixes #15



class IWeatherPortlet(IPortletDataProvider):
"""A weather portlet.
"""
'''A weather portlet.
Copy link
Member Author

Choose a reason for hiding this comment

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

according to PEP 257 -- Docstring Conventions:

For consistency, always use """triple double quotes""" around docstrings

so, please do not replace """ with '''.

Conflicts:
	src/collective/weather/portlets/weather.pt
@ghost ghost assigned hvelarde Oct 31, 2013
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 7ee1ee0 on issue_15 into * on master*.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling d89c3e3 on issue_15 into * on master*.

IVocabularyFactory, name='collective.weather.Locations')
vocab = factory(self.context)
self.current_city = None
if self.data.location in vocab:
Copy link
Member Author

Choose a reason for hiding this comment

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

what happens if the location is not in the vocabulary?

Copy link
Contributor

Choose a reason for hiding this comment

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

weather_info is not calculated and the portlet is not shown

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 2b5ddae on issue_15 into * on master*.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 2b5ddae on issue_15 into * on master*.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling bff2f06 on issue_15 into * on master*.

hvelarde added a commit that referenced this pull request Nov 1, 2013
implement selection of location in portlet
@hvelarde hvelarde merged commit 7f99ef5 into master Nov 1, 2013
@hvelarde hvelarde deleted the issue_15 branch November 1, 2013 15:42
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.

portlet shows the city selected on the viewlet
3 participants