Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 8EFD6E00FCE; Fri, 25 Sep 2015 11:07:52 -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.182 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id CB598E00FCD for ; Fri, 25 Sep 2015 11:07:51 -0700 (PDT) Received: by wicfx3 with SMTP id fx3so32299226wic.1 for ; Fri, 25 Sep 2015 11:07:50 -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=Ii/oip8BGXJIeLhMXw1zQN3jYcickVTckNfBDm9pP4Y=; b=Niaj+LIMcjT5UVik2PIlTUOmKtGjlj2cXvMFFHSBaK1041qPjo5YQ79fVXtvrwLFtb RRaH/00XMx1SoKit5jx+Z+Ru81sZJk2YPVcOAc6dBVasO9qMVsl6PVN+z0z9JI8QhnLD 84FUB04aZB8xB8shfpCHUBFpkL1mgRmsmwgolnVqNb6FmQEBmZv+NMW0A//s6eUjQaD8 avbHX5jMr1RDj+R2YxN4CTuyzl2Owywii+C6EAuABZDcnJCVwnSktOpxd4TtvwN74Sp8 QsnitsrRNm8rTXe3br1jj1KVBtmJyAuSx4tti51h2O55ZKD6czc58nPDFVed0/e/fDmx l2ig== X-Gm-Message-State: ALoCoQmWF4AKCWgXtGk+wFgqSOGVdZEM4xEQVWspCfz/KWPmGVx1DItjJ9lNol0gYimXlLbZoE9h X-Received: by 10.194.246.199 with SMTP id xy7mr7545414wjc.61.1443204470862; Fri, 25 Sep 2015 11:07:50 -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.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Sep 2015 11:07:50 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Fri, 25 Sep 2015 19:07:22 +0100 Message-Id: <1443204452-32244-12-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 11/21] toaster: Fix indentation of jsunittests view 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:52 -0000 Fix indentation to 4 spaces Signed-off-by: Michael Wood --- bitbake/lib/toaster/toastergui/views.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 95df60e..5ea6122 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py @@ -2328,20 +2328,20 @@ if True: return wrapper def jsunittests(request): - """ Provides a page for the js unit tests """ - bbv = BitbakeVersion.objects.filter(branch="master").first() - release = Release.objects.filter(bitbake_version=bbv).first() + """ Provides a page for the js unit tests """ + bbv = BitbakeVersion.objects.filter(branch="master").first() + release = Release.objects.filter(bitbake_version=bbv).first() - name = "_js_unit_test_prj_" + name = "_js_unit_test_prj_" - # If there is an existing project by this name delete it. We don't want - # Lots of duplicates cluttering up the projects. - Project.objects.filter(name=name).delete() + # If there is an existing project by this name delete it. We don't want + # Lots of duplicates cluttering up the projects. + Project.objects.filter(name=name).delete() - new_project = Project.objects.create_project(name=name, release=release) + new_project = Project.objects.create_project(name=name, release=release) - context = { 'project' : new_project } - return render(request, "js-unit-tests.html", context) + context = { 'project' : new_project } + return render(request, "js-unit-tests.html", context) from django.views.decorators.csrf import csrf_exempt @csrf_exempt -- 2.1.4