airgun.views.sync_status
¶
Module Contents¶
Classes¶
Table row interface to implement a sync status table row tree node |
|
This is a representation of a tree view with columns realized as a |
|
Base view for Satellite pages |
- exception airgun.views.sync_status.ParentNodeNotFoundError¶
Raise when not able to find a parent for a node item
- exception airgun.views.sync_status.ReservedToSectionOnlyError¶
Mainly raised when adding a child to a non section node
- exception airgun.views.sync_status.NodeNotFoundError¶
Raise when a node was not found
- class airgun.views.sync_status.SyncStatusTableNode(parent=None, row=None)¶
Table row interface to implement a sync status table row tree node
- CHECKBOX = ./td/input[@type='checkbox']¶
- RESULT_LINK = .//a[not(contains(@class, 'hidden'))][not(contains(@class, 'progress'))]¶
- RESULT_PROGRESS = .//a[contains(@class, 'progress')]¶
- SECTION_EXPANDER = ./td/span[contains(@class, 'expander')]¶
- __getitem__(name)¶
Return the child name
- __contains__(name)¶
Check child with name is exist in this node
- property browser¶
Return the browser
- id()¶
Return the id of this node
- is_root()¶
Return whether this node is root node
- is_child_of(node)¶
Return whether this node is a child of node
- name()¶
Return the name of this node, the node name is the text content of the first column.
- property result¶
Return the result column content
- property checkbox¶
return the checkbox element of this row if exist
- property result_link¶
Return the result link element of this row
- property progress¶
Return the progress element of this row if exist
- property expander¶
Return the expander element of this row if exist
- property expanded¶
Return True in case this row is expanded
- expand()¶
Expand this node
- is_section()¶
Return whether this row is a section, a row is a section if has expander.
- add_child(node)¶
Add a child node to this node
- read()¶
Read this node and sub nodes if exist
- select(value)¶
Select or un-select if checkbox is in the row, the checkbox exist only for repository row.
- fill(values)¶
Fill the node and sub nodes with values
- class airgun.views.sync_status.SyncStatusTable(parent, locator, column_widgets=None, assoc_column=None, rows_ignore_top=None, rows_ignore_bottom=None, top_ignore_fill=False, bottom_ignore_fill=False, logger=None)¶
This is a representation of a tree view with columns realized as a table. The first column is the tree expander where root item is the product. Each item and sub items located in their own table row.
Tree representation of the first column example:
- Red Hat Enterprise Linux Server
- 7Server
- x86_64
- [ ] Red Hat Enterprise Linux 7 Server RPMs x86_64
7Server
Red Hat Satellite Tools 6.2 for RHEL 7 Server RPMs x86_64
- zoo custom product
[ ] zoo custom repo
- an other custom repo
[ ] an other custom repo
- nodes()¶
Return the tree nodes representation of this table
- read()¶
Return a dict with nodes properties
- fill(values)¶
Fill the node and sub nodes, mainly select or un-select the repositories.
- get_node_from_path(node_path)¶
Return a node from it’s path representation
- Parameters
node_path – a list or tuple representing the path to a node, for example: (‘product1’, ‘repo1’)
- Returns
SyncStatusTableNode