airgun.views.smart_class_parameter
¶
Module Contents¶
Classes¶
Represent smart class parameter matcher attribute pair. Usually, it |
|
View is a kind of abstract widget that can hold another widgets. Remembers the order, |
|
Base view for Satellite pages |
|
Base view for Satellite pages |
- class airgun.views.smart_class_parameter.MatcherAttribute(parent, logger=None, **kwargs)¶
Represent smart class parameter matcher attribute pair. Usually, it looks like as two fields separated by ‘=’ mark
- matcher_attribute_type¶
- matcher_attribute_value¶
- class airgun.views.smart_class_parameter.SmartClassParameterContent(parent, locator, logger=None)¶
View is a kind of abstract widget that can hold another widgets. Remembers the order, so therefore it can function like a form with defined filling order.
It looks like this:
class Login(View): user = SomeInputWidget('user') password = SomeInputWidget('pass') login = SomeButtonWidget('Log In') def a_method(self): do_something()
The view is usually instantiated with an instance of
widgetastic.browser.Browser
, which will then enable resolving of all of the widgets defined.- Parameters
parent – A parent
View
orwidgetastic.browser.Browser
additional_context – If the view needs some context, for example - you want to check that you are on the page of user XYZ but you can also be on the page for user FOO, then you shall use the
additional_context
to pass in required variables that will allow you to detect this.
- class optional_input_validators(parent, logger=None)¶
View is a kind of abstract widget that can hold another widgets. Remembers the order, so therefore it can function like a form with defined filling order.
It looks like this:
class Login(View): user = SomeInputWidget('user') password = SomeInputWidget('pass') login = SomeButtonWidget('Log In') def a_method(self): do_something()
The view is usually instantiated with an instance of
widgetastic.browser.Browser
, which will then enable resolving of all of the widgets defined.- Parameters
parent – A parent
View
orwidgetastic.browser.Browser
additional_context – If the view needs some context, for example - you want to check that you are on the page of user XYZ but you can also be on the page for user FOO, then you shall use the
additional_context
to pass in required variables that will allow you to detect this.
- expander¶
- required¶
- validator_type¶
- validator_rule¶
- class prioritize_attribute_order(parent, logger=None, **kwargs)¶
View is a kind of abstract widget that can hold another widgets. Remembers the order, so therefore it can function like a form with defined filling order.
It looks like this:
class Login(View): user = SomeInputWidget('user') password = SomeInputWidget('pass') login = SomeButtonWidget('Log In') def a_method(self): do_something()
The view is usually instantiated with an instance of
widgetastic.browser.Browser
, which will then enable resolving of all of the widgets defined.- Parameters
parent – A parent
View
orwidgetastic.browser.Browser
additional_context – If the view needs some context, for example - you want to check that you are on the page of user XYZ but you can also be on the page for user FOO, then you shall use the
additional_context
to pass in required variables that will allow you to detect this.
- order¶
- merge_overrides¶
- merge_default¶
- avoid_duplicates¶
- class matchers(parent, logger=None, **kwargs)¶
View is a kind of abstract widget that can hold another widgets. Remembers the order, so therefore it can function like a form with defined filling order.
It looks like this:
class Login(View): user = SomeInputWidget('user') password = SomeInputWidget('pass') login = SomeButtonWidget('Log In') def a_method(self): do_something()
The view is usually instantiated with an instance of
widgetastic.browser.Browser
, which will then enable resolving of all of the widgets defined.- Parameters
parent – A parent
View
orwidgetastic.browser.Browser
additional_context – If the view needs some context, for example - you want to check that you are on the page of user XYZ but you can also be on the page for user FOO, then you shall use the
additional_context
to pass in required variables that will allow you to detect this.
- table¶
- add_new_matcher¶
- fill(values)¶
Add and fill all matchers provided Example:
[ { 'Attribute type': { 'matcher_attribute_type': 'os', 'matcher_attribute_value': 'x86' }, 'Value': 'newvalue' }, { 'Attribute type': { 'matcher_attribute_type': 'fqdn', 'matcher_attribute_value': 'myhost.com' }, 'Value': 'newvalue2' } ]
- ROOT¶
- key¶
- description¶
- puppet_environment¶
- puppet_class¶
- override¶
- parameter_type¶
- default_value¶
- omit¶
- class airgun.views.smart_class_parameter.SmartClassParametersView(parent, logger=None, **kwargs)¶
Base view for Satellite pages
- title¶
- table¶