transport_data.cli.interactive.MA_Save

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

Bases: View

Save a completed MaintainableArtefact.

__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 = 'Save? [y/n]'

Prompt text to be displayed in the input text area.

property text