ó
¼S]c           @@  sh   d  Z  d d l m Z d d l Z d d l m Z m Z d d l m Z d e e ƒ f d „  ƒ  YZ	 d S(   s   The Status type.i    (   t   absolute_importN(   t   ABCMetat   abstractmethod(   t   with_metaclasst   Statusc           B@  sP   e  Z d  Z d „  Z e e d „  ƒ ƒ Z e d „  ƒ Z e e d „  ƒ ƒ Z RS(   sÈ   Class describing a failure or success status, with logs.

    Values of this class evaluate to True in a boolean context
    if the status is successful.

    Values of this class are immutable.

    c         C@  s   d S(   s   Construct an abstract Status.N(    (   t   self(    (    s6   lib/python2.7/site-packages/anaconda_project/status.pyt   __init__   t    c         C@  s   d S(   s-   Get a one-line-ish description of the status.N(    (   R   (    (    s6   lib/python2.7/site-packages/anaconda_project/status.pyt   status_description   s    c         C@  s   t  j d t ƒ d S(   s    Get logs relevant to the status.s6   Provide a Frontend object instead of using status.logs(    (   t   warningst   warnt   DeprecationWarning(   R   (    (    s6   lib/python2.7/site-packages/anaconda_project/status.pyt   logs%   s    c         C@  s   d S(   s@  Get error logs relevant to the status.

        A rule of thumb for this field is that anything in here should also have been
        logged to a ``Frontend`` instance, so this field is kind of just a cache
        of error messages generated by a particular operation for the convenience
        of the caller.
        N(    (   R   (    (    s6   lib/python2.7/site-packages/anaconda_project/status.pyt   errors+   s    
(	   t   __name__t
   __module__t   __doc__R   t   propertyR   R   R   R   (    (    (    s6   lib/python2.7/site-packages/anaconda_project/status.pyR      s   	(
   R   t
   __future__R    R	   t   abcR   R   t#   anaconda_project.internal.metaclassR   R   (    (    (    s6   lib/python2.7/site-packages/anaconda_project/status.pyt   <module>   s
   