airgun.views.contentviewfilter

Module Contents

airgun.views.contentviewfilter.ACTIONS_COLUMN = 4
class airgun.views.contentviewfilter.CVFRuleActions

Bases: widgetastic.widget.View

‘Actions’ column for content view filter rules. Can contain either ‘Edit’ button or ‘Save’ and ‘Cancel’.

edit
save
cancel
class airgun.views.contentviewfilter.CVFRuleVersion

Bases: widgetastic.widget.View

‘Version’ column for content view filter rule. Depending on type (e.g. ‘Equal To’, ‘Greater Than’ etc) can have different set of inputs.

class all_versions

Bases: widgetastic.widget.View

class equal_to

Bases: widgetastic.widget.View

version
class greater_than

Bases: widgetastic.widget.View

min_version
class less_than

Bases: widgetastic.widget.View

max_version
class range

Bases: widgetastic.widget.View

min_version
max_version
rule_type
rule
version_text
fill(self, values)

Custom fill to support passing values for all inputs in single tuple without the need to specify specific input name.

Parameters:values (tuple) – tuple containing values for specific version type and its inputs, e.g. (‘Equal To’, ‘0.5’) or (‘Range’, ‘4.1’, ‘4.6’)
read(self)

Custom read to return “summary” text value, not the dict with every included widget separately.

class airgun.views.contentviewfilter.CVFEditableEntry(parent, locator=None, name=None, logger=None)

Bases: airgun.widgets.EditableEntry

Content view filter variant of Editable Entry, main difference of which is span tags instead of dd and dt.

class airgun.views.contentviewfilter.AffectedRepositoriesTab

Bases: airgun.views.common.SatSecondaryTab

Affected repositories tab contains repositories count inside tab title, making it impossible to rely on exact string value. Using starts-with instead.

TAB_NAME = Affected Repositories
TAB_LOCATOR
class airgun.views.contentviewfilter.ContentViewFiltersView

Bases: airgun.views.common.BaseLoggedInView, airgun.views.common.SearchableViewMixin

breadcrumb
new_filter
remove_selected
table
is_displayed
class airgun.views.contentviewfilter.CreateYumFilterView

Bases: airgun.views.common.BaseLoggedInView

breadcrumb
name
content_type
inclusion_type
description
save
cancel
is_displayed
class airgun.views.contentviewfilter.EditYumFilterView

Bases: airgun.views.common.BaseLoggedInView

class details

Bases: airgun.views.common.SatSecondaryTab

name
description
class rpm_filter

Bases: widgetastic.widget.View

class rpms

Bases: airgun.views.common.SatSecondaryTab, airgun.views.common.SearchableViewMixin

TAB_NAME = RPMs
exclude_no_errata
add_rule
remove_rule
table
class errata_filter

Bases: airgun.views.common.AddRemoveResourcesView

Combines both ‘Errata by ID’ and ‘Errata by date and type’ filters as they can’t be easily distinguished on UI. For ‘Errata by ID’ filter ‘Add’ and ‘List/Remove’ tabs are available, for ‘Errata by date and type’ - only ‘Erratum Date Range’ tab is displayed.

class add_tab

Bases: airgun.views.common.AddTab

security
enhancement
bugfix
date_type
start_date
end_date
select_all
search(self, query=None, filters=None)

Custom search which supports all errata filters.

Parameters:
  • optional query (str) – search query to type into search box. Optional as sometimes filtering is enough to find desired errata
  • optional filters (dict) – dictionary containing widget names and values to set (like with regular fill())
add(self, errata_id=None, filters=None)

Add specific errata to filter or all available if id not provided.

Parameters:
  • optional errata_id (str) – ID of errata to add. If not provided - all available errata in table will be selected (especially useful together with filtering)
  • optional filters (dict) – dictionary containing widget names and values to set (like with regular fill())
fill(self, errata_id=None, filters=None)
class erratum_date_range

Bases: airgun.views.common.SatSecondaryTab

TAB_NAME = Erratum Date Range
security
enhancement
bugfix
date_type
start_date
end_date
save
cancel
after_fill(self, was_change)
add(self, errata_id=None, filters=None)
Add specific errata to filter or all available if id not
provided.
Parameters:
  • optional errata_id (str) – ID of errata to add. If not provided - all available errata in table will be selected (especially useful together with filtering)
  • optional filters (dict) – dictionary containing widget names and values to set (like with regular fill())
read(self)

Read values from tabs depending on errata filter type (by id or daterange filter).

class package_group_filter

Bases: airgun.views.common.AddRemoveResourcesView

class module_streams_filter

Bases: airgun.views.common.AddRemoveResourcesView

class affected_repositories

Bases: airgun.views.contentviewfilter.AffectedRepositoriesTab

filter_toggle
product_filter
searchbox
update_repositories
select_all
table
breadcrumb
filter_type
content_tabs
is_displayed