File indexing completed on 2024-04-06 12:08:54
0001
0002 from __future__ import print_function
0003 from optparse import OptionParser, Option, OptionValueError
0004 import DLFCN
0005 import sys
0006 sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY)
0007
0008 import pluginCondDBPyInterface as condDB
0009 a = condDB.FWIncantation()
0010
0011 def list_tag( conn_str, tag, auth_path ):
0012 rdbms = condDB.RDBMS( auth_path )
0013 db = rdbms.getReadOnlyDB( conn_str )
0014 db.startReadOnlyTransaction()
0015 iov = db.iov( tag )
0016 for elem in iov.elements:
0017 print(elem.since())
0018 db.commitTransaction()
0019
0020 if __name__ == "__main__":
0021 parser=OptionParser()
0022 parser.add_option("-c","--connection",action="store",dest="conn_str",help="connection string of the target account")
0023 parser.add_option("-t","--tag",action="store",dest="tag",help="tag to print")
0024 parser.add_option("-P","--auth_path",action="store",dest="auth_path",help="authentication path")
0025 (options, args) = parser.parse_args()
0026 list_tag( parser.values.conn_str,parser.values.tag, parser.values.auth_path )
0027
0028