fix broken show form

This commit is contained in:
David Raznick 2012-08-14 00:44:00 +02:00 committed by ckan team
parent 7efca28c22
commit 4b4e5dba62
2 changed files with 2 additions and 3 deletions

View File

@ -183,7 +183,6 @@ class ViewController(BaseController):
try: try:
context = {'model':model, 'user':c.user} context = {'model':model, 'user':c.user}
c.source = get_action('harvest_source_show')(context, {'id':id}) c.source = get_action('harvest_source_show')(context, {'id':id})
c.page = Page( c.page = Page(
collection=c.source['status']['packages'], collection=c.source['status']['packages'],
page=request.params.get('page', 1), page=request.params.get('page', 1),

View File

@ -88,7 +88,7 @@
<ul> <ul>
{% for error in c.source.status.last_harvest_errors.gather %} {% for error in c.source.status.last_harvest_errors.gather %}
<li> <li>
{% set lines = error['message'].split('\n') %} {% set lines = error.split('\n') %}
{% for line in lines %} {% for line in lines %}
<div>{{ line }}</div> <div>{{ line }}</div>
{% endfor %} {% endfor %}
@ -102,7 +102,7 @@
<ul> <ul>
{% for error in c.source.status.last_harvest_errors.object %} {% for error in c.source.status.last_harvest_errors.object %}
<li> <li>
<div>GUID <a href="${g.site_url}/harvest/object/${error.object_id}">${error.object_guid}</a></div> <div>GUID <a href="{{g.site_url}}/harvest/object/{{error.object_id}}">{{error.object_guid}}</a></div>
{% set lines = error['message'].split('\n') %} {% set lines = error['message'].split('\n') %}
{% for line in lines %} {% for line in lines %}
<div>{{ line }}</div> <div>{{ line }}</div>