Changeset 35183 for trunk/ippToPsps/jython/ipptopspsdb.py
- Timestamp:
- Feb 20, 2013, 9:49:30 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/ipptopspsdb.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/ipptopspsdb.py
r35175 r35183 1097 1097 Inserts new box into box table. If it already exisits, it returns existing box id 1098 1098 ''' 1099 def setIngestedBox(self, id ):1099 def setIngestedBox(self, id, host): 1100 1100 1101 1101 # set the field 'ingested' to 1 for this box 1102 sql = "update box set ingested = 1where id = " + str(id)1102 sql = "update box set ingested = '" + host + "' where id = " + str(id) 1103 1103 try: 1104 1104 self.execute(sql) … … 1108 1108 1109 1109 ''' 1110 Inserts new box into box table. If it already exisits, it returns existing box id1111 ''' 1112 def clearIngestedBoxes(self ):1110 Clear ingested flag for boxes owned by this host 1111 ''' 1112 def clearIngestedBoxes(self, host): 1113 1113 1114 1114 # set the field 'ingested' to 1 for this box 1115 sql = "update box set ingested = 0"1115 sql = "update box set ingested = 'none' where ingested = '" + host + "'" 1116 1116 try: 1117 1117 self.execute(sql) 1118 1118 except: 1119 print "failed to clear boxes as ingested"1119 print "failed to clear ingested state for boxes owned by host ", host 1120 1120 raise 1121 1121
Note:
See TracChangeset
for help on using the changeset viewer.
