[damned-lies] Make team list XML output even better



commit 17c4754ac272117f1f9f944b02607b9c9846e28d
Author: Olav Vitters <olav bkor dhs org>
Date:   Thu Jul 30 16:18:16 2009 +0200

    Make team list XML output even better

 templates/teams/team_list.xml |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/templates/teams/team_list.xml b/templates/teams/team_list.xml
index 4f80508..e85ae62 100644
--- a/templates/teams/team_list.xml
+++ b/templates/teams/team_list.xml
@@ -1,9 +1,13 @@
 <teams>
   {% for team in teams %}
-  <team id="{{ teams.name}}">
+  <team id="{{ team.name}}">
     {% with team.get_coordinator as coordinator %}
-    {% if coordinator %}
-    <coordinator>{{ coordinator.svn_account }}</coordinator>
+    <description>{{ team.description }}</description>
+    {% if coordinator and coordinator.svn_account %}
+    <coordinator>
+      <name>{{ coordinator.name }}</name>
+      <vcs>{{ coordinator.svn_account }}</vcs>
+    </coordinator>
     {% endif %}
     {% endwith %}
   </team>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]