leapp.topics package

Module contents

class leapp.topics.DialogTopic

Bases: Topic

A special topic for dialogs shown to user during workflow execution.

messages = (<class 'leapp.models.DialogModel'>,)

Tuple of leapp.models.Model derived classes that are using this topic are automatically added to this variable.

name = 'dialog_topic'

Name of the topic in snake case

class leapp.topics.ErrorTopic

Bases: Topic

A special topic for errors during the execution.

messages = (<class 'leapp.models.ErrorModel'>,)

Tuple of leapp.models.Model derived classes that are using this topic are automatically added to this variable.

name = 'errors'

Name of the topic in snake case

class leapp.topics.ReportTopic

Bases: Topic

A special topic for reporting purposes.

messages = (<class 'leapp.reporting.Report'>,)

Tuple of leapp.models.Model derived classes that are using this topic are automatically added to this variable.

name = 'report_topic'

Name of the topic in snake case

class leapp.topics.Topic

Bases: with_meta_base_object_TopicMeta

Base class for all topics

messages = ()

Tuple of leapp.models.Model derived classes that are using this topic are automatically added to this variable.

name = None

Name of the topic in snake case

classmethod serialize()
class leapp.topics.TopicMeta(name, bases, attrs)

Bases: type

Meta class for the registration of topics

leapp.topics.get_topics()
Returns:

All registered leapp.topics.Topic derived classes