airgun.views.modulestream

Module Contents

Classes

CustomSearch

Searchbar for table filtering

ModuleStreamView

Main Module_Streams view

ModuleStreamsDetailsView

Base view for Satellite pages

class airgun.views.modulestream.CustomSearch(parent, logger=None, **kwargs)

Searchbar for table filtering

search_field
search_button
class airgun.views.modulestream.ModuleStreamView(parent, logger=None, **kwargs)

Main Module_Streams view

title
table
search_box
search(query)

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".

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.modulestream.ModuleStreamsDetailsView(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’

details_table
class repositories(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’

table
breadcrumb
title
details_tab
property is_displayed

Assume the view is displayed when its breadcrumb is visible