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"])
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'] ])
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"])