Pick proper SG key out of a list from ObjKeyStore.
KEYSTR is a comma-separated list of StoreGate keys.
Return the first one from that list that exists in the input.
Raise an exception if none of them exist.
Definition at line 13 of file resolveSGKey.py.
14 """Pick proper SG key out of a list from ObjKeyStore.
16 KEYSTR is a comma-separated list of StoreGate keys.
17 Return the first one from that list that exists in the input.
18 Raise an exception if none of them exist.
21 log = logging.getLogger (
'D3PD')
22 kl = keystr.split(
',')
24 if k
in flags.Input.Collections:
25 log.verbose (
"Using SG key %s for type %s." % (k, type))
31 raise Exception (
"No keys among `%s' for type `%s' in ObjKeyStore." %