def get(setting):
"""
Get configuration setting.
``setting`` is the setting without the ``ckanext.extractor.``
prefix.
Handles defaults and transformations.
"""
setting = 'ckanext.extractor.' + setting
value = config.get(setting, DEFAULTS[setting])
for transformation in TRANSFORMATIONS[setting]:
value = transformation(value)
return value
# Adapted from ckanext-archiver
评论列表
文章目录