Merged in [11085] from bartosz.balazinski@interdigital.com:

Added validation for the dependency graph output type (one of 'dot', 'pdf', 'svg').  Added an area column to the directorate summary page.

    Commit fixes bug #1887, fixes bug #1940.
 - Legacy-Id: 11095
Note: SVN reference [11085] has been migrated to Git commit b46081f514
This commit is contained in:
Henrik Levkowetz 2016-04-04 20:08:33 +00:00
commit 50c9b32420
2 changed files with 4 additions and 2 deletions

View file

@ -755,7 +755,7 @@ def make_dot(group):
@cache_page(60 * 60)
def dependencies(request, acronym, group_type=None, output_type="pdf"):
group = get_group_or_404(acronym, group_type)
if not group.features.has_documents:
if not group.features.has_documents or output_type not in ["dot", "pdf", "svg"]:
raise Http404
dothandle, dotname = mkstemp()

View file

@ -17,6 +17,7 @@
<tr>
<th>Team</th>
<th>Name</th>
<th>Area</th>
<th>AD</th>
<th>Secretaries</th>
<th>Chairs</th>
@ -27,6 +28,7 @@
<tr>
<td><a href="{% url "ietf.group.info.group_home" acronym=group.acronym %}">{{ group.acronym }}</a></td>
<td>{{ group.name }}</td>
<td><a href="{% url "ietf.group.info.group_home" acronym=group.parent.acronym %}">{{ group.parent.acronym }}</a></td>
<td>
{% for ad in group.ads %}
<a href="mailto:{{ ad.email.address }}">{{ ad.person.plain_name }}</a>{% if not forloop.last %}, {% endif %}
@ -50,4 +52,4 @@
{% block js %}
<script src="{% static "jquery.tablesorter/js/jquery.tablesorter.combined.min.js" %}"></script>
{% endblock %}
{% endblock %}