[Cdd-commits] r769 - in cdd/trunk/webtools: . templates

CDD Subversion Commit noreply at alioth.debian.org
Tue May 27 05:43:34 UTC 2008


Author: tille
Date: Tue May 27 05:43:33 2008
New Revision: 769

Modified:
   cdd/trunk/webtools/tasks_idx.py
   cdd/trunk/webtools/templates/tasks_idx.xhtml
Log:
Sorted tasks list


Modified: cdd/trunk/webtools/tasks_idx.py
==============================================================================
--- cdd/trunk/webtools/tasks_idx.py	(original)
+++ cdd/trunk/webtools/tasks_idx.py	Tue May 27 05:43:33 2008
@@ -43,6 +43,8 @@
 		tasks		= tasksdict,
              )
 
+data['taskskeys'] = data['tasks'].keys()
+data['taskskeys'].sort()
 
 for lang in languages:
 	l10nstring[lang].install()

Modified: cdd/trunk/webtools/templates/tasks_idx.xhtml
==============================================================================
--- cdd/trunk/webtools/templates/tasks_idx.xhtml	(original)
+++ cdd/trunk/webtools/templates/tasks_idx.xhtml	Tue May 27 05:43:33 2008
@@ -35,7 +35,7 @@
 				This is a list of the Tasks $projectname is made of:
 			</p>
 			<dl>
-                             <py:for each="task in tasks.keys()">
+                             <py:for each="task in taskskeys">
                                 <dt><a href="${task}_${lang}.html">${tasks[task]['Task']} - ${tasks[task]['ShortDesc']}</a></dt>
 				<dd>${tasks[task]['LongDesc']}
 				</dd>



More information about the Cdd-commits mailing list