ckan中预览数据资源管理器视图出错

时间:2016-09-02 14:49:38

标签: csv jinja2 ckan

我在ubuntu 14机器上安装了ckan实例。

所有接缝都没问题,除非我尝试在探索的数据中预览资源视图。

我正在使用recline_view插件来查看数据。该资源是一个简单的csv文件,它已成功导出到数据存储区。

我正在使用datapusher插件将csv数据发送到数据存储区。尝试预览csv资源时获取的错误如下:

⇝ HelperError: Helper 'get_mapview_config' has not been defined.
View as:   Interactive (full)  |  Text (full)  |  XML (full)
Module ckan.controllers.package:1568 in resource_view          view
>>  return h.rendered_resource_view(view, resource, package, embed=True)
Module ckan.lib.helpers:1954 in rendered_resource_view          view
>>  return literal(base.render(template, extra_vars=data_dict))
Module ckan.lib.base:174 in render          view
>>  return cached_template(template_name, render_template)
Module pylons.templating:249 in cached_template          view
>>  return render_func()
Module ckan.lib.base:128 in render_template          view
>>  return render_jinja2(template_name, globs)
Module ckan.lib.base:85 in render_jinja2          view
>>  return template.render(**extra_vars)
Module jinja2.environment:989 in render          view
>>  return self.environment.handle_exception(exc_info, True)
Module jinja2.environment:754 in handle_exception          view
>>  reraise(exc_type, exc_value, tb)
Module /home/ubuntu/workspace/ckan/default/src/ckan/ckanext/reclineview/theme/templates/recline_view.html:1 in top-level template code          view
>>  {% extends "base.html" %}
Module /home/ubuntu/workspace/ckan/default/src/ckan/ckan/templates/base.html:103 in top-level template code          view
>>  {%- block page %}{% endblock -%}
Module /home/ubuntu/workspace/ckan/default/src/ckan/ckanext/reclineview/theme/templates/recline_view.html:5 in block "page"          view
>>  {% set map_config = h.get_map_config() or h.get_mapview_config() %}
Module jinja2.environment:412 in getattr          view
>>  return obj[attribute]
Module ckan.lib.helpers:62 in __getitem__          view
>>  key=key
HelperError: Helper 'get_mapview_config' has not been defined.   

可能是什么问题?我有没有配置丢失?

1 个答案:

答案 0 :(得分:1)

问题是ckan社区的记者。 Thera是解决问题的拉取请求:

https://github.com/ckan/ckan/pull/3235

您只需要提取此提交或等待它直接合并到主分支。