def refresh_views(self, datastore_name="", profile=None):
        profile = profile or self.profile
        ds_views = get_couch_view_designs(profile)
        for design_name, design_doc in ds_views.iteritems():
            self.refresh_viewset(design_name, datastore_name=datastore_name)
Take a WMS query and turn it into the appropriate MML file, if need be.  Or look up the cached MML file
dataset/ETHPy150Open ooici/pyon/pyon/datastore/couchbase/base_store.py/CouchbaseDataStore.refresh_views--crossover with--dataset/ETHPy150Open hydroshare/hydroshare2/ga_resources/drivers/__init__.py/prepare_wms