Merge lp:~mvo/software-center/lp1045330 into lp:software-center

Proposed by Michael Vogt
Status: Merged
Merged at revision: 3147
Proposed branch: lp:~mvo/software-center/lp1045330
Merge into: lp:software-center
Diff against target: 23 lines (+2/-0)
2 files modified
softwarecenter/db/application.py (+1/-0)
tests/test_dataprovider.py (+1/-0)
To merge this branch: bzr merge lp:~mvo/software-center/lp1045330
Reviewer Review Type Date Requested Status
Gary Lasker (community) Approve
Review via email: mp+122638@code.launchpad.net

Description of the change

Small branch to fix bug #1045330 to support the unity people

To post a comment you must log in.
Revision history for this message
Gary Lasker (gary-lasker) :
review: Approve
Revision history for this message
Gary Lasker (gary-lasker) wrote :

There are two FIXMEs right in this area of the code. I'll approve, but when will be pay off this technical debt?

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your review. You raise a valid point here, so I addressed the FIXME in the dataprovider test in lp:~mvo/software-center/fix-fixme-lp1045330.

I assume that the second one you mentioned is about the FIXMEs around the currency handling in "price()"? This will need server side support before we can tackle those.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'softwarecenter/db/application.py'
--- softwarecenter/db/application.py 2012-08-18 05:51:30 +0000
+++ softwarecenter/db/application.py 2012-09-04 09:20:25 +0000
@@ -597,6 +597,7 @@
597 # to format them here differently too, e.g.597 # to format them here differently too, e.g.
598 # "US$ 1" but "1EUR"598 # "US$ 1" but "1EUR"
599 return "%s %s" % (currency, raw_price)599 return "%s %s" % (currency, raw_price)
600 return ""
600601
601 @property602 @property
602 def supported_distros(self):603 def supported_distros(self):
603604
=== modified file 'tests/test_dataprovider.py'
--- tests/test_dataprovider.py 2012-08-28 13:04:23 +0000
+++ tests/test_dataprovider.py 2012-09-04 09:20:25 +0000
@@ -34,6 +34,7 @@
34 self.assertEqual(result["icon"], "accessories-text-editor")34 self.assertEqual(result["icon"], "accessories-text-editor")
35 self.assertEqual(result["name"], "gedit")35 self.assertEqual(result["name"], "gedit")
36 self.assertEqual(result["pkgname"], "gedit")36 self.assertEqual(result["pkgname"], "gedit")
37 self.assertEqual(result["price"], "")
3738
3839
39if __name__ == "__main__":40if __name__ == "__main__":

Subscribers

People subscribed via source and target branches