Changeset 7473


Ignore:
Timestamp:
15 Jan 2012, 00:38:50 (13 years ago)
Author:
uli
Message:

Move IMailService to interfaces module.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py

    r7470 r7473  
    915915        the document.
    916916        """
     917
     918class IMailService(Interface):
     919    """A mail service.
     920    """
     921
     922    def __call__():
     923        """Get the default mail delivery.
     924        """
  • main/waeup.sirp/trunk/src/waeup/sirp/smtp.py

    r7472 r7473  
    5757from zope.interface import Interface
    5858from zope.sendmail.interfaces import IMailDelivery
    59 
    60 
    61 # XXX: Move to interfaces.py
    62 class IMailService(Interface):
    63 
    64     def __call__():
    65         """Get the default mail delivery.
    66         """
     59from waeup.sirp.interfaces import IMailService
    6760
    6861class DefaultMailService(grok.GlobalUtility):
  • main/waeup.sirp/trunk/src/waeup/sirp/tests/test_smtp.py

    r7472 r7473  
    3232from zope.sendmail.interfaces import IMailDelivery
    3333from waeup.sirp.app import University
     34from waeup.sirp.interfaces import IMailService
    3435from waeup.sirp.smtp import (
    3536    encode_header_item, encode_address, encode_body, FakeSMTPDelivery,
    36     IMailService, send_mail)
     37    send_mail)
    3738from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase
    3839
Note: See TracChangeset for help on using the changeset viewer.