airgun.views.os
¶
Module Contents¶
Classes¶
List of templates for specific operating system. It can have dynamic |
|
Base view for Satellite pages |
|
Base view for Satellite pages |
|
Base view for Satellite pages |
- class airgun.views.os.TemplatesList(parent, logger=None, **kwargs)¶
List of templates for specific operating system. It can have dynamic number of templates per different OS types
Example html representation:
<label ... for="provisioning_template_id">PXELinux template *</label> <div...> <div class="..." id="s2id_operatingsystem_os_default_templates..."> <a> <span>Kickstart default PXELinux</span> ... <label ... for="provisioning_template_id">PXEGrub template *</label> <div...> <div class="..." id="s2id_operatingsystem_os_default_templates..."> <a> <span>Kickstart default PXEGrub2</span>
- SELECT = //label[@for='provisioning_template_id'][contains(.,'{}')]/following-sibling::div/div[contains(@i...¶
- TITLES = //label[@for='provisioning_template_id']¶
- property selects¶
Get dictionary of currently assigned templates for OS
- read()¶
Return dictionary of strings representing title-value pairs for all templates assigned to specific operating system
- fill(value)¶
Assign provided value for specific operating system template
- Parameters
value – dictionary with title-value pairs of templates to be changed for OS (e.g. {‘Provisioning template’: ‘test_template’})
- class airgun.views.os.OperatingSystemsView(parent, logger=None, **kwargs)¶
Base view for Satellite pages
- title¶
- new¶
- table¶
- class airgun.views.os.OperatingSystemEditView(parent, logger=None, **kwargs)¶
Base view for Satellite pages
- 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’- TAB_NAME = Operating System¶
- name¶
- major¶
- minor¶
- description¶
- family¶
- password_hash¶
- architectures¶
- class partition_table(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 = Partition Table¶
- resources¶
- class installation_media(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 = Installation Media¶
- resources¶
- class templates(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 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’- TAB_NAME = Parameters¶
- os_params¶
- breadcrumb¶
- submit¶