Changeset 3101 for TI01-discovery


Ignore:
Timestamp:
04/12/07 17:27:37 (12 years ago)
Author:
selatham
Message:

Cope with slashes in id. More DP config files

Location:
TI01-discovery/trunk/ingestAutomation/OAIBatch
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/ingestAutomation/OAIBatch/oai_ingest.py

    r3021 r3101  
    187187                    new_filename = outdir + "/"+ ident.replace(":","__")+".xml" 
    188188                else: 
     189                    ident = ident.replace(":","-") 
     190                    ident = ident.replace("/","-") 
    189191                    new_filename = outdir + "/" +datacentre_namespace+ "__"+datacentre_format+ "__"+ ident +".xml" 
    190                     new_filename=new_filename.replace(":","-") 
    191192                print "original file = %s, newfile = %s" %(original_filename, new_filename) 
    192193                commandline = "cp "+original_filename+ " " +new_filename 
Note: See TracChangeset for help on using the changeset viewer.