def _post(self, builder_name):
        tests = self.request.get_all('test')

        for test in tests:
            QueueEntry.remove(builder_name, test)

        self.redirect(self._queue_list_url(builder_name))
    def _post(self, builder_name):
        current_tests = set(self._queued_test_names(builder_name))
        tests = set(self.request.get_all('test')).difference(current_tests)
        
        for test in tests:
            QueueEntry.add(builder_name, test)

        self.redirect(self._queue_list_url(builder_name))
 def _get(self, builder_name):
     self.response.out.write(
         template.render("templates/builder-queue-list.html", {
                 'builder_name': builder_name,
                 'entries': QueueEntry.entries_for_builder(builder_name),
             }))
 def _queued_test_names(self, builder_name):
     return [entry.test for entry in QueueEntry.entries_for_builder(builder_name)]
Beispiel #5
0
 def get(self):
     builder_names = QueueEntry.builder_names()
     self.response.out.write(
         template.render("templates/home.html", {
             'builder_names': builder_names,
         }))