Example #1
0
    def __init__(self, cache, db, distro, icons, datadir):

        # parent
        SoftwarePane.__init__(self, cache, db, distro, icons, datadir, show_ratings=False)
        CategoriesParser.__init__(self, db)

        self.current_appview_selection = None
        self.icons = icons
        self.loaded = False
        self.pane_name = _("Installed Software")

        self.installed_apps = 0
        # None is local
        self.current_hostid = None
        self.current_hostname = None
        self.oneconf_additional_pkg = set()
        self.oneconf_missing_pkg = set()

        # switches to terminate build in progress
        self._build_in_progress = False
        self._halt_build = False

        self.nonapps_visible = NonAppVisibility.NEVER_VISIBLE

        self.visible_docids = None
        self.visible_cats = {}

        self.installed_spinner_notebook = None
    def __init__(self, cache, db, distro, icons, datadir,
                 navhistory_back_action, navhistory_forward_action):
        # parent
        SoftwarePane.__init__(self, cache, db, distro, icons, datadir)
        self.searchentry.set_sensitive(False)
        # navigation history actions
        self.navhistory_back_action = navhistory_back_action
        self.navhistory_forward_action = navhistory_forward_action
        # configure any initial state attrs
        self.state.filter = AppFilter(db, cache)
        # the spec says we mix installed/not installed
        #self.apps_filter.set_not_installed_only(True)
        self.current_app_by_category = {}
        self.current_app_by_subcategory = {}
        self.pane_name = _("Get Software")

        # views to be created in init_view
        self.cat_view = None
        self.subcategories_view = None

        # integrate with the Unity launcher
        self.unity_launcher = UnityLauncher()
        # keep track of applications that are queued to be added
        # to the Unity launcher
        self.unity_launcher_transaction_queue = {}
        # flag to indicate whether applications should be added to the
        # unity launcher when installed (this value is initialized by
        # the config load in app.py)
        self.add_to_launcher_enabled = True
Example #3
0
    def __init__(self, cache, db, distro, icons, datadir):

        # parent
        SoftwarePane.__init__(self,
                              cache,
                              db,
                              distro,
                              icons,
                              datadir,
                              show_ratings=False)
        CategoriesParser.__init__(self, db)

        self.current_appview_selection = None
        self.icons = icons
        self.loaded = False
        self.pane_name = _("Installed Software")

        self.installed_apps = 0
        # None is local
        self.current_hostid = None
        self.current_hostname = None
        self.oneconf_additional_pkg = set()
        self.oneconf_missing_pkg = set()

        # switches to terminate build in progress
        self._build_in_progress = False
        self._halt_build = False

        self.nonapps_visible = NonAppVisibility.NEVER_VISIBLE

        self.visible_docids = None
        self.visible_cats = {}

        self.installed_spinner_notebook = None
Example #4
0
    def __init__(self,
                 cache,
                 db,
                 distro,
                 icons,
                 datadir,
                 navhistory_back_action,
                 navhistory_forward_action):
        # parent
        SoftwarePane.__init__(self, cache, db, distro, icons, datadir)
        self.searchentry.set_sensitive(False)
        # navigation history actions
        self.navhistory_back_action = navhistory_back_action
        self.navhistory_forward_action = navhistory_forward_action
        # configure any initial state attrs
        self.state.filter = AppFilter(db, cache)
        # the spec says we mix installed/not installed
        #self.apps_filter.set_not_installed_only(True)
        self.current_app_by_category = {}
        self.current_app_by_subcategory = {}
        self.pane_name = _("Get Software")

        # views to be created in init_view
        self.cat_view = None
        self.subcategories_view = None

        # integrate with the Unity launcher
        self.unity_launcher = UnityLauncher()
        # keep track of applications that are queued to be added
        # to the Unity launcher
        self.unity_launcher_transaction_queue = {}
        # flag to indicate whether applications should be added to the
        # unity launcher when installed (this value is initialized by
        # the config load in app.py)
        self.add_to_launcher_enabled = True
 def __init__(self, 
              cache,
              db, 
              distro, 
              icons, 
              datadir, 
              navhistory_back_action, 
              navhistory_forward_action):
     # parent
     SoftwarePane.__init__(self, cache, db, distro, icons, datadir)
     self.searchentry.set_sensitive(False)
     # navigation history actions
     self.navhistory_back_action = navhistory_back_action
     self.navhistory_forward_action = navhistory_forward_action
     # configure any initial state attrs
     self.state.filter = AppFilter(db, cache)
     # the spec says we mix installed/not installed
     #self.apps_filter.set_not_installed_only(True)
     self.current_app_by_category = {}
     self.current_app_by_subcategory = {}
     self.pane_name = _("Get Software")
     
     # views to be created in init_view
     self.cat_view = None
     self.subcategories_view = None
 def __init__(self, cache, db, distro, icons, datadir):
     # parent
     SoftwarePane.__init__(self, cache, db, distro, icons, datadir, show_ratings=False)
     # state
     self.apps_filter = AppViewFilter(db, cache)
     self.apps_filter.set_installed_only(True)
     self.current_appview_selection = None
     # UI
     self._build_ui()
Example #7
0
 def __init__(self, cache, db, distro, icons, datadir):
     # parent
     SoftwarePane.__init__(self, cache, db, distro, icons, datadir,
                           show_ratings=False)
     self.channel = None
     self.apps_filter = None
     self.apps_search_term = ""
     self.current_appview_selection = None
     self.distro = get_distro()
     self.pane_name = _("Software Channels")
 def __init__(self, cache, db, distro, icons, datadir):
     # parent
     SoftwarePane.__init__(self, cache, db, distro, icons, datadir, show_ratings=False)
     self.channel = None
     self.apps_filter = None
     self.search_terms = ""
     self.current_appview_selection = None
     self.distro = get_distro()
     # UI
     self._build_ui()
    def __init__(self, cache, db, distro, icons, datadir,
                 navhistory_back_action, navhistory_forward_action):
        # parent
        SoftwarePane.__init__(self, cache, db, distro, icons, datadir)
        self.searchentry.set_sensitive(False)
        # navigation history actions
        self.navhistory_back_action = navhistory_back_action
        self.navhistory_forward_action = navhistory_forward_action
        # configure any initial state attrs
        self.state.filter = AppFilter(db, cache)
        # the spec says we mix installed/not installed
        #self.apps_filter.set_not_installed_only(True)
        self.current_app_by_category = {}
        self.current_app_by_subcategory = {}
        self.pane_name = _("Get Software")

        # views to be created in init_view
        self.cat_view = None
        self.subcategories_view = None
 def __init__(self, cache, db, distro, icons, datadir):
     # parent
     SoftwarePane.__init__(self, cache, db, distro, icons, datadir)
     # state
     self.apps_category = None
     self.apps_subcategory = None
     self.apps_search_term = ""
     self.apps_sorted = True
     self.apps_limit = 0
     self.apps_filter = AppViewFilter(db, cache)
     self.apps_filter.set_only_packages_without_applications(True)
     # the spec says we mix installed/not installed
     #self.apps_filter.set_not_installed_only(True)
     self._status_text = ""
     self.connect("app-list-changed", self._on_app_list_changed)
     self.current_app_by_category = {}
     self.current_app_by_subcategory = {}
     # track navigation history
     self.nav_history = NavigationHistory(self)
     # UI
     self._build_ui()