ó
Ì	g]c           @   sb   d  Z  d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d	 S(
   sd   Base classes that are extended by low level AMQP frames and higher level
AMQP classes and methods.

t
   AMQPObjectc           B   s,   e  Z d  Z d Z d Z d „  Z d „  Z RS(   s]   Base object that is extended by AMQP low level frames and AMQP classes
    and methods.

    R    c         C   s†   t  ƒ  } xR |  j j ƒ  D]A \ } } t |  j | d  ƒ | k r | j d | | f ƒ q q W| so d |  j Sd |  j t | ƒ f S(   Ns   %s=%ss   <%s>s   <%s(%s)>(	   t   listt   __dict__t   itemst   getattrt	   __class__t   Nonet   appendt   NAMEt   sorted(   t   selfR   t   keyt   value(    (    s5   /srv/kernel/kteam-tools/dashboard/pika/amqp_object.pyt   __repr__   s    	c         C   s$   | d  k	 r |  j | j k St Sd  S(   N(   R   R   t   False(   R
   t   other(    (    s5   /srv/kernel/kteam-tools/dashboard/pika/amqp_object.pyt   __eq__   s    N(   t   __name__t
   __module__t   __doc__R   R   t   INDEXR   R   (    (    (    s5   /srv/kernel/kteam-tools/dashboard/pika/amqp_object.pyR       s
   		t   Classc           B   s   e  Z d  Z d Z RS(   s   Is extended by AMQP classess   Unextended Class(   R   R   R   R   (    (    (    s5   /srv/kernel/kteam-tools/dashboard/pika/amqp_object.pyR      s   t   Methodc           B   s5   e  Z d  Z d Z e Z d „  Z d „  Z d „  Z RS(   s   Is extended by AMQP methodss   Unextended Methodc         C   s   | |  _  | |  _ d S(   sí   If the method is a content frame, set the properties and body to
        be carried as attributes of the class.

        :param pika.frame.Properties properties: AMQP Basic Properties
        :param bytes body: The message body

        N(   t   _propertiest   _body(   R
   t
   propertiest   body(    (    s5   /srv/kernel/kteam-tools/dashboard/pika/amqp_object.pyt   _set_content)   s    	c         C   s   |  j  S(   sW   Return the properties if they are set.

        :rtype: pika.frame.Properties

        (   R   (   R
   (    (    s5   /srv/kernel/kteam-tools/dashboard/pika/amqp_object.pyt   get_properties4   s    c         C   s   |  j  S(   sL   Return the message body if it is set.

        :rtype: str|unicode

        (   R   (   R
   (    (    s5   /srv/kernel/kteam-tools/dashboard/pika/amqp_object.pyt   get_body<   s    (	   R   R   R   R   R   t   synchronousR   R   R   (    (    (    s5   /srv/kernel/kteam-tools/dashboard/pika/amqp_object.pyR   $   s   		t
   Propertiesc           B   s   e  Z d  Z d Z RS(   s=   Class to encompass message properties (AMQP Basic.Properties)s   Unextended Properties(   R   R   R   R   (    (    (    s5   /srv/kernel/kteam-tools/dashboard/pika/amqp_object.pyR   E   s   N(   R   t   objectR    R   R   R   (    (    (    s5   /srv/kernel/kteam-tools/dashboard/pika/amqp_object.pyt   <module>   s   !