def parse_property(name,value):
    """
    Parses properties in the format 'name(;|\n)key=value(;|\n)key=value'
    Used by HDB++ config and archivers
    """
    if '\n' in value:
        value = value.split('\n')
    elif ';' in value:
        value = value.split(';')
    else:
        value = [value]

    r = {'name': (value.pop(0) if '=' not in value[0] else name) }
    value = [v.strip().split('=',1) for v in value]
    r.update((v[0],v[-1]) for v in value)

    return r