예제 #1
0
 class form(View):  # noqa
     user_name = VersionPicker({
         "5.11": ReactSelect('user_name'),
         LOWEST: BootstrapSelect('user_name')
     })
     group_name = VersionPicker({
         "5.11": ReactSelect('group_name'),
         LOWEST: BootstrapSelect('group_name')
     })
     entities = View.nested(BaseNonInteractiveEntitiesView)
     save_button = VersionPicker({
         "5.11": Button('Submit'),
         LOWEST: Button('Save')
     })
     reset_button = Button('Reset')
     cancel_button = Button('Cancel')
예제 #2
0
 class form(View):  # noqa
     server = VersionPicker({
         "5.11": ReactSelect('serverId'),
         LOWEST: BootstrapSelect('server_id')
     })
     save_button = Button('Save')
     reset_button = Button('Reset')
     cancel_button = Button('Cancel')
예제 #3
0
 class form(View):  # noqa
     tags = VersionPicker({
         Version.lowest(): Table("//div[@id='assignments_div']//table"),
         "5.11": ParametrizedView.nested(AssignedTags)
     })
     tag_category = VersionPicker({
         Version.lowest(): BootstrapSelect(id='tag_cat'),
         "5.11": ReactSelect(locator='.//div[@id="tag_cat"]')
     })
     tag_name = VersionPicker({
         Version.lowest(): BootstrapSelect(id='tag_add'),
         "5.11": ReactSelect(locator='.//div[@id="cat_tags_div"]')
     })
     entities = View.nested(BaseNonInteractiveEntitiesView)
     save = Button('Save')
     reset = Button('Reset')
     cancel = Button('Cancel')
예제 #4
0
class TemplateForm(ServicesCatalogView):
    title = Text('#explorer_title_text')
    template_type = VersionPicker({
        "5.11": ReactSelect("type"),
        LOWEST: BootstrapSelect("type")
    })
    name = Input(name='name')
    description = Input(name="description")
    draft = Checkbox(name='draft')
    content = VersionPicker({
        "5.11": ReactCodeMirror(),
        LOWEST: ScriptBox(locator="//pre[@class=' CodeMirror-line ']/span")
    })
예제 #5
0
class ServerWorkersView(View):
    generic_worker_count = ReactSelect("generic_worker.count")
    generic_worker_threshold = ReactSelect("generic_worker.memory_threshold")
    priority_worker_count = ReactSelect("priority_worker.count")
    priority_worker_threshold = ReactSelect("priority_worker.memory_threshold")
    cu_data_collector_worker_count = ReactSelect(
        "ems_metrics_collector_worker.defaults.count")
    cu_data_collector_worker_threshold = ReactSelect(
        "ems_metrics_collector_worker.defaults.memory_threshold")
    cu_data_processor_worker_count = ReactSelect(
        "ems_metrics_processor_worker.count")
    cu_data_processor_worker_threshold = ReactSelect(
        "ems_metrics_processor_worker.memory_threshold")
    event_monitor_worker_threshold = ReactSelect(
        "event_catcher.memory_threshold")
    refresh_worker_threshold = ReactSelect(
        "ems_refresh_worker.defaults.memory_threshold")
    connection_broker_worker_threshold = ReactSelect(
        "vim_broker_worker.memory_threshold")
    vm_analysis_collectors_worker_count = ReactSelect(
        "smart_proxy_worker.count")
    vm_analysis_collectors_worker_threshold = ReactSelect(
        "smart_proxy_worker.memory_threshold")
    ui_worker_count = ReactSelect("ui_worker.count")
    remote_console_worker_count = ReactSelect("remote_console_worker.count")
    reporting_worker_count = ReactSelect("reporting_worker.count")
    reporting_worker_threshold = ReactSelect(
        "reporting_worker.memory_threshold")
    web_service_worker_count = ReactSelect("web_service_worker.count")
    web_service_worker_threshold = ReactSelect(
        "web_service_worker.memory_threshold")

    save = Button('Save')
    reset = Button('Reset')
예제 #6
0
 class form(View):
     select_an_owner = ReactSelect("user_name")
     select_group = ReactSelect("group_name")