Changeset 8001
- Timestamp:
- 02/12/11 16:24:55 (9 years ago)
- Location:
- TI01-discovery-Ingest/trunk/v4.3.0/ingestAutomation-upgrade/OAIBatch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TI01-discovery-Ingest/trunk/v4.3.0/ingestAutomation-upgrade/OAIBatch/ExtractISO.py
r7997 r8001 22 22 23 23 #show actual values extracted from the XML in logging.info 24 self.showXMLvalues = False24 self.showXMLvalues = True 25 25 26 26 logging.info("Have initialised ISO XML Extractor") … … 230 230 self.authors_text = self.authorOb.getDelimitedStringFromList(self.authorOb.listVals) 231 231 self.authors_ts_vector = self.authors_text 232 232 #import pdb; pdb.set_trace() 233 233 self.datacentreName = self.getElementVal(self.isoModel.dataCentreName()) 234 234 -
TI01-discovery-Ingest/trunk/v4.3.0/ingestAutomation-upgrade/OAIBatch/abstractdocumentingester.py
r8000 r8001 984 984 985 985 else: 986 for badFile in self.problemMessageList.keys(): 987 sqlProbFileCmd = "select add_problem_file(%s,'%s','%s');"%(self.ingestProcessID,badFile,self.problemMessageList[badFile]) 988 989 #update ingestLogging 990 self.pgc_IngestLog.runSQLCommand(sqlProbFileCmd) 986 sqlProbFileCmd = '' 987 for badFile in self.problemMessageList.keys(): 988 989 try: 990 sqlProbFileCmd = "select add_problem_file(%s,'%s','%s');"%(self.ingestProcessID,badFile,self.problemMessageList[badFile]) 991 self.pgc_IngestLog.runSQLCommand(sqlProbFileCmd) 992 except: 993 #might be a dodgy char in there... in which case 994 logging.error("Trying to update an error report with bad characters..") 995 sqlProbFileCmd = "select add_problem_file(%s,'%s','%s');"%(self.ingestProcessID,badFile,"Bad characters present!") 996 997 #update ingestLogging 998 self.pgc_IngestLog.runSQLCommand(sqlProbFileCmd) 991 999 992 1000
Note: See TracChangeset
for help on using the changeset viewer.