How to use the ulmo.cuahsi.wof.get_site_info function in ulmo

To help you get started, we’ve selected a few ulmo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github WikiWatershed / model-my-watershed / src / mmw / apps / bigcz / clients / cuahsi / details.py View on Github external
def details(wsdl, site):
    if not wsdl:
        raise ValidationError({
            'error': 'Required argument: wsdl'})

    if not site:
        raise ValidationError({
            'error': 'Required argument: site'})

    if not wsdl.upper().endswith('?WSDL'):
        wsdl += '?WSDL'

    from ulmo.cuahsi import wof
    return wof.get_site_info(wsdl, site, None)