def update_config(self, config):
''' Set up the resource library, public directory and
template directory for all the spatial extensions
'''
p.toolkit.add_public_directory(config, 'public')
p.toolkit.add_template_directory(config, 'templates')
p.toolkit.add_resource('public', 'ckanext-spatial')
# Add media types for common extensions not included in the mimetypes
# module
mimetypes.add_type('application/json', '.geojson')
mimetypes.add_type('application/gml+xml', '.gml')
评论列表
文章目录