cfme.services.service_catalogs package

Module contents

class cfme.services.service_catalogs.BaseOrderForm(*args, **kwargs)[source]

Bases: widgetastic.widget.View

Represents the order form of a service. This form doesn’t have a static set of elements apart from titles and buttons. In the most cases the fields can be either regular inputs or dropdowns. Their locators depend on field names. In order to find and fill required fields a parametrized view is used here. The keys of a fill dictionary should match ids of the fields. For instance there is a field with such html <input id=”some_key”></input>, so a fill dictionary should look like that: {“some_key”: “some_value”}

dialog_title

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

fields

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

fill(*args, **kwargs)[source]
title

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

class cfme.services.service_catalogs.ServiceCatalogs(appliance, catalog=None, name=None, stack_data=None, dialog_values=None, ansible_dialog_values=None)[source]

Bases: cfme.utils.appliance.Navigatable, cfme.common.Taggable, cfme.utils.update.Updateable, sentaku.modeling.ElementMixin

Service Catalogs main class to context switch between ui and ssui. All the below methods are implemented in both ui and ssui side .

add_to_shopping_cart

descriptor for implementing context sensitive methods and registration of their implementations

class Example(Element):
    action = ContextualMethod()
    @action.implemented_for("db")
    def action(self):
        pass

   @action.implemented_for("test")
   def action(self):
       pass
order

descriptor for implementing context sensitive methods and registration of their implementations

class Example(Element):
    action = ContextualMethod()
    @action.implemented_for("db")
    def action(self):
        pass

   @action.implemented_for("test")
   def action(self):
       pass