Return-Path: Received: from smtp107.biz.mail.bf1.yahoo.com (smtp107.biz.mail.bf1.yahoo.com [98.139.244.55]) by yocto-www.yoctoproject.org (Postfix) with SMTP id 45008E00819 for ; Thu, 20 Feb 2014 03:18:12 -0800 (PST) Received: (qmail 34160 invoked from network); 20 Feb 2014 11:18:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1392895091; bh=dDj8AgWP0IdA6YGp4JwEX+SKdpHVH7T1QRUpjyHnbYg=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Date:From:To:Message-ID:Subject:X-Mailer:MIME-Version:Content-Type; b=oTyqG4aRzVVyZ3SqzgQrEFiBD5m37elFhWQjpOfUwHTHRJRW3zhCBJUUoHWsuU8K9ES9J3/QxTW64+oKPdWXQ72wUs5MwkTl1rFAmRIawwp94hSMnVxdbz33h220GTzX1o3do7GWXf7+Ws0Rw9ES6s4rXHAyYHuJtyvhMOlS3vI= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: AF8N2.IVM1m0bKNw7JLDufJ8l2RakPTW3HeyNCGc8YENzja ozPEo8li0.e5CGLhXZBqLobRxkQgQNztTEufGVdRowxjkk0F.wiQtth7ju38 s1NmCyrD4EbE7RWUMT_Ur6bX4XIZQKJ.KjkKaTMHUxcds6Pk.4geLtVdT1uN bmY8pM1rGSoHJsgpgb68v9x5qTT2WGCHBCNYAq8dia_MrcgR8ycduPt.5ryh 4BdvjCCJ774ecYI8AoJDH4vXXMqSpLSGwqobBdXiac1t44e.iWxE8ZnYaUgO p5pGBmxH_3U9Jwe_bxQwdqJZVDemahWbY4Z_S4WmOzH9xraBiCO4SJqgF855 .bFySIkV5Eqr_A5PVsbst4Fnn4QvqDTgQs1.WymFpcmvJdrZQ7PqRU2Exn6c 1f4dRf22nYR04HftCoxlPo6xe4d6DMnzJ5FSOunsobjQn2G48u8hfkOa2lom lZCwOD214oz.WwR8sQHR8hNlRiKTL6c5I80PEwheTJDZaihcRjrMZMEMOHFl ZrtbDjrzq29jabI9fak0NWcYCpOYrphcy8rNNSJ1Fvxws8EpYy2ZY5HwtK92 4MGhOwTKWzc64XRrs55uXnljzs3cw8EPst_9rnyFxY4y9LTxS4OYo0Dr2dXf Cf2wt3z1Wb7hjRZfyjRa_qeRRXKYG9Uu8FdhS1ZQi4Bs9C9ssJki9UMrjgJh q81bkR0Hk9r3EaVUFbg-- X-Yahoo-SMTP: _KFOQbSswBD8XdZFdQ3D6oUnpaHu X-Rocket-Received: from Amits-MacBook-Pro.local (amit@14.141.85.66 with plain [98.139.221.242]) by smtp107.biz.mail.bf1.yahoo.com with SMTP; 20 Feb 2014 03:18:10 -0800 PST Date: Thu, 20 Feb 2014 16:48:01 +0530 From: Amit Kumar Chaudhary To: toaster@yoctoproject.org Message-ID: X-Mailer: Airmail (223) MIME-Version: 1.0 Subject: 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: Thu, 20 Feb 2014 11:18:15 -0000 Content-Type: multipart/alternative; boundary="5305e469_3d1b58ba_3d6e" --5305e469_3d1b58ba_3d6e Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello,=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 https://www.yoctoproject.org/toaster/build-dashboard-failed.html=23errors= I am trying to re-use the following code -- =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 from =7E/poky-contrib/bitbake/lib/toaster/bldviewer/templates/simple=5Fbu= ild.html. And, I am expecting the logs, for example at =7E/poky-contrib/build/tmp/log/cooker/qemux86/20140213120738.log to be read via LogMessage class below 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 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 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) implemented in =7E/poky-contrib/bitbake/lib/toaster/orm/models.py. 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. Thanks=21 --=C2=A0 Amit Kumar Chaudhary --5305e469_3d1b58ba_3d6e Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline