Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id AF0BDE0081E; Wed, 18 Feb 2015 07:10:03 -0800 (PST) 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.181 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 246DEE0080C for ; Wed, 18 Feb 2015 07:10:01 -0800 (PST) Received: by mail-wi0-f181.google.com with SMTP id r20so2847745wiv.2 for ; Wed, 18 Feb 2015 07:10:00 -0800 (PST) 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; bh=xvKp+H7rzRNr0M9yJKBYFNGEqNuakGDOTkenfXrOKs0=; b=KVVz/HjyRnoA8nqmPV1GcCsQvwdiCLE+3NaB3CEK0FeGnPWoqNG8cuU2KQNEZntPgd SQF8lceTNct7/+4KI8y5CBRQR+oLjyL6xJew6O3mM5M1zhA8+IkgU0xOPMS123bGbC0q 9flCWHnOsXWHPb3lYjznzzM/iQMtSeJXQl6AZHX5V1b6OKWgblinobME9+bESiuecHr7 JnGMrL5pIwisIl0pKOqWMER3lge5Rslbhedb9fh0z3UwWWTJyRSmk3OikLWcjlMBK7He e3FA5+0xBvzmw+2Arm0F8qx9aoA/xDpx4FH/Qazd0Bz1uI4gjJ+5T/xnR1nlJ7lKsk5n WWnA== X-Gm-Message-State: ALoCoQlcYlUhfBAt8iKIgnhkhezvSUdQyBmSNouMmtw1EuAYmiu7vSHKStXcv04YcFrAEweK7Baq X-Received: by 10.194.57.199 with SMTP id k7mr74660827wjq.1.1424272200560; Wed, 18 Feb 2015 07:10:00 -0800 (PST) Received: from draco.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id z6sm29858667wix.20.2015.02.18.07.09.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Feb 2015 07:09:59 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Wed, 18 Feb 2015 15:09:44 +0000 Message-Id: <1424272184-14700-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.1.0 Subject: [review-request][PATCH] bitbake: toaster: layerdetails Don't show None type in description/summary 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: Wed, 18 Feb 2015 15:10:03 -0000 When the result for the summary or description is None don't output the result as the string version of None, use an empty value so that the "Not set" mechanism works. [YOCTO #7244] Signed-off-by: Michael Wood --- bitbake/lib/toaster/toastergui/templates/layerdetails.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html index 465d633..c162c8b 100644 --- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html +++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html @@ -453,7 +453,7 @@
- {{layerversion.layer.summary}} + {{layerversion.layer.summary|default_if_none:''}}
@@ -467,7 +467,7 @@
- {{layerversion.layer.description}} + {{layerversion.layer.description|default_if_none:''}} -- 2.1.0