Ignore:
Timestamp:
29/05/09 16:47:12 (10 years ago)
Author:
sdonegan
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/branches/ingestAutomation-upgrade/OAIBatch/oai_document_ingester.py

    r5351 r5352  
    4444                os.chdir(self._base_dir) 
    4545                print "shit this was done on windows" 
     46        print "shit this was done on damned unix" 
    4647                # - to run on Windows under cygwin, use the following 
    4748                #os.putenv('PATH', 'C:\\opt\\cygwin\\bin') 
     
    7172                 
    7273                self._setupXQueries() 
    73                                  
     74         
    7475                # Process the resulting files and put the data into the postgres DB 
    7576                # - firstly set up a db connection to use 
    7677                self._getPostgresDBConnection() 
    7778 
    78                 numfilesproc = self._convertAndIngestFiles(self.originals_dir, self.discovery_dir) 
     79                numfilesproc = self._convertAndIngestFiles(self.originals_dir, self.discovery_dir, dataCentre) 
    7980                 
    80                 outMessage = "OAI Document ingest processing complete:\n" 
     81        outMessage = "OAI Document ingest processing complete:\n" 
    8182                logging.info("oai_document_ingest processing complete:") 
    8283                isSuccess = False 
     
    111112                print " -v - verbose mode for output logging" 
    112113                print " -d - debug mode for output logging" 
    113                 sys.exit(2) 
     114        #print " -i - specify individual file to upload rather than batch processing as defined in properties file.  \n      (NOTE: script still uses properties file for other parameters)\n" 
     115         
     116        sys.exit(2) 
    114117                 
    115118         
    116119if __name__=="__main__": 
    117         print "=================================" 
    118         print "RUNNING: oai_document_ingester.py" 
    119         ingester = oai_document_ingester() 
    120         args = ingester._setupCmdLineOptions() 
    121         ingester.processDataCentre(args[0]) 
     120    print "sksh" 
     121    print "=================================" 
     122    print "RUNNING: oai_document_ingester.py" 
     123    #ingester = oai_document_ingester() 
     124    #args = ingester._setupCmdLineOptions() 
     125    #ingester.processDataCentre(args[0]) 
Note: See TracChangeset for help on using the changeset viewer.