ckanext-spatial icon indicating copy to clipboard operation
ckanext-spatial copied to clipboard

PyCSW ConfigParser.get has wrong number of arguments

Open benjwadams opened this issue 11 months ago • 1 comments

In ckan_pycsw.py there is a TypeError raised when various references to table_name = pycsw_config.get("repository", "table", "records") is called, indicating a maximum of 3 arguments, with 4 supplied, e.g.

https://github.com/ckan/ckanext-spatial/blob/master/bin/ckan_pycsw.py#L27

According to https://docs.python.org/3/library/configparser.html#fallback-values there is a keyword-only fallback argument, which looks to be the possible intended behavior here? Should this be

benjwadams avatar Feb 27 '24 01:02 benjwadams

Repeat of https://github.com/ckan/ckanext-spatial/issues/299

benjwadams avatar Mar 08 '24 03:03 benjwadams