Changeset 32007
- Timestamp:
- Aug 3, 2011, 3:34:26 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/ipptopsps.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/ipptopsps.py
r32000 r32007 1 1 #!/usr/bin/env jython 2 2 3 # The starting point for ippTopsps. Run with TODO....3 # The starting point for ippTopsps. See usage below. 4 4 5 5 import time … … 11 11 from gpc1db import Gpc1Db 12 12 from ipptopspsdb import IppToPspsDb 13 14 from initbatch import InitBatch 13 15 from stackbatch import StackBatch 14 16 from detectionbatch import DetectionBatch … … 69 71 ''' 70 72 71 if len(sys.argv) > 1: CONFIG = sys.argv[1]73 if len(sys.argv) > 1: CONFIG = sys.argv[1] 72 74 else: 73 print "** Usage: " + sys.argv[0] + " <configPath> "75 print "** Usage: " + sys.argv[0] + " <configPath> [init]" 74 76 sys.exit(1) 77 78 if len(sys.argv) > 2 and sys.argv[2] == "init": 79 QUEUE_IN = 1 80 print "JKJKJKJKJK\n\n" 81 else: 82 QUEUE_IN = 0 75 83 76 84 # open config file … … 98 106 99 107 # prompt user: FORCE and PUBLISH is a dangerous combination 100 if FORCE and PUBLISH :101 response = raw_input(" Are you sure you want to publish data with the 'force' option enabled (y/n)? ")108 if FORCE and PUBLISH and not QUEUE_IN: 109 response = raw_input("*** Are you sure you want to publish data with the 'force' option enabled (y/n)? ") 102 110 if response != "y": sys.exit(1) 103 111 … … 125 133 126 134 # queue all items for all batch types, sequentially 135 if QUEUE_IN: 136 batch = InitBatch(logger, CONFIG, configDoc, gpc1Db, ippToPspsDb) 137 batch.printMe() 138 batch.run() 139 break; 140 127 141 if QUEUE_P2: queueItems("P2") 128 142 if QUEUE_ST: queueItems("ST")
Note:
See TracChangeset
for help on using the changeset viewer.
