def get_entry_label_from_pipeline_entry_str(s): gs = RX_BINDING_PIPELINE_ENTRY.match(s).groups() return "{e}:{i}".format(e=ENTRY_PREFIX, i=gs[2])
def get_pipeline_id_from_pipeline_entry_str(s): gs = RX_BINDING_PIPELINE_ENTRY.match(s).groups() return ".".join([gs[0], 'pipelines', gs[1]])