Changeset 5415


Ignore:
Timestamp:
25/06/09 11:56:50 (10 years ago)
Author:
sdonegan
Message:

Support extra abstractdocumentingester.py functionality - deletions and updates

File:
1 edited

Legend:

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

    r5252 r5415  
    3232    ndg_data_provider_vocab = "http://vocab.ndg.nerc.ac.uk/term/N010" 
    3333         
    34     def __init__(self, filename, ndg_dataprovider, datacentre_groups, \ 
    35                  datacentre_namespace, discovery_id, xq, docType): 
     34    #def __init__(self, filename, ndg_dataprovider, datacentre_groups, datacentre_namespace, discovery_id, xq, docType): 
     35    def __init__(self, filename, ndg_dataprovider, datacentre_groups, datacentre_namespace, discovery_id,datasetName,datacentreName,datasetLastEditUpdateDate, xq, docType): 
     36                  
    3637        logging.info("Setting up Postgres record for file, " + filename) 
    3738        self.filename = filename 
     
    5253        # simplify processing by uppercasing format at initialisation 
    5354        self.docType = docType.upper()     
     55         
     56        self.dataset_name = datasetName 
     57        self.dataset_lastEdit = datasetLastEditUpdateDate 
     58        self.datacentre_name = datacentreName 
    5459 
    5560        self._molesFormat = None    # initialise this, so we can guarantee a value - to avoid using getattr 
Note: See TracChangeset for help on using the changeset viewer.