<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/bitbake/lib/toaster/toastergui, branch python3</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=python3</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=python3'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2016-05-16T22:32:42+00:00</updated>
<entry>
<title>bitbake: toaster: use re.sub() instead of translate()</title>
<updated>2016-05-16T22:32:42+00:00</updated>
<author>
<name>Ed Bartosh</name>
<email>ed.bartosh@linux.intel.com</email>
</author>
<published>2016-05-10T14:06:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=5582444b10418bef14ff274a2470a9050d7a7e17'/>
<id>urn:sha1:5582444b10418bef14ff274a2470a9050d7a7e17</id>
<content type='text'>
translate has different set of parameters in python 3 and
can't be used the way it's used in toaster api module.

Replacing it with re.sub() should make the code work in
both python 2  and python 3.

[YOCTO #9584]

(Bitbake rev: 019ac4792f388f3313812c1998492888be8b97cd)

Signed-off-by: Ed Bartosh &lt;ed.bartosh@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toaster: replace map with list comprehensions</title>
<updated>2016-05-16T22:32:41+00:00</updated>
<author>
<name>Ed Bartosh</name>
<email>ed.bartosh@linux.intel.com</email>
</author>
<published>2016-05-10T13:18:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=473daf72545421ee2df40278efda7d3999a5d356'/>
<id>urn:sha1:473daf72545421ee2df40278efda7d3999a5d356</id>
<content type='text'>
map returns map object in python 3. Replaced calls of
map to equivalent list comprehensions in the code which
requires lists.

[YOCTO #9584]

(Bitbake rev: 49d9cf1040e1659350eeaf6db4c40dc4c9bf7e50)

Signed-off-by: Ed Bartosh &lt;ed.bartosh@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toaster: use items and range instead of old APIs</title>
<updated>2016-05-16T22:32:41+00:00</updated>
<author>
<name>Ed Bartosh</name>
<email>ed.bartosh@linux.intel.com</email>
</author>
<published>2016-05-10T13:13:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=337c8af55dac929b72e0bb32ef320cbb4b0e7892'/>
<id>urn:sha1:337c8af55dac929b72e0bb32ef320cbb4b0e7892</id>
<content type='text'>
Used items() and range() APIs instead of iteritems() and
xrange() as latter don't exist in python 3

[YOCTO #9584]

(Bitbake rev: f44986d41055ce7fa3128e1acb6968f9ccc355ba)

Signed-off-by: Ed Bartosh &lt;ed.bartosh@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toaster: get rid of using reduce</title>
<updated>2016-05-16T22:32:41+00:00</updated>
<author>
<name>Ed Bartosh</name>
<email>ed.bartosh@linux.intel.com</email>
</author>
<published>2016-05-10T08:39:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=909f1b7bf83d17efd06bcf470364385efe2704be'/>
<id>urn:sha1:909f1b7bf83d17efd06bcf470364385efe2704be</id>
<content type='text'>
Replaced compicated calls of reduce with more clear code.
As reduce was removed from python 3 this change is mandatory
for the code to work on both pythons.

Here is an example change for illustration purposes:

original code:

  querydict = dict(zip(or_keys, or_values))
  query = reduce(operator.or_, map(lambda x: __get_q_for_val(x, querydict[x]), [k for k in querydict])))

replaced with:

  query = None
  for key, val in zip(or_keys, or_values):
      x = __get_q_for_val(k, val)
      query = query | x if query else x

[YOCTO #9584]

(Bitbake rev: 0a25b723431602dc5eeb10a4002872c05b390f23)

Signed-off-by: Ed Bartosh &lt;ed.bartosh@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toaster: use new syntax of except statement</title>
<updated>2016-05-14T22:05:15+00:00</updated>
<author>
<name>Ed Bartosh</name>
<email>ed.bartosh@linux.intel.com</email>
</author>
<published>2016-05-10T14:10:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=0854035d9c6b1e231587f30c6cb421020b643209'/>
<id>urn:sha1:0854035d9c6b1e231587f30c6cb421020b643209</id>
<content type='text'>
Used except 'except (&lt;exception1&gt;, &lt;exception2&gt;):' syntax as it's
supported by python 2 and pythone 3.

Old syntax 'except &lt;exception1&gt;, &lt;exception2&gt;:' is not supported
by python 3.

[YOCTO #9584]

(Bitbake rev: d19e305ffa44a848b02ede63dc5de8d2640089e6)

Signed-off-by: Ed Bartosh &lt;ed.bartosh@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toaster: use 'in' instead of has_key</title>
<updated>2016-05-14T22:05:15+00:00</updated>
<author>
<name>Ed Bartosh</name>
<email>ed.bartosh@linux.intel.com</email>
</author>
<published>2016-05-10T13:27:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=3249e33251102069c88e2bc3f703cfab51444668'/>
<id>urn:sha1:3249e33251102069c88e2bc3f703cfab51444668</id>
<content type='text'>
Dictionary method has_key is deprecated in python 2 and absent
in python 3.

Used '&lt;key&gt; in &lt;dict&gt;' statement to make the code working on
both python 2 and python 3.

[YOCTO #9584]

(Bitbake rev: 3d7ad7ba0d1a6f688ae885817c049f2a8ced11b5)

Signed-off-by: Ed Bartosh &lt;ed.bartosh@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toaster: fix progress bar in MySQL environment</title>
<updated>2016-05-13T16:45:49+00:00</updated>
<author>
<name>Elliot Smith</name>
<email>elliot.smith@intel.com</email>
</author>
<published>2016-05-13T16:02:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=3d11229aa14c0a034acc9e1ae040d80eeca9edd1'/>
<id>urn:sha1:3d11229aa14c0a034acc9e1ae040d80eeca9edd1</id>
<content type='text'>
When using MySQL, the project builds info delivered by MySQL
differs from that delivered by SQLite: the former returns text
values from the enumeration for Build outcomes, while the latter
returns the integer value. This causes the progress bar JS to
break, as it is expecting outcome strings.

Modify the recent_build() method to include an outcomeText property
for each Build object, then use this in the conditionals in the
progress bar JS.

[YOCTO #9498]

(Bitbake rev: 7ac374adf1cc70173ff6cc492bc078bba1cf500b)

Signed-off-by: Elliot Smith &lt;elliot.smith@intel.com&gt;
Signed-off-by: Michael Wood &lt;michael.g.wood@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toaster: ui handles duplicate project name in project page</title>
<updated>2016-05-11T10:32:58+00:00</updated>
<author>
<name>Sujith H</name>
<email>sujith.h@gmail.com</email>
</author>
<published>2016-05-09T23:01:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=7e2d5017be4e988df893a36976029b1ea51031f4'/>
<id>urn:sha1:7e2d5017be4e988df893a36976029b1ea51031f4</id>
<content type='text'>
When already existing project name is typed by user,
the ui pops up message regarding the existance of the
project name. When an existing project is typed the save
button will be disabled. Else user can proceed ahead by
modifying the project name.

[YOCTO #7005]

(Bitbake rev: 05ddf48cda6690adab4c097b16387578523e751b)

Signed-off-by: Sujith H &lt;sujith.h@gmail.com&gt;
Signed-off-by: Michael Wood &lt;michael.g.wood@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toaster: ui handles duplicate project name in new project page</title>
<updated>2016-05-11T10:32:58+00:00</updated>
<author>
<name>Sujith H</name>
<email>sujith.h@gmail.com</email>
</author>
<published>2016-05-09T23:01:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=dc57476d0b6c2c4cb8868b48058e78c24c065217'/>
<id>urn:sha1:dc57476d0b6c2c4cb8868b48058e78c24c065217</id>
<content type='text'>
When already existing project name is typed by user,
the ui pops up message regarding the existance of the
project name.

[YOCTO #7005]

(Bitbake rev: 83e5be7e74850f1bb019668de07f3f745063fe38)

Signed-off-by: Sujith H &lt;sujith.h@gmail.com&gt;
Signed-off-by: Michael Wood &lt;michael.g.wood@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toaster: projectNameValidation API added</title>
<updated>2016-05-11T10:32:58+00:00</updated>
<author>
<name>Sujith H</name>
<email>sujith.h@gmail.com</email>
</author>
<published>2016-05-09T23:01:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=9bdfed856b2e780cf40342bd22ac35fb28f1b2c4'/>
<id>urn:sha1:9bdfed856b2e780cf40342bd22ac35fb28f1b2c4</id>
<content type='text'>
The projectNameValidation API would help users
to validate if a project name exists or not. This
API is added to libtoaster.

[YOCTO #7005]

(Bitbake rev: 3b1843553f23d78f1ddfec9f7865895ee42356a3)

Signed-off-by: Sujith H &lt;sujith.h@gmail.com&gt;
Signed-off-by: Michael Wood &lt;michael.g.wood@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
