transport_data.cli.interactive.DFDStructureURN

class transport_data.cli.interactive.DFDStructureURN(app)[source]

Bases: View

Set BaseDataflowDefinition.structure based on the URN of a DSD.

__init__(app) None

Create and display the view.

Subclasses may override this method, but must call super().__init__(app).

Methods

__init__(app)

Create and display the view.

accept(text)

Handle user input.

Attributes

default

Default input.

prompt

Prompt text to be displayed in the input text area.

text

app

Reference to the Editor.

current

Reference to the EditorState.

accept(text)

Handle user input.

Subclasses must implement this method. An implementation may return a View subclass (not instance) to indicate the next View to be displayed; if it returns None, then NEXT_VIEW is used to identify the next View.

app: Editor

Reference to the Editor.

current: EditorState

Reference to the EditorState.

default: str = ''

Default input.

prompt: str = 'Enter the URN:'

Prompt text to be displayed in the input text area.

property text