changeset 41:4dfa9c298e3d

record whether a suite is enabled
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 12 Aug 2012 22:38:12 -0700
parents 10945dedde84
children cc0edf61ab21
files talosnames/api.py talosnames/web.py
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/talosnames/api.py	Tue Jul 24 22:51:40 2012 -0700
+++ b/talosnames/api.py	Sun Aug 12 22:38:12 2012 -0700
@@ -92,8 +92,10 @@
         module = require.require(self.buildbot_config)
         self.suites = module.SUITES
         self.buildbot_commands = {}
+        self.buildbot_enabled = {}
         for key, value in self.suites.items():
             self.buildbot_commands[key] = value['suites']
+            self.buildbot_enabled[key] = value['enable_by_default']
 
     ### functions for fetching information
 
--- a/talosnames/web.py	Tue Jul 24 22:51:40 2012 -0700
+++ b/talosnames/web.py	Sun Aug 12 22:38:12 2012 -0700
@@ -33,6 +33,7 @@
         self.suites = suites
 
         self.data = {'suites': self.suites,
+                     'enabled': self.api.buildbot_enabled, # whether the suite is enabled by default
                      'commands': self.api.buildbot_commands,
                      'tbpl': dict([(suite, self.api.tbpl_name(suite))
                                    for suite in suites]),