~mvo/software-center/qml-uds-q

« back to all changes in this revision

Viewing changes to AppCenter/view/viewswitcher.py

  • Committer: Michael Vogt
  • Date: 2009-08-17 12:56:19 UTC
  • Revision ID: michael.vogt@ubuntu.com-20090817125619-pnbjepduwpk9s661
test/create_transactions.py:
- add helper to create a bunch of transactions to test the pending view
AppCenter/AppCenter.py:
- make switching to the pending view possible
AppCenter/view/viewswitcher.py:
- fix updating of the pending view

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
        if pending > 0:
77
77
            for row in self:
78
78
                if row[self.COL_ACTION] == self.ACTION_ITEM_PENDING:
 
79
                    row[self.COL_NAME] = _("Pending (%i)") % pending
79
80
                    break
80
81
            else:
81
82
                self.append([None, _("Pending (%i)") % pending,