aeidon.RevertableAction

Source: aeidon/revertable.py

Anchestors: builtins.object

class aeidon.RevertableAction

Action that can be reverted, i.e. undone and redone.

RevertableAction.description

Short one line description

RevertableAction.docs

Sequence of aeidon.documents items affected

RevertableAction.register

aeidon.registers item for action taken

RevertableAction.revert_args

Arguments passed to the revert method

RevertableAction.revert_function

Method called to revert this action

RevertableAction.revert_kwargs

Keyword arguments passed to the revert method

Methods

RevertableAction.__init__(**kwargs)

Initialize a RevertableAction instance.

kwargs can contain any of the names of public instance variables, of which description, docs, register and revert_function are required to be set eventually, either with kwargs or direct assignment later.

RevertableAction.revert()

Call the reversion function.