Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 34814E0045E; Tue, 19 Jul 2016 06:48:14 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.88 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id BC792E0043B for ; Tue, 19 Jul 2016 06:48:12 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 19 Jul 2016 06:48:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,389,1464678000"; d="scan'208";a="1019787770" Received: from irsmsx103.ger.corp.intel.com ([163.33.3.157]) by orsmga002.jf.intel.com with ESMTP; 19 Jul 2016 06:48:09 -0700 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.97]) by IRSMSX103.ger.corp.intel.com ([169.254.3.204]) with mapi id 14.03.0248.002; Tue, 19 Jul 2016 14:48:07 +0100 From: "Barros Pena, Belen" To: "Smith, Elliot" , "toaster@yoctoproject.org" Thread-Topic: [Toaster] [PATCH][v2] toaster: fix download URL for task logs Thread-Index: AQHR4bYpqJ7ysoP6002RSykpVyxHyqAfxO2A Date: Tue, 19 Jul 2016 13:48:07 +0000 Message-ID: References: <1468594840-10140-1-git-send-email-elliot.smith@intel.com> <1468930023-11535-1-git-send-email-elliot.smith@intel.com> In-Reply-To: <1468930023-11535-1-git-send-email-elliot.smith@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.5.160527 x-originating-ip: [10.252.2.235] MIME-Version: 1.0 Subject: Re: [PATCH][v2] toaster: fix download URL for task logs 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: Tue, 19 Jul 2016 13:48:14 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <0F6EBAE526E73544BF3E0AF56F8D808A@intel.com> Content-Transfer-Encoding: quoted-printable On 19/07/2016 13:07, "toaster-bounces@yoctoproject.org on behalf of Elliot Smith" wrote: >The task display template formatting had split the Django >url template tag across two lines and broken it. This resulted >in a gibberish URL for task logs. > >Fix by placing the tag and its arguments on a single line. > >[YOCTO #9837] This seems to work well. Thanks! Bel=E9n > >Signed-off-by: Elliot Smith >--- > bitbake/lib/toaster/toastergui/templates/task.html | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > >diff --git a/bitbake/lib/toaster/toastergui/templates/task.html >b/bitbake/lib/toaster/toastergui/templates/task.html >index 86789bd..214c777 100644 >--- a/bitbake/lib/toaster/toastergui/templates/task.html >+++ b/bitbake/lib/toaster/toastergui/templates/task.html >@@ -25,8 +25,10 @@ > {%if task.task_executed %} > {# executed tasks outcome #} > {% if task.logfile %} >- 'build_artifact' build.id >- "tasklogfile" task.pk %}">Download task log >+ + href=3D"{% url 'build_artifact' build.id 'tasklogfile' >task.pk %}"> >+ Download task log >+ > {% endif %} > {# show stack trace for failed task #} > {% if task.outcome =3D=3D task.OUTCOME_FAILED and log_head %} >@@ -156,8 +158,10 @@ this prebuilt task is reusing"> > {%elif task.outcome =3D=3D task.OUTCOME_CACHED%} > {% for t in task.get_related_setscene %} > {% if forloop.last %} >- - 'build_artifact' build.id "tasklogfile" t.pk >%}">Download task log >+ + href=3D"{% url 'build_artifact' build.id >"tasklogfile" t.pk %}"> >+ Download task log >+ > {% endif %} > {% endfor %} >=20 >--=20 >2.7.4 > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster