Changeset 31978 for trunk/ippToPsps/jython/ipptopsps.py
- Timestamp:
- Aug 2, 2011, 4:13:06 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/ipptopsps.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/ipptopsps.py
r31863 r31978 67 67 ''' 68 68 69 # check to see if we have a batch type70 if len(sys.argv) > 1: BATCHTYPE = sys.argv[1]71 else: BATCHTYPE = "ALL"72 73 69 # set up logging 74 70 logging.config.fileConfig("logging.conf") … … 91 87 EPOCH = configDoc.find("options/epoch").text 92 88 PUBLISH = int(configDoc.find("options/publishToDatastore").text) 89 QUEUE_P2 = int(configDoc.find("options/publishToDatastore").text) 90 QUEUE_ST = int(configDoc.find("options/publishToDatastore").text) 93 91 94 92 # prompt user: FORCE and PUBLISH is a dangerous combination … … 99 97 # print info to log 100 98 logger.infoSeparator() 101 logger.infoPair("Batch type", BATCHTYPE)102 99 logger.infoPair("Loading epoch", EPOCH) 103 logger.infoPair("Forcing?", "%d" % FORCE)104 logger.infoPair("Test mode?", "%d" % TEST)105 100 logger.infoPair("DVO gpc1 label", DVOGPC1LABEL) 101 logger.infoBool("Queuing P2 batches?", QUEUE_P2) 102 logger.infoBool("Queuing ST batches?", QUEUE_ST) 103 logger.infoBool("Forcing?", "%d" % FORCE) 104 logger.infoBool("Test mode?", "%d" % TEST) 105 logger.infoBool("Publishing?", PUBLISH) 106 106 107 107 ''' … … 117 117 118 118 # queue all items for all batch types, sequentially 119 if BATCHTYPE == "ALL": 120 queueItems("P2") 121 queueItems("ST") 122 # queue only items for the user-specified batch type 123 else: 124 queueItems(BATCHTYPE) 119 if QUEUE_P2: queueItems("P2") 120 if QUEUE_ST: queueItems("ST") 125 121 126 122 # in the TEST mode, we quit after submitting one batch
Note:
See TracChangeset
for help on using the changeset viewer.
