diff talosnames/web.py @ 43:4e8c839dcdec

filter by disabled
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 12 Aug 2012 23:27:28 -0700
parents 4dfa9c298e3d
children 10e59c3ae847
line wrap: on
line diff
--- a/talosnames/web.py	Sun Aug 12 23:10:16 2012 -0700
+++ b/talosnames/web.py	Sun Aug 12 23:27:28 2012 -0700
@@ -92,7 +92,11 @@
         return response(environ, start_response)
 
     def render(self, request=None):
+
+        # make a local copy of the data
         data = self.data.copy()
+
+        # filter by TBPL letter
         if request and 'tbpl' in request.GET:
             tbplnames = []
             for name in request.GET.getall('tbpl'):
@@ -104,6 +108,7 @@
                 if value in tbplnames:
                     suites.append(suite)
             data['suites'] = sorted(suites)
+
         contents = file(template).read()
         _template = tempita.HTMLTemplate(contents)
         return _template.substitute(data)