cldf / pycldf

python package to read and write CLDF datasets
https://cldf.clld.org
Apache License 2.0
15 stars 7 forks source link

add_provenance method of Dataset should merge info #97

Closed xrotwang closed 5 years ago

xrotwang commented 5 years ago

If Dataset.add_provenance is called multiple times with the same prov properties, it raises ValueError. Since the actual key to be inserted in common_props is computed within the method, checking whether the key already exists cannot be done easily from the caller. Thus, add_provenance should - at least optionally - merge data for the same key in common_props.