airgun.views.package

Module Contents

Classes

PackagesView

Main Packages view

PackageDetailsView

Base view for Satellite pages

class airgun.views.package.PackagesView(parent, logger=None, **kwargs)

Main Packages view

title
table
repository
applicable
upgradable
search_box
search(query, repository='All Repositories', applicable=False, upgradable=False)

Perform search using search box on the page and return table contents.

Parameters
  • query (str) – search query to type into search field. E.g. name = "bar".

  • repository (str) – repository name to select when searching for the package.

  • applicable (bool) – To show only applicable packages

  • upgradable (bool) – To show only upgradable packages

Returns

list of dicts representing table rows

Return type

list

property is_displayed

The view is displayed when it’s title exists

class airgun.views.package.PackageDetailsView(parent, logger=None, **kwargs)

Base view for Satellite pages

class details(parent, logger=None, **kwargs)

Regular primary level Tab.

Usage:

@View.nested
class mytab(SatTab):
    TAB_NAME = 'My Tab'
@View.nested
class subscriptions(SatTab):
    # no need to specify 'TAB_NAME', it will be set to 'Subscriptions'
    # automatically
    pass

Note that TAB_NAME is optional and if it’s absent - capitalized class name is used instead, which is useful for simple tab names like ‘Subscriptions’

installed_on
applicable_to
upgradable_for
description
summary
group
license
url
size
filename
checksum
checksum_type
source_rpm
build_host
build_time
class files(parent, logger=None, **kwargs)

Regular primary level Tab.

Usage:

@View.nested
class mytab(SatTab):
    TAB_NAME = 'My Tab'
@View.nested
class subscriptions(SatTab):
    # no need to specify 'TAB_NAME', it will be set to 'Subscriptions'
    # automatically
    pass

Note that TAB_NAME is optional and if it’s absent - capitalized class name is used instead, which is useful for simple tab names like ‘Subscriptions’

package_files
breadcrumb
property is_displayed

Overrides the Widget.is_displayed(). The difference is that if the view does not have the root locator, it assumes it is displayed.

Returns

bool