Ejemplo n.º 1
0
 def fill(self, values):
     if isinstance(values, six.string_types):
         new_values = dict(type=values)
     elif isinstance(values, (list, tuple)):
         new_values = dict(type=values[0], **values[1])
     else:
         raise TypeError("Evaluate part should be a string or tuple.")
     return View.fill(self, new_values)
Ejemplo n.º 2
0
 def __init__(self, parent, id, number="", move_into=None, move_from=None,
         available_items="choices_chosen", chosen_items="members_chosen", logger=None):
     View.__init__(self, parent, logger=logger)
     self.available_items = available_items
     self.chosen_items = chosen_items
     self.id = id
     if number:
         self.number = "[{}]".format(number)
     else:
         self.number = number
     if isinstance(move_into, WidgetDescriptor):
         self._move_into = move_into.klass(self, **move_into.kwargs)
     else:
         self._move_into = move_into
     if isinstance(move_from, WidgetDescriptor):
         self._move_from = move_from.klass(self, **move_from.kwargs)
     else:
         self._move_from = move_from
Ejemplo n.º 3
0
class PhysicalChassisToolbar(View):
    """Represents chassis toolbar and its controls."""
    identify = Dropdown(text="Identify")
    view_selector = View.nested(ItemsToolBarViewSelector)
Ejemplo n.º 4
0
class TenantEditTagEntities(View):
    """The entities on the edit tags page"""
    breadcrumb = BreadCrumb()
    title = Text('#explorer_title_text')
    included_widgets = View.include(BaseNonInteractiveEntitiesView,
                                    use_parent=True)
Ejemplo n.º 5
0
class OneProviderComponentsToolbar(View):
    policy = Dropdown(text='Policy')
    download = Dropdown(text='Download')
    back = Button(name='show_summary')
    view_selector = View.nested(ItemsToolBarViewSelector)
Ejemplo n.º 6
0
class SecurityGroupDetailsToolBar(View):
    """ Represents provider details toolbar """
    policy = Dropdown(text='Policy')
    download = Button(title='Download summary in PDF format')
    view_selector = View.nested(ItemsToolBarViewSelector)
Ejemplo n.º 7
0
class CloudNetworkToolBar(View):
    """ Represents cloud networks toolbar and its controls """
    configuration = Dropdown(text='Configuration')
    policy = Dropdown(text='Policy')
    download = Dropdown(text='Download')
    view_selector = View.nested(ItemsToolBarViewSelector)
Ejemplo n.º 8
0
 def __init__(self, parent, id="edit_email_div", logger=None):
     View.__init__(self, parent, logger=logger)
     self.id = id
Ejemplo n.º 9
0
 def fill(self, values):
     new_values = dict(type=values[0], **values[1])
     return View.fill(self, new_values)
Ejemplo n.º 10
0
 class visual(WaitTab):  # noqa
     TAB_NAME = 'Visual'
     including_entities = View.include(VisualForm, use_parent=True)
Ejemplo n.º 11
0
class TimeProfileView(BaseLoggedInPage):
    entities = View.nested(TimeProfileEntities)
    configuration = Dropdown('Configuration')
Ejemplo n.º 12
0
class KeyPairToolbar(View):
    policy = Dropdown('Policy')
    configuration = Dropdown('Configuration')
    download = Dropdown('Download')

    view_selector = View.nested(ItemsToolBarViewSelector)
Ejemplo n.º 13
0
class PlaybooksToolbar(View):
    view_selector = View.nested(ItemsToolBarViewSelector)
    download = Dropdown("Download")
Ejemplo n.º 14
0
    def __init__(self, parent, locator, logger=None):
        View.__init__(self, parent=parent, logger=logger)

        self.locator = locator
Ejemplo n.º 15
0
 def __init__(self, parent, logger=None):
     View.__init__(self, parent, logger=logger)
class AvailabilityZoneToolBar(View):
    """View containing the toolbar widgets"""
    policy = Dropdown('Policy')
    download = Dropdown('Download')  # Title attribute, no displayed text

    view_selector = View.nested(ItemsToolBarViewSelector)
Ejemplo n.º 17
0
class ConfigManagementAddView(ConfigManagementView):
    """The add page"""
    sidebar = View.nested(ConfigManagementSideBar)
    entities = View.nested(ConfigManagementAddEntities)
    is_displayed = displayed_not_implemented
Ejemplo n.º 18
0
 class default_views(WaitTab):  # noqa
     TAB_NAME = 'Default Views'
     including_entities = View.include(DefaultViewsForm,
                                       use_parent=True)
 def __init__(self, parent, show_loc=None, logger=None):
     View.__init__(self, parent, logger=logger)
     self.show_loc = show_loc
Ejemplo n.º 20
0
 class default_filters(WaitTab):  # noqa
     TAB_NAME = 'Default Filters'
     including_entities = View.include(DefaultFiltersForm,
                                       use_parent=True)
class ObjectStoreObjectToolbar(View):
    """The toolbar on the Object Store Object page"""
    configuration = Dropdown('Configuration')
    policy = Dropdown('Policy')
    download = Dropdown('Download')
    view_selector = View.nested(ItemsToolBarViewSelector)
Ejemplo n.º 22
0
 class time_profiles(WaitTab):  # noqa
     TAB_NAME = 'Time Profiles'
     including_entities = View.include(TimeProfilesView,
                                       use_parent=True)
Ejemplo n.º 23
0
class NetworkPortToolBar(View):
    """ Represents provider toolbar and its controls """
    policy = Dropdown(text='Policy')
    download = Dropdown(text='Download')
    view_selector = View.nested(ItemsToolBarViewSelector)
Ejemplo n.º 24
0
 def __init__(self, parent, show_loc=None, logger=None):
     View.__init__(self, parent, logger=logger)
     self.show_loc = show_loc
Ejemplo n.º 25
0
class SubnetToolBar(View):
    """ Represents provider toolbar and its controls """
    configuration = Dropdown(text='Configuration')
    policy = Dropdown(text='Policy')
    download = Dropdown(text='Download')
    view_selector = View.nested(ItemsToolBarViewSelector)
Ejemplo n.º 26
0
    class content_views(SatTab):
        TAB_NAME = 'Content Views'

        resources = View.nested(AddRemoveResourcesView)
Ejemplo n.º 27
0
class BalancerToolBar(View):
    """ Represents balancers toolbar and its controls """
    policy = Dropdown(text='Policy')
    download = Dropdown(text='Download')
    view_selector = View.nested(ItemsToolBarViewSelector)
Ejemplo n.º 28
0
    class repositories(SatTabWithDropdown):
        TAB_NAME = 'Yum Content'
        SUB_ITEM = 'Repositories'

        resources = View.nested(AddRemoveResourcesView)
Ejemplo n.º 29
0
 def __init__(self, parent, tab, logger=None):
     View.__init__(self, parent, logger=logger)
     self.tab = tab
Ejemplo n.º 30
0
    class docker_repositories(SatTabWithDropdown):
        TAB_NAME = 'Container Images'
        SUB_ITEM = 'Repositories'

        resources = View.nested(AddRemoveResourcesView)
Ejemplo n.º 31
0
 class toolbar(View):  # noqa
     configuration = Dropdown(text='Configuration')
     policy = Dropdown(text='Policy')
     download = Dropdown(text='Download')
     view_selector = View.nested(ItemsToolBarViewSelector)
Ejemplo n.º 32
0
    class ostree_content(SatTab):
        TAB_NAME = 'OSTree Content'

        resources = View.nested(AddRemoveResourcesView)
Ejemplo n.º 33
0
class ConfigManagementAddEntities(View):
    """The entities on the add page"""
    title = Text('//div[@id="main-content"]//h1')
    form = View.nested(ConfigManagementAddForm)
    add = Button('Add')
    cancel = Button('Cancel')
Ejemplo n.º 34
0
class PhysicalRacksToolbar(View):
    """Represents racks toolbar and its controls."""
    configuration = Dropdown(text="Configuration")
    view_selector = View.nested(ItemsToolBarViewSelector)
Ejemplo n.º 35
0
 def __init__(self, parent, param_type, logger=None):
     View.__init__(self, parent, logger=logger)
     self.param_type = param_type
Ejemplo n.º 36
0
 class basic_info(WaitTab):  # noqa
     TAB_NAME = 'Basic Info'
     included_form = View.include(BasicInfoForm, use_parent=True)
Ejemplo n.º 37
0
 def __init__(self, parent, tab, logger=None):
     View.__init__(self, parent, logger=logger)
     self.tab = tab
Ejemplo n.º 38
0
 class template(SatTab):
     name = TextInput(id='job_template_name')
     default = Checkbox(id='job_template_default')
     template_editor = View.nested(TemplateEditor)
     description = TextInput(id='job_template_description')
     audit = TextInput(id='job_template_audit_comment')
Ejemplo n.º 39
0
 class form(View):  # noqa
     policy = BootstrapSelect('policy_id')
     # TODO policies table, ability to remove
     entities = View.nested(BaseNonInteractiveEntitiesView)
     cancel_button = Button('Cancel')
Ejemplo n.º 40
0
 def __init__(self, parent, select_loc, up_loc, down_loc, logger=None):
     View.__init__(self, parent, logger=logger)
     self.select_loc = select_loc
     self.up_loc = up_loc
     self.down_loc = down_loc