Merge lp:~matteox27/lensit/lensit into lp:lensit

Proposed by Matteo Pentassuglia
Status: Merged
Merged at revision: 5
Proposed branch: lp:~matteox27/lensit/lensit
Merge into: lp:lensit
Diff against target: 45 lines (+12/-22)
1 file modified
lensit/lensit.py (+12/-22)
To merge this branch: bzr merge lp:~matteox27/lensit/lensit
Reviewer Review Type Date Requested Status
Andrea Colangelo Approve
Review via email: mp+110379@code.launchpad.net

Description of the change

Display the names of the scopes

To post a comment you must log in.
Revision history for this message
Andrea Colangelo (warp10) wrote :

Thank you for your merge proposal.

I am prone to approve your merge, but I'd like to ask you a little cleanup. You commented out a lot of lines (the ones you replaced with the code we actually need): since we don't need that code anymore, please drop it.

Please, fix this (very minor) issue, and I'll be happy to approve your merge.

review: Needs Resubmitting
lp:~matteox27/lensit/lensit updated
4. By Matteo Pentassuglia
Revision history for this message
Andrea Colangelo (warp10) wrote :

Thank you for resubmitting.

You mixed up spaces and tabs in your code (lines 22-28 of the diff). Python doesn't like that, please be consistent with 4 spaces (no more, no less, no tabs too) in the future. I will fix the issue before pushing.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lensit/lensit.py'
2--- lensit/lensit.py 2012-06-13 21:45:29 +0000
3+++ lensit/lensit.py 2012-06-18 06:13:22 +0000
4@@ -30,29 +30,19 @@
5 ### Populate filters
6 filters = []
7 # A filter is an id, a display name, an icon (not displayed, so it's usually "None"), and a contracted state
8- f = Unity.RadioOptionFilter.new ("filter1", "RadioOption", None, False)
9- # Then we add options to the filter : an id, a display name and an icon.
10- f.add_option ("option1", "Option 1", None)
11- f.add_option ("option2", "Option 2", None)
12- f.add_option ("option3", "option 3", None)
13- filters.append (f)
14- f2 = Unity.CheckOptionFilter.new ("filter2", "CheckOption", None, False)
15- f2.add_option ("option1", "option 1", None)
16- f2.add_option ("option2", "option 2", None)
17- f2.add_option ("option3", "option 3", None)
18+ f2 = Unity.CheckOptionFilter.new ("fonti", "Fonti:", None, False)
19+ f2.add_option ("ubuntu-it-forum", "Ubuntu-it Forum", None)
20+ f2.add_option ("ubuntu-it-news", "Ubuntu-it News", None)
21+ f2.add_option ("newsletter-italiana", "Newsletter Italiana", None)
22+ f2.add_option ("planet-ubuntu-it", "Planet Ubuntu-it", None)
23+ f2.add_option ("documentazione", "Documentazione", None)
24+ f2.add_option ("blog-fcm-italia", "Blog FCM Italia", None)
25+ f2.add_option ("noisiamoubuntu", "noisiamoubuntu", None)
26+ f2.add_option ("ubuntu-it-promozione", "Canale Ubuntu-it Promozione", None)
27+ f2.add_option ("diffondi-ubuntu", "Diffondi Ubuntu", None)
28+ f2.add_option ("launchpad-answers-it", "Launchpad Answers in Italiano", None)
29 filters.append (f2)
30- f3 = Unity.CheckOptionFilterCompact.new ("filter3", "CheckOptionCompact", None, False)
31- f3.add_option ("option1", "option 1", None)
32- f3.add_option ("option2", "option 2", None)
33- f3.add_option ("option3", "option 3", None)
34- filters.append (f3)
35- f4 = Unity.MultiRangeFilter.new ("filter4", "MultiRange", None, False)
36- f4.add_option ("option1", "option 1", None)
37- f4.add_option ("option2", "option 2", None)
38- f4.add_option ("option3", "option 3", None)
39- filters.append (f4)
40- f5 = Unity.RatingsFilter.new ("filter5", "Ratings", None, False)
41- filters.append (f5)
42+
43 self._lens.props.filters = filters
44
45 # The lens in now ready

Subscribers

People subscribed via source and target branches