Changeset 32194 for trunk/ippToPsps
- Timestamp:
- Aug 25, 2011, 1:09:32 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/batch.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/batch.py
r32163 r32194 285 285 Publishes this batch to the datastore 286 286 ''' 287 def publishToDatastore(self):287 def tarZipAndpublishToDatastore(self): 288 288 289 289 # set up filenams and paths … … 308 308 309 309 # now publish to the datastore 310 if self.datastore.publish(self.batchName, self.subDir, tarballFile, "tgz"): 311 self.ippToPspsDb.updateLoadedToDatastore(self.batchID, 1) 310 Batch.publishToDatastore(self.datastore, self.ippToPspsDb, self.batchID, self.batchName, self.subDir, tarballFile) 311 312 ''' 313 Static method to publish a batch to the datastore 314 ''' 315 @staticmethod 316 def publishToDatastore(datastore, ippToPspsDb, batchID, batchName, subDir, tarballFile): 317 if datastore.publish(batchName, subDir, tarballFile, "tgz"): 318 ippToPspsDb.updateLoadedToDatastore(batchID, 1) 319 else: 320 ippToPspsDb.updateLoadedToDatastore(batchID, -1) 321 312 322 313 323 ''' … … 443 453 except: 444 454 self.logger.exception("Could not write to FITS") 455 self.ippToPspsDb.updateProcessed(self.batchID, -1) 445 456 return False 446 457 … … 510 521 if self.exportPspsTablesToFits(): 511 522 self.writeBatchManifest() 512 if int(self.doc.find("options/publishToDatastore").text): self. publishToDatastore()523 if int(self.doc.find("options/publishToDatastore").text): self.tarZipAndpublishToDatastore() 513 524 if int(self.doc.find("options/reportNulls").text): self.reportNullsInAllPspsTables(False) 514 525
Note:
See TracChangeset
for help on using the changeset viewer.
