예제 #1
0
    def __init__(self, server=appConfig["couchdb.url"], database="resource_data"):
        """
        Constructor
        """
        harvest.__init__(self, server, database)
        self.server = couchdb.Server(server)
        self.db = self.server[database]
        self.res_data_url = "/".join([appConfig["couchdb.url"], appConfig["couchdb.db.resourcedata"]])

        self.service_doc = helpers.getServiceDocument(appConfig["lr.oaipmh.docid"])
예제 #2
0
 def __init__(self, server=appConfig['couchdb.url'], database="resource_data"):
     '''
     Constructor
     '''
     harvest.__init__(self, server, database)
     self.server = couchdb.Server(server)
     self.db = self.server[database]
     self.res_data_url = '/'.join([
         appConfig['couchdb.url'],
         appConfig['couchdb.db.resourcedata']
     ])
예제 #3
0
    def __init__(self, server=appConfig['couchdb.url'], database="resource_data"):
        '''
        Constructor
        '''
        harvest.__init__(self, server, database)
        self.server = couchdb.Server(server)
        self.db = self.server[database]
        self.res_data_url = '/'.join([
            appConfig['couchdb.url'],
            appConfig['couchdb.db.resourcedata']
        ])

        self.service_doc = helpers.getServiceDocument(appConfig["lr.oaipmh.docid"])