Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 927BCE00FC6; Fri, 25 Sep 2015 11:07:48 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.212.179 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E83E5E00AD1 for ; Fri, 25 Sep 2015 11:07:47 -0700 (PDT) Received: by wicgb1 with SMTP id gb1so31109963wic.1 for ; Fri, 25 Sep 2015 11:07:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=V2JQuCplKI9+9dU+3qIyfCTU5FBHXxNLaJN30kZnn3I=; b=W6yNTkvUJQxQ/7sokBih1WYT1iPOYACbCZB4vH4sFRfsnKNZ6x+USuSBDvwt0BcsJx ofMM/yBtvpmvKYY3wW5cbeyXJYqzJuWjW2sUxsnxnNac/Xuo/3MJKkh8q1b0mxLdtqh+ MIGGmq1zof0uVO4Z2l/a5ZMpx2UTL46BtYti/jFZeYz58LD8tWTsJM1TZcXw9sm44guI 7iX8QPUsGbv9YJ2ke8YaM5MbDq1+icZ7vZ29hT9T+aG9AY0zxFcOxRgz46uJa6Y6sUCc qAuj7nRqWUQnLiZA27DvJEfwhIwOkcj+l9A77rtOdN9NVWCZADc94xgRvJKK1cUoWISQ 11gw== X-Gm-Message-State: ALoCoQngte7ekEfD2yQVH6xMyZoYweQJrjATJ04tOzqoQIJJK02v3B46PwZ3s+BLM8UTqdX8WQSb X-Received: by 10.180.35.163 with SMTP id i3mr5296247wij.55.1443204467376; Fri, 25 Sep 2015 11:07:47 -0700 (PDT) Received: from draco.isw.intel.com ([83.217.123.106]) by smtp.gmail.com with ESMTPSA id uq5sm4511789wjc.3.2015.09.25.11.07.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Sep 2015 11:07:46 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Fri, 25 Sep 2015 19:07:18 +0100 Message-Id: <1443204452-32244-8-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1443204452-32244-1-git-send-email-michael.g.wood@intel.com> References: <1443204452-32244-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 07/21] toaster: ToasterTable remove unused class definition X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Sep 2015 18:07:48 -0000 Remove ToasterTemplateView as this isn't used by anything. Signed-off-by: Michael Wood --- bitbake/lib/toaster/toastergui/widgets.py | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/widgets.py b/bitbake/lib/toaster/toastergui/widgets.py index d7d5efd..e58dd7c 100644 --- a/bitbake/lib/toaster/toastergui/widgets.py +++ b/bitbake/lib/toaster/toastergui/widgets.py @@ -349,33 +349,6 @@ class ToasterTable(TemplateView): return data -class ToasterTemplateView(TemplateView): - # renders a instance in a template, or returns the context as json - # the class-equivalent of the _template_renderer decorator for views - - def __init__(self, *args, **kwargs): - super(ToasterTemplateView, self).__init__(*args, **kwargs) - self.context_entries = [] - - def get(self, *args, **kwargs): - if self.request.GET.get('format', None) == 'json': - from django.core.urlresolvers import reverse - from django.shortcuts import HttpResponse - from views import objtojson - from toastergui.templatetags.projecttags import json as jsonfilter - - context = self.get_context_data(**kwargs) - - for x in context.keys(): - if x not in self.context_entries: - del context[x] - - context["error"] = "ok" - - return HttpResponse(jsonfilter(context, default=objtojson ), - content_type = "application/json; charset=utf-8") - - return super(ToasterTemplateView, self).get(*args, **kwargs) class ToasterTypeAhead(View): """ A typeahead mechanism to support the front end typeahead widgets """ -- 2.1.4