Changeset 6376


Ignore:
Timestamp:
22/01/10 14:10:20 (9 years ago)
Author:
sdonegan
Message:

further updates so processDatacentre can recieve the config file location as an arg

Location:
TI01-discovery-Ingest/trunk/v3n_NDG3/ingestAutomation-upgrade/OAIBatch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery-Ingest/trunk/v3n_NDG3/ingestAutomation-upgrade/OAIBatch/abstractdocumentingester.py

    r6361 r6376  
    233233                 
    234234                # Check this file exists; if not, assume an invalid datacentre has been specified 
     235                print "************************************** " + configFilePath 
    235236                if not os.path.isfile(configFilePath): 
    236237                    sys.exit("ERROR: Could not find the processing config file") 
  • TI01-discovery-Ingest/trunk/v3n_NDG3/ingestAutomation-upgrade/OAIBatch/oai_document_ingester.py

    r6361 r6376  
    3737                outMessage = summary of ingest process 
    3838                ''' 
     39                 
    3940                self._no_files_ingested = 0 
    4041                self._no_files_changed = 0 
     
    4748 
    4849                #extract relevant directories etc from processing config gile 
    49                 self.processingDict = self.getProcessingConfig('oai_document_ingester.config') 
    5050                 
     51                 
     52                #self.processingDict = self.getProcessingConfig('oai_document_ingester.config') 
     53                if configFileName is None: 
     54                        self.processingDict = self.getProcessingConfig(self.oaiEditorConfig) 
     55                else: 
     56                        self.processingDict = self.getProcessingConfig(configFileName) 
    5157                         
    5258                #self._code_dir = "/home/badc/buildouts/oai_document_ingester/ingestAutomation-upgrade/OAIBatch/" # this is the base dir that the script is ran from 
     
    94100                        #must be looking for an individual file to upload 
    95101                        if not os.path.exists(self.indFileToIngest): 
    96                                 print "HHHHHHH " + self.indFileToIngest 
     102                                 
    97103                                logging .warn("Specified file does not exist") 
    98104                                return 
     
    187193        ingester = oai_document_ingester()       
    188194        args = ingester._setupCmdLineOptions() 
     195        import pdb 
     196        pdb.set_trace() 
    189197        ingester.processDataCentre(args[0]) 
Note: See TracChangeset for help on using the changeset viewer.