本文整理汇总了Python中cfme.utils.appliance.Navigatable类的典型用法代码示例。如果您正苦于以下问题:Python Navigatable类的具体用法?Python Navigatable怎么用?Python Navigatable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Navigatable类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, name, group, title=None, locked=None, widgets=None, appliance=None):
Navigatable.__init__(self, appliance)
self.name = name
self.title = title
self.locked = locked
self.widgets = widgets
self._group = group
示例2: __init__
def __init__(self, name=None, url=None, ssl=None, credentials=None, key=None, appliance=None):
Navigatable.__init__(self, appliance=appliance)
self.name = name
self.url = url
self.ssl = ssl
self.credentials = credentials
self.key = key or name
示例3: __init__
def __init__(self, url=None, username=None, password=None, verify_ssl=None, appliance=None):
Navigatable.__init__(self, appliance=appliance)
self.url = url
self.username = username
self.password = password
self.verify_ssl = verify_ssl
self.domain = None
示例4: __init__
def __init__(self, path_to_report, run_datetime, queued_datetime, candu=False, appliance=None):
Navigatable.__init__(self, appliance=appliance)
self.path = path_to_report
self.datetime = run_datetime
self.candu = candu
self.queued_datetime_in_title = parsetime.from_american_with_utc(
queued_datetime).to_saved_report_title_format()
self.datetime_in_tree = parsetime.from_american_with_utc(self.datetime).to_iso_with_utc()
示例5: __init__
def __init__(self, description=None, scope=None, days=None, hours=None, timezone=None,
appliance=None):
Navigatable.__init__(self, appliance=appliance)
self.description = description
self.scope = scope
self.days = days
self.hours = hours
self.timezone = timezone
示例6: __init__
def __init__(self, template_type=None, template_name=None, description=None,
draft=None, content=None, appliance=None):
Navigatable.__init__(self, appliance)
self.template_type = template_type
self.template_name = template_name
self.description = description
self.draft = draft
self.content = content
示例7: __init__
def __init__(self, name, provider, template_name=None, appliance=None):
super(BaseVM, self).__init__()
Navigatable.__init__(self, appliance=appliance)
if type(self) in {BaseVM, VM, Template}:
raise NotImplementedError('This class cannot be instantiated.')
self.name = name
self.provider = provider
self.template_name = template_name
示例8: __init__
def __init__(self, name, description, provisioning, display_in_catalog=None, catalog=None,
retirement=None, appliance=None):
Navigatable.__init__(self, appliance=appliance)
self.name = name
self.description = description
self.display_in_catalog = display_in_catalog
self.catalog = catalog
self.provisioning = provisioning
self.retirement = retirement
示例9: __init__
def __init__(self, name=None, display_name=None, description=None, show_in_console=True,
single_value=True, capture_candu=False, appliance=None):
Navigatable.__init__(self, appliance=appliance)
self.name = name
self.display_name = display_name
self.description = description
self.show_in_console = show_in_console
self.single_value = single_value
self.capture_candu = capture_candu
示例10: __init__
def __init__(self, appliance, catalog=None, name=None, stack_data=None,
dialog_values=None, ansible_dialog_values=None):
Navigatable.__init__(self, appliance=appliance)
self.catalog = catalog
self.name = name
self.stack_data = stack_data
self.dialog_values = dialog_values
self.ansible_dialog_values = ansible_dialog_values
self.parent = self.appliance.context
示例11: __init__
def __init__(self, description=None,
currency=None,
fields=None,
appliance=None,
):
Navigatable.__init__(self, appliance=appliance)
self.description = description
self.currency = currency
self.fields = fields
示例12: __init__
def __init__(self, assign_to=None,
tag_category=None,
docker_labels=None,
selections=None,
appliance=None):
Navigatable.__init__(self, appliance=appliance)
self.assign_to = assign_to
self.tag_category = tag_category
self.docker_labels = docker_labels
self.selections = selections
示例13: __init__
def __init__(
self, name=None, endpoints=None, key=None, zone=None, provider_data=None,
appliance=None):
Navigatable.__init__(self, appliance=appliance)
self.name = name
self.endpoints = self._prepare_endpoints(endpoints)
self.key = key
self.provider_data = provider_data
self.zone = zone
self.template_name = "Templates"
示例14: __init__
def __init__(self, diag_type, name=None, description=None, content=None, appliance=None):
Navigatable.__init__(self, appliance=appliance)
self.name = name
self.description = description
self.content = content
if diag_type in self.ALLOWED_TYPES:
self.diag_type = diag_type
else:
raise TypeError('Type must be one of ProvisioningDialog constants: {}'
.format(self.ALLOWED_TYPES))
示例15: __init__
def __init__(self, text=None, hover=None, type=None, image=None, appliance=None):
Navigatable.__init__(self, appliance=appliance)
self.text = text
self.hover = hover
self.type = type
if image:
self.image = image
elif self.appliance.version < '5.9':
self.image = 'Button Image 1'
else:
self.image = 'fa-user'