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

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

src/p/y/pyon-HEAD/pyon/datastore/postgresql/base_store.py   pyon(Download)
        profile = profile or self.profile or DEFAULT_PROFILE
        log.info('Creating datastore %s (create_indexes=%s, profile=%s)' % (qual_ds_name, create_indexes, profile))
        if profile == DataStore.DS_PROFILE.DIRECTORY:
            profile = DataStore.DS_PROFILE.RESOURCES
 
            elif doc.get("type_", None):
                obj_type = "R"
        elif profile == DataStore.DS_PROFILE.DIRECTORY:
            if doc.get("type_", None) == "DirEntry":
                obj_type = "D"
        doc_id = doc if isinstance(doc, str) else doc["_id"]
        log.debug('delete_doc(): Delete document id=%s object_type=%s', doc_id, object_type)
        if self.profile == DataStore.DS_PROFILE.DIRECTORY:
            table = qual_ds_name + "_dir"
        if object_type == "Association":
        qual_ds_name = self._get_datastore_name(datastore_name)
        table = qual_ds_name
        if self.profile == DataStore.DS_PROFILE.DIRECTORY:
            table = qual_ds_name + "_dir"
        if object_type == "Association":

src/p/y/pyon-HEAD/pyon/ion/directory_standalone.py   pyon(Download)
        self.datastore_name = "resources"
        self.datastore = DatastoreFactory.get_datastore(datastore_name=self.datastore_name, config=config,
                                                        scope=sysname, profile=DataStore.DS_PROFILE.DIRECTORY,
                                                        variant=DatastoreFactory.DS_BASE)