Ignore:
Timestamp:
06/11/08 17:28:00 (11 years ago)
Author:
cbyrom
Message:

Add new code to allow bulk loading of data from eXist - to improve performance
when doing data ingest.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/python/ndgUtils/models/utilities.py

    r4209 r4414  
    1 import os, sys, logging, re, cgi, datetime 
     1import os, sys, logging, re, cgi 
    22from ndgUtils.ETxmlView import subAI 
    33#import csml.csmlscan as CsmlScan 
     
    3636            raise ValueError("Triple data has an extra '|' character in it (%s) - please fix and rerun" %tripleString) 
    3737        val = val.strip() 
    38         returnData[i] = val 
     38        returnData[i] = escapeSpecialCharacters(val) 
    3939        i += 1 
    4040     
     
    5353     
    5454    # the XMLCHARREFREPLACE does the required character replacement 
    55     #return correctedString.encode('ascii', 'xmlcharrefreplace') 
    56     return correctedString.encode('utf-8') 
     55    return correctedString.encode('ascii', 'xmlcharrefreplace') 
     56    #return correctedString.encode('utf-8') 
    5757     
    5858 
Note: See TracChangeset for help on using the changeset viewer.