~glatzor/software-center/fix-977020

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk3/models/appstore2.py

  • Committer: Gary Lasker
  • Date: 2012-03-30 07:06:25 UTC
  • mfrom: (2929.2.2 lp846204)
  • Revision ID: gary.lasker@canonical.com-20120330070625-erj6joz28pml914y
* lp:~mvo/software-center/lp846204:
  - fix ValueError crashes in get_iter due to invalid tree paths
    (LP: #846204)

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        self.pkg_count = pkg_count
62
62
        self.vis_count = pkg_count
63
63
 
 
64
    def __repr__(self):
 
65
        return "[CategoryRowReference: name=%s]" % self.untranslated_name
 
66
 
64
67
 
65
68
class UncategorisedRowRef(CategoryRowReference):
66
69
 
75
78
                                      display_name,
76
79
                                      None, pkg_count)
77
80
 
 
81
    def __repr__(self):
 
82
        return "[UncategorizedRowReference: name=%s]" % self.untranslated_name
 
83
 
78
84
 
79
85
class AppPropertiesHelper(GObject.GObject):
80
86
    """ Baseclass that contains common functions for our