ó
i4Vdc           @   s    d  Z  d e f d „  ƒ  YZ d S(   s   Base email backend class.t   BaseEmailBackendc           B   sG   e  Z d  Z e d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   s1  
    Base class for email backend implementations.

    Subclasses must at least overwrite send_messages().

   open() and close() can be called indirectly by using a backend object as a
   context manager:

       with backend as connection:
           # do something with connection
           pass
    c         K   s   | |  _  d  S(   N(   t   fail_silently(   t   selfR   t   kwargs(    (    sl   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/core/mail/backends/base.pyt   __init__   s    c         C   s   d S(   s"  Open a network connection.

        This method can be overwritten by backend implementations to
        open a network connection.

        It's up to the backend implementation to track the status of
        a network connection if it's needed by the backend.

        This method can be called by applications to force a single
        network connection to be used when sending mails. See the
        send_messages() method of the SMTP backend for a reference
        implementation.

        The default implementation does nothing.
        N(    (   R   (    (    sl   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/core/mail/backends/base.pyt   open   s    c         C   s   d S(   s   Close a network connection.N(    (   R   (    (    sl   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/core/mail/backends/base.pyt   close&   s    c         C   s   |  j  ƒ  |  S(   N(   R   (   R   (    (    sl   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/core/mail/backends/base.pyt	   __enter__*   s    
c         C   s   |  j  ƒ  d  S(   N(   R   (   R   t   exc_typet	   exc_valuet	   traceback(    (    sl   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/core/mail/backends/base.pyt   __exit__.   s    c         C   s   t  d ƒ ‚ d S(   so   
        Sends one or more EmailMessage objects and returns the number of email
        messages sent.
        sC   subclasses of BaseEmailBackend must override send_messages() methodN(   t   NotImplementedError(   R   t   email_messages(    (    sl   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/core/mail/backends/base.pyt   send_messages1   s    (
   t   __name__t
   __module__t   __doc__t   FalseR   R   R   R   R   R   (    (    (    sl   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/core/mail/backends/base.pyR       s   				N(   R   t   objectR    (    (    (    sl   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/core/mail/backends/base.pyt   <module>   s   