ó
®â0_c           @  s@   d  d l  m Z d  d l m Z e d e f d „  ƒ  Yƒ Z d S(   iÿÿÿÿ(   t   unicode_literals(   t   python_2_unicode_compatiblet   RequestSitec           B  s8   e  Z d  Z d „  Z d „  Z e e d „ Z d „  Z RS(   u  
    A class that shares the primary interface of Site (i.e., it has
    ``domain`` and ``name`` attributes) but gets its data from a Django
    HttpRequest object rather than from a database.

    The save() and delete() methods raise NotImplementedError.
    c         C  s   | j  ƒ  |  _ |  _ d  S(   N(   t   get_hostt   domaint   name(   t   selft   request(    (    s?   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/sites/requests.pyt   __init__   s    c         C  s   |  j  S(   N(   R   (   R   (    (    s?   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/sites/requests.pyt   __str__   s    c         C  s   t  d ƒ ‚ d  S(   Nu   RequestSite cannot be saved.(   t   NotImplementedError(   R   t   force_insertt   force_update(    (    s?   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/sites/requests.pyt   save   s    c         C  s   t  d ƒ ‚ d  S(   Nu   RequestSite cannot be deleted.(   R
   (   R   (    (    s?   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/sites/requests.pyt   delete   s    (   t   __name__t
   __module__t   __doc__R   R	   t   FalseR   R   (    (    (    s?   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/sites/requests.pyR      s
   		N(   t
   __future__R    t   django.utils.encodingR   t   objectR   (    (    (    s?   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/sites/requests.pyt   <module>   s   