- Timestamp:
- Jun 28, 2012, 9:47:11 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120627/ippToPsps/jython/scratchdb.py
r33833 r34103 544 544 545 545 ''' 546 Gets a count of average filters (secfilt) in the DVO Photcodes table 547 ''' 548 def getCountOfFiltersFromPhotcodesTable(self): 549 550 # 2 is hardwired -- convert to an enum (should probably read Ohana/src/libdvo/include/dvo.h defines 551 sql = "SELECT count(TYPE) FROM " + self.dvoPhotcodesTable + " WHERE TYPE = 2" 552 553 filterCount = 0 554 try: 555 rs = self.executeQuery(sql) 556 row = 1 557 while (rs.next()): 558 filterCount = rs.getString(1) 559 rs.close() 560 except: 561 self.logger.errorPair("Could not get filter count", sql ) 562 563 return filterCount 564 565 ''' 546 566 Gets a list of filters ordered as thy are in the DVO Photcodes table, as this reflects the order they apper in the cps file 547 567 ''' 548 568 def getOrderedListOfFiltersFromPhotcodesTable(self, interestedFilters): 569 570 sql = "SELECT count(TYPE) FROM " + self.dvoPhotcodesTable + " WHERE TYPE = 'sec'" 549 571 550 572 sql = "SELECT NAME FROM " + self.dvoPhotcodesTable + " WHERE "
Note:
See TracChangeset
for help on using the changeset viewer.
