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
1=== modified file 'softwarecenter/db/application.py'
2--- softwarecenter/db/application.py 2012-08-18 05:51:30 +0000
3+++ softwarecenter/db/application.py 2012-09-04 09:20:25 +0000
4@@ -597,6 +597,7 @@
5 # to format them here differently too, e.g.
6 # "US$ 1" but "1EUR"
7 return "%s %s" % (currency, raw_price)
8+ return ""
9
10 @property
11 def supported_distros(self):
12
13=== modified file 'tests/test_dataprovider.py'
14--- tests/test_dataprovider.py 2012-08-28 13:04:23 +0000
15+++ tests/test_dataprovider.py 2012-09-04 09:20:25 +0000
16@@ -34,6 +34,7 @@
17 self.assertEqual(result["icon"], "accessories-text-editor")
18 self.assertEqual(result["name"], "gedit")
19 self.assertEqual(result["pkgname"], "gedit")
20+ self.assertEqual(result["price"], "")
21
22
23 if __name__ == "__main__":

Subscribers

People subscribed via source and target branches