airgun.views.os

Module Contents

class airgun.views.os.TemplatesList

Bases: widgetastic.widget.View

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(.,'%s')]/following-sibling::div/div[contains(@id, 'default_templates')]
TITLES = //label[@for='provisioning_template_id']
selects

Get dictionary of currently assigned templates for OS

read(self)

Return dictionary of strings representing title-value pairs for all templates assigned to specific operating system

fill(self, 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

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

title
new
table
is_displayed
class airgun.views.os.OperatingSystemEditView

Bases: airgun.views.common.BaseLoggedInView

class operating_system

Bases: airgun.views.common.SatTab

TAB_NAME = Operating System
name
major
minor
description
family
password_hash
architectures
class partition_table

Bases: airgun.views.common.SatTab

TAB_NAME = Partition Table
resources
class installation_media

Bases: airgun.views.common.SatTab

TAB_NAME = Installation Media
resources
class templates

Bases: airgun.views.common.SatTab

resources
class parameters

Bases: airgun.views.common.SatTab

TAB_NAME = Parameters
os_params
breadcrumb
submit
is_displayed
class airgun.views.os.OperatingSystemCreateView

Bases: airgun.views.os.OperatingSystemEditView

is_displayed