Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/p/y/pyon-HEAD/pyon/datastore/couchbase/base_store.py   pyon(Download)
 
from pyon.datastore.couchdb.couch_common import AbstractCouchDataStore
from pyon.datastore.couchbase.views import get_couch_view_designs
from pyon.core.exception import BadRequest, Conflict, NotFound, ServerError
from pyon.util.containers import get_safe, DictDiffer
    def define_profile_views(self, profile=None, datastore_name=None, keepviews=False):
        ds_views = get_couch_view_designs(profile)
        self._define_profile_views(ds_views, datastore_name=datastore_name, keepviews=keepviews)
 
    def define_viewset(self, design_name, design_doc, datastore_name=None, keepviews=False):
        """
        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)