airgun.views.hostgroup
¶
Module Contents¶
Classes¶
List of actions, expandable via button with caret. Usually comes with |
|
Base view for Satellite pages |
|
Base view for Satellite pages |
|
Base view for Satellite pages |
- class airgun.views.hostgroup.ActivationKeyDropDown(parent, locator, logger=None)¶
List of actions, expandable via button with caret. Usually comes with button attached on left side, representing either most common action or hint like ‘Select Action’.
Example html representation:
<div class="btn-group dropdown" is-open="status.isOpen"> <button type="button" class="btn btn-default" ...> <span><span >Select Action</span></span> </button> <button type="button" class="btn btn-default" ...> <span class="caret"></span> </button> <ul class="dropdown-menu dropdown-menu-right ng-scope" role="menu"> <li role="menuitem"><a><span><span>Action1</span></span></a></li> <li role="menuitem"><a><span><span>Action2</span></span></a></li> </ul> </div>
Locator example:
//div[contains(@class, 'dropdown')] //div[contains(@class, 'btn-group')]
- dropdown¶
- property items¶
Returns a list of all dropdown items as strings.
- class airgun.views.hostgroup.HostGroupsView(parent, logger=None, **kwargs)¶
Base view for Satellite pages
- title¶
- new¶
- new_on_blank_page¶
- table¶
- class airgun.views.hostgroup.HostGroupCreateView(parent, logger=None, **kwargs)¶
Base view for Satellite pages
- class host_group(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’- TAB_NAME = Host Group¶
- parent_name¶
- name¶
- description¶
- lce¶
- content_view¶
- content_source¶
- puppet_environment¶
- deploy¶
- puppet_master¶
- puppet_ca¶
- openscap_capsule¶
- class ansible_roles(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’- TAB_NAME = Ansible Roles¶
- resources¶
- class puppet_enc(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’- TAB_NAME = Puppet ENC¶
- config_groups¶
- classes¶
- class network(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’- domain¶
- ipv4_subnet¶
- ipv6_subnet¶
- realm¶
- class operating_system(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’- class TypeMedium(parent, logger=None, **kwargs)¶
View is a kind of abstract widget that can hold another widgets. Remembers the order, so therefore it can function like a form with defined filling order.
It looks like this:
class Login(View): user = SomeInputWidget('user') password = SomeInputWidget('pass') login = SomeButtonWidget('Log In') def a_method(self): do_something()
The view is usually instantiated with an instance of
widgetastic.browser.Browser
, which will then enable resolving of all of the widgets defined.- Parameters
parent – A parent
View
orwidgetastic.browser.Browser
additional_context – If the view needs some context, for example - you want to check that you are on the page of user XYZ but you can also be on the page for user FOO, then you shall use the
additional_context
to pass in required variables that will allow you to detect this.
- media¶
- class TypeSynced(parent, logger=None, **kwargs)¶
View is a kind of abstract widget that can hold another widgets. Remembers the order, so therefore it can function like a form with defined filling order.
It looks like this:
class Login(View): user = SomeInputWidget('user') password = SomeInputWidget('pass') login = SomeButtonWidget('Log In') def a_method(self): do_something()
The view is usually instantiated with an instance of
widgetastic.browser.Browser
, which will then enable resolving of all of the widgets defined.- Parameters
parent – A parent
View
orwidgetastic.browser.Browser
additional_context – If the view needs some context, for example - you want to check that you are on the page of user XYZ but you can also be on the page for user FOO, then you shall use the
additional_context
to pass in required variables that will allow you to detect this.
- synced_content¶
- TAB_NAME = Operating System¶
- architecture¶
- operating_system¶
- media_type¶
- media_content¶
- ptable¶
- root_password¶
- class parameters(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’
- class locations(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’- resources¶
- class organizations(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’- resources¶
- class activation_keys(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’- TAB_NAME = Activation Keys¶
- activation_keys¶
- breadcrumb¶
- submit¶