Changeset 6368


Ignore:
Timestamp:
21/01/10 17:03:12 (10 years ago)
Author:
sdonegan
Message:

..and synching this as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery-Ingest/trunk/v4n_MEDIN/ingestAutomation-upgrade/OAIBatch/PostgresDAO.py

    r5846 r6368  
    1010class PostgresDAO: 
    1111     
    12     def __init__(self, record, pgClient = None): 
     12    def __init__(self, record, isoDataModel, pgClient = None): 
    1313        ''' 
    1414        Constructor - to initialise the DAL and do some initial setting up 
     
    3030 
    3131        self._record = record 
     32        import pdb 
     33        pdb.set_trace() 
     34         
     35        self.isoDataModel = isoDataModel 
    3236         
    3337 
     
    289293        ''' 
    290294        logging.info("Inserting new original document in Postgres DB") 
     295         
     296        import pdb 
     297        pdb.set_trace() 
     298         
     299        ''' 
    291300        sqlCmd = "SELECT create_document('" + self._record.shortFilename + "', '" + \ 
    292301            self._record.discovery_id + "', '" + self._record.docType + "', '" + \ 
     
    295304            self._record.dataset_name + "', '" + self._record.datacentre_name + "', '" + self._record.dataset_lastEdit + "', '" + self._record.datasetStartNom + "', '" + self._record.datasetEndNom + "');" 
    296305                     
    297          
     306        ''' 
    298307        sqlCmd = sqlCmd.replace("'NULL'","NULL") 
    299308 
Note: See TracChangeset for help on using the changeset viewer.