<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://git.reviewboard.kde.org/r/109965/">http://git.reviewboard.kde.org/r/109965/</a>
     </td>
    </tr>
   </table>
   <br />




<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Plasma.</div>
<div>By Giorgos Tsiapaliokas.</div>


<p style="color: grey;"><i>Updated May 12, 2013, 8:59 p.m.</i></p>



<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Changes</h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">In short, this update does

* s/partnerQuery/partnerID
  s/licenseQuery/licenseID
  s/languageQuery/languageID
* removes some unneeded comments
* fixes the queries [1]
* the assignment of the m_partner happens in the writeInit method and not in the ctor of the Database [2]

the long summary of this patch,

[1] the queries of the languageID and partnerId were something like 

> select name from licenses where id = 'LGPL';
> select name from partners where id = 'KDE';

but they should be

> select id from licenses where name = 'LGPL';
> select id from partners where name = 'KDE';

sorry I missed that.

[2] It used to be
Database::Database(..)
{
    m_partnerId = partnerId();
}

and it became like

Database::Database(..)
{
}

void Database::writeInit(...)
{
    m_partnerId = partnerId();
}

Q: why this change?
A: Otherwise the m_partnerId won't take the right value because the assignment of the m_partnerID
happens before the instantiation of the derived class.</pre>
  </td>
 </tr>
</table>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This patch

* removes the duplicated code in assetimporters
* adds asset's size into the db
* and fixes a few small issues</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I haven't noticed regression.</pre>
  </td>
 </tr>
</table>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> (updated)</h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>assetimporters/CMakeLists.txt <span style="color: grey">(24e76a0)</span></li>

 <li>assetimporters/database-common/channelscatalog.h <span style="color: grey">(5d39c02)</span></li>

 <li>assetimporters/database-common/channelscatalog.cpp <span style="color: grey">(6ca0aef)</span></li>

 <li>assetimporters/database-common/database.h <span style="color: grey">(9883216)</span></li>

 <li>assetimporters/database-common/database.cpp <span style="color: grey">(e860bdd)</span></li>

 <li>assetimporters/kdeartwork-wallpapers/CMakeLists.txt <span style="color: grey">(56d19b9)</span></li>

 <li>assetimporters/kdeartwork-wallpapers/database.h <span style="color: grey">(6991758)</span></li>

 <li>assetimporters/kdeartwork-wallpapers/database.cpp <span style="color: grey">(d75cdda)</span></li>

 <li>assetimporters/kdeartwork-wallpapers/kdewallpapersdatabase.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>assetimporters/kdeartwork-wallpapers/kdewallpapersdatabase.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>assetimporters/kdeartwork-wallpapers/main.cpp <span style="color: grey">(708a949)</span></li>

 <li>assetimporters/obs/CMakeLists.txt <span style="color: grey">(2dbcd42)</span></li>

 <li>assetimporters/obs/channelscatalog.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>assetimporters/obs/channelscatalog.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>assetimporters/obs/packagedatabase.h <span style="color: grey">(99f4e17)</span></li>

 <li>assetimporters/obs/packagedatabase.cpp <span style="color: grey">(ae43b8e)</span></li>

 <li>assetimporters/projectgutenberg/CMakeLists.txt <span style="color: grey">(b86cc49)</span></li>

 <li>assetimporters/projectgutenberg/src/CMakeLists.txt <span style="color: grey">(2d48e9c)</span></li>

 <li>assetimporters/projectgutenberg/src/database.h <span style="color: grey">(8dba0ba)</span></li>

 <li>assetimporters/projectgutenberg/src/database.cpp <span style="color: grey">(75cba69)</span></li>

 <li>assetimporters/projectgutenberg/src/gutenbergdatabase.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>assetimporters/projectgutenberg/src/gutenbergdatabase.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>assetimporters/projectgutenberg/src/main.cpp <span style="color: grey">(46f2340)</span></li>

 <li>sql/bodega.sql <span style="color: grey">(44f8641)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/109965/diff/" style="margin-left: 3em;">View Diff</a></p>







  </td>
 </tr>
</table>




  </div>
 </body>
</html>