pyca/ingest.py
def get_config_params(properties):
    '''Extract the set of configuration parameters from the properties attached
    to the schedule
    '''
    param = []
    wdef = ''
    for prop in properties.split('\n'):
        if prop.startswith('org.opencastproject.workflow.config'):
            key, val = prop.split('=', 1)
            key = key.split('.')[-1]
            param.append((key, val))
        elif prop.startswith('org.opencastproject.workflow.definition'):
            wdef = prop.split('=', 1)[-1]
    return wdef, param
def get_config_params(properties):
    '''Extract the set of configuration parameters from the properties attached
    to the schedule
    '''
    param = []
    wdef = ''
    for prop in properties.split('\n'):
        if prop.startswith('org.opencastproject.workflow.config'):
            key, val = prop.split('=', 1)
            key = key.split('.')[-1]
            param.append((key, val))
        elif prop.startswith('org.opencastproject.workflow.definition'):
            wdef = prop.split('=', 1)[-1]
    return wdef, param
def get_config_params ( properties ) : param = [ ] wdef = '' for prop in properties . split ( '\n' ) : if prop . startswith ( 'org.opencastproject.workflow.config' ) : key , val = prop . split ( '=' , 1 ) key = key . split ( '.' ) [ - 1 ] param . append ( ( key , val ) ) elif prop . startswith ( 'org.opencastproject.workflow.definition' ) : wdef = prop . split ( '=' , 1 ) [ - 1 ] return wdef , param
Extract the set of configuration parameters from the properties attached
    to the schedule
Extract the set of configuration parameters from the properties attached to the schedule