cfme.containers.route module¶
-
class
cfme.containers.route.All(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep-
VIEW¶ alias of
RouteAllView
-
prerequisite¶ This is a helper descriptor for destinations which are linked to an attribute of the object.
For instance, imagine you have an object that has an attribute(parent) which has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToAttribute as a helper, supplying only the name of the attribute which stores the object to be used in the navigation, and the destination name. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.containers.route.Details(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep-
VIEW¶ alias of
RouteDetailsView
-
prerequisite¶ This is a helper descriptor for destinations which are linked to an attribute of the object.
For instance, imagine you have an object that has an attribute(parent) which has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToAttribute as a helper, supplying only the name of the attribute which stores the object to be used in the navigation, and the destination name. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.containers.route.EditTags(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep-
VIEW¶ alias of
TagPageView
-
prerequisite¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.containers.route.Route(parent, name, project_name, provider)[source]¶ Bases:
cfme.modeling.base.BaseEntity,cfme.common.Taggable,cfme.containers.provider.Labelable-
PLURAL= 'Routes'¶
-
__ge__(other)¶ Automatically created by attrs.
-
__gt__(other)¶ Automatically created by attrs.
-
__le__(other)¶ Automatically created by attrs.
-
__lt__(other)¶ Automatically created by attrs.
-
__ne__(other)¶ Check equality and either forward a NotImplemented or return the result negated.
-
__repr__()¶ Automatically created by attrs.
-
all_view¶ alias of
RouteAllView
-
details_view¶ alias of
RouteDetailsView
-
-
class
cfme.containers.route.RouteAllView(*args, **kwargs)[source]¶ Bases:
cfme.containers.provider.ContainerObjectAllBaseViewContainer Routes All view
-
SUMMARY_TEXT¶ A class that implements the version picking functionality.
Basic usage is a descriptor in which you place instances of
VersionPickin a view. Whenever is this instance accessed from an instance, it automatically picks the correct variant based on product_version defined in thewidgetastic.browser.Browser.You can also use this separately using the
pick()method.Example:
class MyView(View): something_version_dependent = VersionPick({ '1.0.0': Foo('bar'), '2.5.0': Bar('baz'), })
This sample will resolve the correct (Foo or Bar) kind of item and returns it.
Parameters: version_dict – Dictionary of version_introduced: item
-
entities¶
-
-
class
cfme.containers.route.RouteCollection(parent, filters=NOTHING)[source]¶ Bases:
cfme.containers.provider.GetRandomInstancesMixin,cfme.modeling.base.BaseCollectionCollection object for
Route.-
__ge__(other)¶ Automatically created by attrs.
-
__gt__(other)¶ Automatically created by attrs.
-
__le__(other)¶ Automatically created by attrs.
-
__lt__(other)¶ Automatically created by attrs.
-
__ne__(other)¶ Check equality and either forward a NotImplemented or return the result negated.
-
__repr__()¶ Automatically created by attrs.
-
-
class
cfme.containers.route.RouteDetailsView(*args, **kwargs)[source]¶ Bases:
cfme.containers.provider.ContainerObjectDetailsBaseViewContainer Routes Detail view
-
SUMMARY_TEXT¶ A class that implements the version picking functionality.
Basic usage is a descriptor in which you place instances of
VersionPickin a view. Whenever is this instance accessed from an instance, it automatically picks the correct variant based on product_version defined in thewidgetastic.browser.Browser.You can also use this separately using the
pick()method.Example:
class MyView(View): something_version_dependent = VersionPick({ '1.0.0': Foo('bar'), '2.5.0': Bar('baz'), })
This sample will resolve the correct (Foo or Bar) kind of item and returns it.
Parameters: version_dict – Dictionary of version_introduced: item
-