import os import re from logging import getLogger from pylons import config from genshi.input import HTML from genshi.filters import Transformer from ckan import plugins as p from ckan.lib.search import SearchError from ckan.lib.helpers import json import html from ckanext.spatial.lib import save_package_extent,validate_bbox, bbox_query from ckanext.spatial.model.package_extent import setup as setup_model log = getLogger(__name__) def package_error_summary(error_dict): ''' Do some i18n stuff on the error_dict keys ''' def prettify(field_name): field_name = re.sub('(?