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

Snotel #2

Merged
merged 22 commits into from
Jul 8, 2014
Merged

Snotel #2

merged 22 commits into from
Jul 8, 2014

Conversation

jeremiahsa
Copy link
Contributor

The snotel branch is ready to merge into master.

@sheppard
Copy link
Member

Here's an potential way to leverage the new WebserviceLoader base class added in 0.3.0.

class SnotelLoader(WebserviceLoader):
    data_function = 'getData'

    parameter = FilterOpt(url_param='elementCd')
    default_params = {}

    def load(self):
        params = self.params
        fn = getattr(server, self.data_function)
        self.data = fn(**params)

@sheppard sheppard merged commit e75e769 into master Jul 8, 2014
@sheppard sheppard deleted the snotel branch July 8, 2014 21:41
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.

None yet

2 participants