Return-Path: Received: from smtp103.biz.mail.ne1.yahoo.com (smtp103.biz.mail.ne1.yahoo.com [98.138.207.10]) by yocto-www.yoctoproject.org (Postfix) with SMTP id 857A4E00743 for ; Tue, 25 Feb 2014 22:55:00 -0800 (PST) Received: (qmail 76981 invoked from network); 26 Feb 2014 06:54:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1393397699; bh=uB32M/l0QKUYu4CW5TSvVbOKJi0qP/Cg8MGVU0XjX+M=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject:X-Mailer:MIME-Version:Content-Type; b=XaQ3VMt0y8mwQKxNfiOmUZ8cBsnkBrWpj6LL4AL+RSWVuM24AljXJLn9o2LktRQo3h82xKSgOaLFlV8+zY5EeNwTNR5hW+keqE5ayCE1QrVghhe8DOZKxiAAXvUUib0gP/bW1IqARSt4eABy3OVzj/NslZjTChOckWM6IBrKuSk= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: brx8MjwVM1nmNDq91cLW8a3zsKp3pwRP3AN7f2Q9FvUu9MA lNT_FtBLOR.ehdtRghfgUZA1hC1aY6YDsA1.IYRLniK3pD.gtTNsIjPtierf zaDZjoSLaxv5E7BUXS9QTVfhmODxUShAAxu_c_I34DxbaNUHWRHIE4O_mEGM DXg6CfiOBc5N5JspysqGzFNfBFljHckJwXVwe3s.KYXKl8rzQtLytP9PT2fy DJjhNG1qoJf8KkSELkM0ei7tp7BDRK2I8tyLUTdALF137IfgfLp3_getPiMl WPhb7UibHam0_ZpT5rXddr8AYLgj3uBKKpiy_5KjGHhCjRECd0EDl7IMKhBk 9ISNCxWRuGROCgFWj5gViBClLfDy4sT57jAJ1dvJAqXkI39coMYS78j3zTFv ZYXRkoCvsDo.XTxcR9qqaQzUnWmSOOPh3g.bv__sCWdGXPYU5SkS2B.4Nd5n KqiEz7sZgqxVRTh4kmdw3pd6uIVv8zxty0bChaqX7RR_gaWWDy0J8h0a3J1. K7Q7A40I0L5ETX3uZjYjWPXp_W8X1WZeIpFoGiK01nXLzqqxBg4JJnT_zlQx 4eNXIWj4Q6RAN9bgpq0oBOUoCbaIEMF88SLOKMto8 X-Yahoo-SMTP: _KFOQbSswBD8XdZFdQ3D6oUnpaHu X-Rocket-Received: from Amits-MacBook-Pro.local (amit@103.6.159.103 with plain [98.138.105.25]) by smtp103.biz.mail.ne1.yahoo.com with SMTP; 25 Feb 2014 22:54:59 -0800 PST Date: Wed, 26 Feb 2014 12:24:56 +0530 From: Amit Kumar Chaudhary To: =?utf-8?Q?Reyna=2C_David?= Message-ID: In-Reply-To: References: X-Mailer: Airmail (223) MIME-Version: 1.0 Cc: "=?utf-8?Q?toaster=40yoctoproject.org?=" Subject: Re: Errors and Warnings listing on the dashboard page. 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, 26 Feb 2014 06:55:01 -0000 Content-Type: multipart/alternative; boundary="530d8fc0_109cf92e_3d6e" --530d8fc0_109cf92e_3d6e Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi David,=C2=A0 Sure, I would be happy to. Thanks for the invitation. --=C2=A0 Amit Kumar Chaudhary On 25 =46ebruary 2014 at 10:52:57 pm, Reyna, David (david.reyna=40windriv= er.com) wrote: Hi Amit, =C2=A0 We have a scrum meeting every Wednesday morning (8:00 am Pacific Time) wi= th the Yocto team to discuss the Toaster GUI implementation progress and = issues. Would you like to join us=3F I can include you into my invitation= . =C2=A0 - David =C2=A0 =46rom: toaster-bounces=40yoctoproject.org =5Bmailto:toaster-bounces=40yo= ctoproject.org=5D On Behalf Of Amit Kumar Chaudhary Sent: Thursday, =46ebruary 20, 2014 3:18 AM To: toaster=40yoctoproject.org Subject: =5BToaster=5D Errors and Warnings listing on the dashboard page.= =C2=A0 Hello,=C2=A0 =C2=A0 I am just beginning with the toaster and web apps in general, and I am tr= ying to add errors and warning listing to the build dashboard page, as pr= ototyped at =C2=A0 https://www.yoctoproject.org/toaster/build-dashboard-failed.html=23errors= =C2=A0 I am trying to re-use the following code -- =C2=A0 =7B=7Bbuild.errors=5Fno=7D=7D:=7B% if =C2=A0build.errors=5Fno %=7D=7B= % for error in logs %=7D=7B% if error.build =3D=3D build %=7D=7B% if erro= r.level =3D=3D 2 %=7D

=7B=7Berror.message=7D=7D

=7B% endif %=7D=7B% = endif %=7D=7B% endfor %=7D=7B% else %=7DNone=7B% endif %=7D =C2=A0 from =7E/poky-contrib/bitbake/lib/toaster/bldviewer/templates/simple=5Fbu= ild.html. =C2=A0 And, I am expecting the logs, for example at =7E/poky-contrib/build/tmp/log/cooker/qemux86/20140213120738.log =C2=A0 to be read via LogMessage class below =C2=A0 class LogMessage(models.Model): =C2=A0 =C2=A0 IN=46O =3D 0 =C2=A0 =C2=A0 WARNING =3D 1 =C2=A0 =C2=A0 ERROR =3D 2 =C2=A0 =C2=A0 =C2=A0 LOG=5FLEVEL =3D ( (IN=46O, =22info=22), =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (WARNING, =22warn=22), =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (ERROR, =22error=22) ) =C2=A0 =C2=A0 =C2=A0 build =3D models.=46oreignKey(Build) =C2=A0 =C2=A0 level =3D models.Integer=46ield(choices=3DLOG=5FLEVEL, defa= ult=3DIN=46O) =E2=80=94> =C2=A0 =C2=A0message=3Dmodels.Char=46ield(max=5Flength=3D240) =C2=A0 =C2=A0 pathname =3D models.=46ilePath=46ield(max=5Flength=3D255, b= lank=3DTrue) =C2=A0 =C2=A0 lineno =3D models.Integer=46ield(null=3DTrue) =C2=A0 implemented in =7E/poky-contrib/bitbake/lib/toaster/orm/models.py. =C2=A0 But, I can=E2=80=99t seem to find the code that does it, reading from the= log file to the sqlite table. Could someone please point me to the files= /path that might contain this code, or such code for other tables. =C2=A0 Thanks=21 =C2=A0 --=C2=A0 Amit Kumar Chaudhary --530d8fc0_109cf92e_3d6e Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline