File: //lib/python2.7/site-packages/leapp/topics/__init__.pyc
�
g��fc @ s� d d l Z d d l m Z d d l m Z m Z d e f d � � YZ d e e � f d � � YZ d e f d � � YZ d
e f d � � YZ
d e f d
� � YZ d � Z d S( i����N( t InvalidTopicDefinitionError( t get_flattened_subclassest with_metaclasst TopicMetac B s e Z d Z d � Z RS( s3
Meta class for the registration of topics
c C sO t t | � j | | | | � } t t j | j | | � t | d d � | S( Nt messages( ( t superR t __new__t setattrt syst modulest
__module__( t mcst namet basest attrst klass( ( s9 /usr/lib/python2.7/site-packages/leapp/topics/__init__.pyR s !( t __name__R
t __doc__R ( ( ( s9 /usr/lib/python2.7/site-packages/leapp/topics/__init__.pyR s t Topicc B s) e Z d Z d Z d Z e d � � Z RS( s5 Base class for all :ref:`topics <terminology:topic>`c C s8 i | j d 6| j d 6g | j D] } | j ^ q! d 6S( Nt
class_nameR R ( R R R ( t clst m( ( s9 /usr/lib/python2.7/site-packages/leapp/topics/__init__.pyt serialize s
N( ( R R
R t NoneR R t classmethodR ( ( ( s9 /usr/lib/python2.7/site-packages/leapp/topics/__init__.pyR s t DialogTopicc B s e Z d Z d Z RS( sN
A special topic for dialogs shown to user during workflow execution.
t dialog_topic( R R
R R ( ( ( s9 /usr/lib/python2.7/site-packages/leapp/topics/__init__.pyR ( s t
ErrorTopicc B s e Z d Z d Z RS( s:
A special topic for errors during the execution.
t errors( R R
R R ( ( ( s9 /usr/lib/python2.7/site-packages/leapp/topics/__init__.pyR / s t ReportTopicc B s e Z d Z d Z RS( s1
A special topic for reporting purposes.
t report_topic( R R
R R ( ( ( s9 /usr/lib/python2.7/site-packages/leapp/topics/__init__.pyR 6 s c C s[ t t � } xH d � | D� D]6 } t | d d � } | s t d j | � � � q q W| S( sP
:return: All registered :py:class:`leapp.topics.Topic` derived classes
c s s | ] } | Vq d S( N( ( t .0t topic( ( s9 /usr/lib/python2.7/site-packages/leapp/topics/__init__.pys <genexpr>B s R s* Topic {} does not contain a name attributeN( R R t getattrR R t format( t topicsR t
topic_name( ( s9 /usr/lib/python2.7/site-packages/leapp/topics/__init__.pyt
get_topics= s (
R t leapp.exceptionsR t leapp.utils.metaR R t typeR R R R R R% ( ( ( s9 /usr/lib/python2.7/site-packages/leapp/topics/__init__.pyt <module> s