airgun.views.sync_status¶
Module Contents¶
-
exception
airgun.views.sync_status.ParentNodeNotFoundError¶ Bases:
ExceptionRaise when not able to find a parent for a node item
-
exception
airgun.views.sync_status.ReservedToSectionOnlyError¶ Bases:
ExceptionMainly raised when adding a child to a non section node
-
exception
airgun.views.sync_status.NodeNotFoundError¶ Bases:
ExceptionRaise when a node was not found
-
class
airgun.views.sync_status.SyncStatusTableNode(parent=None, row=None)¶ Bases:
objectTable 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')]¶
-
browser¶ “Return the browser
-
result¶ Return the result column content
-
checkbox¶ return the checkbox element of this row if exist
-
result_link¶ Return the result link element of this row
-
progress¶ Return the progress element of this row if exist
-
expander¶ Return the expander element of this row if exist
-
expanded¶ Return True in case this row is expanded
-
__getitem__(self, name)¶ “Return the child name
-
__contains__(self, name)¶ “Check child with name is exist in this node
-
id(self)¶ Return the id of this node
-
is_root(self)¶ Return whether this node is root node
-
is_child_of(self, node)¶ Return whether this node is a child of node
-
name(self)¶ Return the name of this node, the node name is the text content of the first column.
-
expand(self)¶ Expand this node
-
is_section(self)¶ Return whether this row is a section, a row is a section if has expander.
-
add_child(self, node)¶ Add a child node to this node
-
read(self)¶ Read this node and sub nodes if exist
-
select(self, value)¶ Select or un-select if checkbox is in the row, the checkbox exist only for repository row.
-
fill(self, values)¶ Fill the node and sub nodes with values
-
-
class
airgun.views.sync_status.SyncStatusTable¶ Bases:
airgun.widgets.SatTableThis 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(self)¶ Return the tree nodes representation of this table
-
read(self)¶ Return a dict with nodes properties
-
fill(self, values)¶ Fill the node and sub nodes, mainly select or un-select the repositories.
-
get_node_from_path(self, 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