scope_harness.Department

class scope_harness.Department

Represents a read-only view of a department returned by a scope. Use id, label, all_label properties to inspect it, and children property or child method to inspect child departments (instances of ChildDepartment). This class supports __getitem__ call, which acts as a shortcut for child(index) method, and responds to __len__ call, so python’s len(department) may be used instead of department.size

all_label
child((Department)arg1, (int)arg2) → ChildDepartment :

Get child department by its index (a number)

children
id
is_hidden
is_root
label
parent_id
parent_label
size