Rename CablePath.is_connected to is_active

This commit is contained in:
Jeremy Stretch
2020-10-05 11:13:33 -04:00
parent 13db22d392
commit 3d34f1cdcb
9 changed files with 65 additions and 65 deletions

View File

@@ -24,14 +24,14 @@ def trace_path(node):
destination = None
path = []
position_stack = []
is_connected = True
is_active = True
if node is None or node.cable is None:
return [], None, False
while node.cable is not None:
if node.cable.status != CableStatusChoices.STATUS_CONNECTED:
is_connected = False
is_active = False
# Follow the cable to its far-end termination
path.append(object_to_path_node(node.cable))
@@ -65,6 +65,6 @@ def trace_path(node):
break
if destination is None:
is_connected = False
is_active = False
return path, destination, is_connected
return path, destination, is_active