project/scipycon/talk/templatetags/talk_extras.py
changeset 94 87e77aa18610
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/scipycon/talk/templatetags/talk_extras.py	Tue Jul 13 17:59:47 2010 +0530
@@ -0,0 +1,8 @@
+from django import template
+
+register = template.Library()
+
+def choice(choices, value):
+    return choices[value]
+
+register.filter('choice', choice)