Comment 0 for bug 889564

Revision history for this message
eugene lin (linyouqing7) wrote : Containers can't list floder that uploaded by Cyberduck

Hi ,developers.
Because horizon can't upload floder throgh web page.
I use Cyberduck to upload a floder successfully at win7 ,
and then click the horizon page ' List Objects' button ,
but meets follow problems:

TemplateSyntaxError at /dash/7/containers/lyq/

Caught NoReverseMatch while rendering: Reverse for 'dash_object_copy' with arguments '(u'7', u'lyq', u'new floder/file1.txt')' and keyword arguments '{}' not found.

Request Method: GET
Request URL: http://122.224.78.137/dash/7/containers/lyq/
Django Version: 1.3
Exception Type: TemplateSyntaxError
Exception Value:

Caught NoReverseMatch while rendering: Reverse for 'dash_object_copy' with arguments '(u'7', u'lyq', u'new floder/file1.txt')' and keyword arguments '{}' not found.

Exception Location: /usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py in render, line 450

Template error

In template /opt/stack/horizon/django-openstack/django_openstack/templates/django_openstack/dash/objects/_list.html, error at line 11
Caught NoReverseMatch while rendering: Reverse for 'dash_object_copy' with arguments '(u'7', u'lyq', u'new floder/file1.txt')' and keyword arguments '{}' not found.
1 {% load i18n swift_paging %}
2
3 <table id="objects" class="wide">
4 <thead>
5 <tr>
6 <th>{% trans "Name"%}</th>
7 <th style="width: 100px;">{% trans "Actions"%}</th>
8 </tr>
9 </theaad>
10 <tbody>
11 {% for object in objects %}
12 <tr class="{% cycle 'odd' 'even' %}">
13 <td>{{ object.name }}</td>
14 <td id="actions">
15 <ul>
16 <li><a href="{% url dash_object_copy request.user.tenant_id container_name object.name %}">{% trans "Copy"%}</a></li>
17 <li class="form">{% include "django_openstack/dash/objects/_delete.html" with form=delete_form %}</li>
18 <li><a href="{% url dash_objects_download request.user.tenant_id container_name object.name %}">{% trans "Download"%}</a>
19 </ul>
20 </td>
21 </tr>