~mvo/software-center/hopefully-fix-lp1008229

« back to all changes in this revision

Viewing changes to softwarecenter/view/installedpane.py

  • Committer: Andrew
  • Date: 2009-10-19 16:51:47 UTC
  • mfrom: (407 trunk)
  • mto: This revision was merged to the branch mainline in revision 442.
  • Revision ID: rugby471@jaunty-toaster-20091019165147-hrqitfl8sa4k6s4p
(merge with trunk)

software-center (1.0) karmic; urgency=low

  - use screenshots.ubuntu.com as screenshot url
* softwarecenter/view/catview.py:
  - do not crash for unavailable categories with <OnlyUnallocated>
    (LP: #451922)

 -- Michael Vogt <michael.vogt@ubuntu.com>Thu, 15 Oct 2009 18:35:58 +0200

software-center (0.5.2) karmic; urgency=low

[ Michael Vogt ]
* softwarecenter/view/appdetailsview.py:
  - deal with connection refused errors properly
  - use shorter default socket timeout to avoid hangs when
    the screenshot site is unavailable
* softwarecenter/db/database.py:
  - require explicit open() to avoid possible race (LP: #449385)
* softwarecenter/view/widgets/imagedialog.py:
  - fix crash when unknown error happend during screenshot download
    (LP: #4479829)
* data/ui/SoftwareCenter.ui:
  - change unicode "..." to three "." to work around bug in 
    gtkbuilder/intltool that makes strings with them untranslatable
    (https://bugzilla.gnome.org/show_bug.cgi?id=596205) (LP: #450600)
* po/*:
  - sync from rosetta and unfuzzy the strings that move
    from &#2026; to "..." (LP: #450600)
* softwarecenter/view/catview.py
  - do not crash if a desktop-directory can not be foudn or is
    invalid (LP: #450842)
* utils/update-software-center:
  - do not crash if glib is not available (e.g. during a upgrade)
    (LP: #450793)
* install the softwarecenter-installed emblem into a private dir
  to make not show up in the nautilus emblems folder (LP: #437385)

[ Josh Holland ]
* Fixed up man page (LP: #448896)

 -- Michael Vogt <michael.vogt@ubuntu.com>Wed, 14 Oct 2009 11:51:26 +0200

software-center (0.5.1) karmic; urgency=low

* icon updates from Kenneth Wimer 
* softwarecenter/db/update.py: 
  - fix index bug in pkgname handling
* make screenshots scrollable (LP: #439420)
* fix reopen() handling by not using xapian.Database.reopen()
  but instead do a full open of the db (LP: #430603)
* softwarecenter/view/appdetailsview.py:
  - add support for http proxies (LP: #446069)
  - fix crash in cdrom handling (LP: #446269)
  - do not show error when a transaction is cancelt 
    (LP: #440941)
* softwarecenter/view/widgets/imagedialog.py:
  - change default window size to match the default image
    size from screenshots.debian.net (LP: #445938)
* debian/control:
  - depend on the latest aptdaemon for working proxy support

 -- Michael Vogt <michael.vogt@ubuntu.com>Mon, 12 Oct 2009 18:25:10 +0200

software-center (0.5.0) karmic; urgency=low

* softwarecenter/db/update.py:
  - when using getdefaultlocale() change the order of the environment
    variable that are checked to 'LANGUAGE','LANG','LC_CTYPE','LC_ALL'
    LP: #444316
* add support RTL in the webkit widgets
* Merged from Matthew McGowan:
  - better integration of the arrow button with the used theme
  - update arrow button when style changes (supports high contrast
    themes and somesuch now too)
  - support RTL langauges with the arrow button
  - new pathbar can be activated via SOFTWARE_CENTER_NEW_PATHBAR=1
    in the environment (not used by default)

 -- Michael Vogt <michael.vogt@ubuntu.com>Wed, 07 Oct 2009 15:52:40 +0200

software-center (0.4.6) karmic; urgency=low

* debian/control:
  - add versionized dependency to aptdaemon (needs some of the
    latest API for the async calls) LP: #444218
* softwarecenter/view/pendingview.py:
  - display the operation (Install Packages, Remove Packages,
    Applying Changes) for operations that come from outside 
    software-center (LP: #444254)
* softwarecenter/app.py:
  - do not crah on corrupted database
* utils/update-software-center:
  - ignore if dbus can not be imported (e.g. because we are in 
    the middle of a upgrade and python packages are unavailable)
    LP: #443177)
  - do not show full stacktrace if dbus is not available 
    (LP: #444089)
  - add a small delay between dubs rebuild signal and actual rebuild
    (LP: #438639)

 -- Michael Vogt <michael.vogt@ubuntu.com>Tue, 06 Oct 2009 11:27:09 +0200

software-center (0.4.5) karmic; urgency=low

* softwarecenter/view/appdetailsview.py:
  - avoid blocking if the authentication dialog comes up 
    (LP: #436413)
* softwarecenter/view/appdetailsview.py:
  - switch to use urls that return 404 if a package has no
    screenshot
* softwarecenter/view/widgets/imagedialog.py,
  softwarecenter/view/appdetailsview.py:
  - merge lp:~mvo/software-center/ubuntu-404 that implements 404 
    handling and show ubuntu branded dummy image (LP: #425874)
* softwarecenter/view/appview.py:
  - support environment to switch sorting for searches:
    SOFTWARE_CENTER_SEARCHES_SORT_MODE={popcon,alphabetic,xapian}
    (to be able to test the different mode quickly)
* softwarecenter/view/appdetailsview.py:
  - fix crash when no icon can be found (LP: #442040, LP: #440306)
* softwarecenter/view/catview.py:
  - do not crash if no icon can be found (LP: #441171)
* data/templates/CategoriesView.html:
  - disable drag-n-drop (LP: #440446)

 -- Michael Vogt <michael.vogt@ubuntu.com>Mon, 05 Oct 2009 18:23:27 +0200

software-center (0.4.4) karmic; urgency=low

* debian/rules:
  - cleanup, we do not need python-central, all the python code is
    in a private dir
* softwarecenter/view/appview.py:
  - display the package name in parenthesis if the application name
    appears multiple times in the database (e.g. for a generic name
    like "Terminal") LP: #434625
* softwarecenter/app.py, softwarecenter/view/viewswitcher.py:
  - automatically switch back to the previous view if the progress
    view is empty and the user has not navigated away manually
    (LP: #431907)
* po/ro.po:
  - added Romanian translation (thanks to Alex Eftimie)

 -- Michael Vogt <michael.vogt@ubuntu.com>Fri, 02 Oct 2009 18:18:16 +0200

software-center (0.4.3) karmic; urgency=low

* debian/rules:
  - remove .PHONY again, it breaks building with DH7

 -- Michael Vogt <michael.vogt@ubuntu.com>Tue, 29 Sep 2009 09:26:32 +0200

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        self.search_terms = ""
60
60
        self.refresh_apps()
61
61
 
 
62
    def _show_installed_overview(self):
 
63
        " helper that goes back to the overview page "
 
64
        self.navigation_bar.remove_id("details")
 
65
        self.notebook.set_current_page(self.PAGE_APPLIST)
 
66
        self.searchentry.show()
 
67
 
62
68
    @wait_for_apt_cache_ready
63
69
    def refresh_apps(self):
64
70
        """refresh the applist after search changes and update the 
65
71
           navigation bar
66
72
        """
67
73
        if self.search_terms:
68
 
            query = self.xapiandb.get_query_from_search_entry(self.search_terms)
 
74
            query = self.db.get_query_from_search_entry(self.search_terms)
69
75
        else:
70
76
            query = None
71
77
        self.navigation_bar.add_with_id(_("Installed Software"), 
73
79
                                        "list")
74
80
        # get a new store and attach it to the view
75
81
        new_model = AppStore(self.cache,
76
 
                             self.xapiandb, 
 
82
                             self.db, 
77
83
                             self.icons, 
78
84
                             query, 
79
85
                             filter=self.apps_filter)
94
100
                                       "details")
95
101
        self.notebook.set_current_page(self.PAGE_APP_DETAILS)
96
102
        self.app_details.show_app(name, pkgname)
 
103
    def on_db_reopen(self, db):
 
104
        self.refresh_apps()
 
105
        self._show_installed_overview()
97
106
    def on_navigation_list(self, button):
98
107
        """callback when the navigation button with id 'list' is clicked"""
99
108
        if not button.get_active():
100
109
            return
101
110
        # remove the details and clear the search
102
111
        self.searchentry.clear()
103
 
        self.navigation_bar.remove_id("details")
104
 
        self.notebook.set_current_page(self.PAGE_APPLIST)
105
 
        self.searchentry.show()
 
112
        self._show_installed_overview()
106
113
        # only emit something if the model is there
107
114
        model = self.app_view.get_model()
108
115
        if model: