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

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

src/p/y/pyon-HEAD/pyon/datastore/couchdb/pyon_store.py   pyon(Download)
            if object_type:
                key.append(object_type)
        endkey = self._get_endkey(key)
        rows = ds.view(self._get_view_name("association", "by_sub"), start_key=key, end_key=endkey, **view_args)
 
            if subject_type:
                key.append(subject_type)
        endkey = self._get_endkey(key)
        rows = ds.view(self._get_view_name("association", "by_obj"), start_key=key, end_key=endkey, **view_args)
 
            if predicate:
                key.append(predicate)
            endkey = self._get_endkey(key)
            rows = ds.view(self._get_view_name("association", "by_match"), start_key=key, end_key=endkey, **view_args)
        elif subject:
            key = [subject_id]
            if predicate:
                key.append(predicate)
            endkey = self._get_endkey(key)
            if predicate:
                key.append(predicate)
            endkey = self._get_endkey(key)
            rows = ds.view(self._get_view_name("association", "by_obj"), start_key=key, end_key=endkey, **view_args)
        elif anyside: