def refresh_viewset(self, design, datastore_name=None):
        ds, datastore_name = self._get_datastore(datastore_name)
        doc_id = self._get_design_name(design)
        try:
            design_doc = ds[doc_id]
            #view_name = design_doc["views"].keys()[0]
            #view_name = design_doc.views()[0].name
            for view in design_doc.views():
                ds.view(self._get_view_name(design, view.name))
        except Exception:
            log.exception("Problem with design %s/%s", datastore_name, doc_id)
Return a DirectiveError suitable for being thrown as an exception.
dataset/ETHPy150Open ooici/pyon/pyon/datastore/couchbase/base_store.py/CouchbaseDataStore.refresh_viewset--crossover with--dataset/ETHPy150Open adieu/allbuttonspressed/docutils/parsers/rst/__init__.py/Directive.directive_error