~ken-vandine/askubuntu-lens/packaging2

« back to all changes in this revision

Viewing changes to askubuntu-place.py

  • Committer: Stefano Palazzo
  • Date: 2011-03-18 17:09:30 UTC
  • Revision ID: stefano.palazzo@gmail.com-20110318170930-jnyluzhao15dc4ka
Back to full pep8 compliance again; slight cleanup;

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
                "Find '%s' on AskUbuntu.com" % search)
223
223
 
224
224
    def add_questions_results(self, search, model):
225
 
        icon_hint = Gio.ThemedIcon.new("help").to_string() # Questions Icon
 
225
        icon_hint = Gio.ThemedIcon.new("help").to_string()  # Questions Icon
226
226
        for url, title in askubuntu_bridge.get_questions(search):
227
 
            model.append(url, icon_hint, GROUP_QUESTIONS, 
 
227
            model.append(url, icon_hint, GROUP_QUESTIONS,
228
228
                "text/html", title, title)
229
229
 
230
230
    def add_tags_results(self, search, model):
231
 
        icon_hint = Gio.ThemedIcon.new("tag-new").to_string() # Tags Icon
 
231
        icon_hint = Gio.ThemedIcon.new("tag-new").to_string()  # Tags Icon
232
232
        for url, title in askubuntu_bridge.get_tags(search):
233
233
            model.append(url, icon_hint, GROUP_TAGS,
234
234
                "text/html", title, title)
235
235
 
236
 
 
237
 
 
238
236
    def add_badges_results(self, search, model):
239
 
        icon_hint = Gio.ThemedIcon.new("help").to_string() # Badge Icon
 
237
        icon_hint = Gio.ThemedIcon.new("help").to_string()  # Badge Icon
240
238
        for url, title in askubuntu_bridge.get_badges(search):
241
239
            model.append(url, icon_hint, GROUP_BADGES,
242
240
                "text/html", title, title)
243
241
 
244
242
    def add_users_results(self, search, model):
245
 
        icon_hint = Gio.ThemedIcon.new("stock_person").to_string() # User Icon
 
243
        icon_hint = Gio.ThemedIcon.new("stock_person").to_string()  # User Icon
246
244
        for url, title in askubuntu_bridge.get_users(search):
247
245
            model.append(url, icon_hint, GROUP_USERS,
248
246
                "text/html", title, title)