~mvo/software-center/whatsnew-leak-lp985389

« back to all changes in this revision

Viewing changes to AppCenter/AppCenter.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:
137
137
        action = model[row][ViewSwitcherList.COL_ACTION]
138
138
        if action == ViewSwitcherList.ACTION_ITEM_AVAILABLE:
139
139
            logging.debug("show available")
 
140
            self.notebook_view.set_current_page(self.NOTEBOOK_PAGE_CATEGORIES)
140
141
            self.apps_filter = None
141
142
            self.refresh_apps()
142
143
        elif action == ViewSwitcherList.ACTION_ITEM_INSTALLED:
143
144
            logging.debug("show installed")
 
145
            self.notebook_view.set_current_page(self.NOTEBOOK_PAGE_CATEGORIES)
144
146
            self.apps_filter = self.installed_filter.filter
145
147
            self.refresh_apps()
146
148
        elif action == ViewSwitcherList.ACTION_ITEM_PENDING:
147
149
            logging.debug("show pending")
 
150
            self.notebook_view.set_current_page(self.NOTEBOOK_PAGE_PENDING)
148
151
        else:
149
152
            assert False, "Not reached"
150
153