ó
TR¹Nc           @   s    d  Z  d e f d „  ƒ  YZ d S(   s   Base email backend class.t   BaseEmailBackendc           B   s5   e  Z d  Z e d „ Z d „  Z d „  Z d „  Z RS(   sp   
    Base class for email backend implementations.

    Subclasses must at least overwrite send_messages().
    c         K   s   | |  _  d  S(   N(   t   fail_silently(   t   selfR   t   kwargs(    (    sK   /home/panlixing/Python_Projects/gaeseries/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   (    (    sK   /home/panlixing/Python_Projects/gaeseries/django/core/mail/backends/base.pyt   open   s    c         C   s   d S(   s   Close a network connection.N(    (   R   (    (    sK   /home/panlixing/Python_Projects/gaeseries/django/core/mail/backends/base.pyt   close   s    c         C   s
   t  ‚ d S(   so   
        Sends one or more EmailMessage objects and returns the number of email
        messages sent.
        N(   t   NotImplementedError(   R   t   email_messages(    (    sK   /home/panlixing/Python_Projects/gaeseries/django/core/mail/backends/base.pyt   send_messages"   s    (   t   __name__t
   __module__t   __doc__t   FalseR   R   R   R	   (    (    (    sK   /home/panlixing/Python_Projects/gaeseries/django/core/mail/backends/base.pyR       s
   		N(   R   t   objectR    (    (    (    sK   /home/panlixing/Python_Projects/gaeseries/django/core/mail/backends/base.pyt   <module>   s   