~barry/mailman/lp1423756

« back to all changes in this revision

Viewing changes to src/mailman/model/address.py

  • Committer: Barry Warsaw
  • Date: 2015-01-05 01:20:33 UTC
  • mfrom: (7264.4.66 py3)
  • Revision ID: barry@list.org-20150105012033-zdrw9c2odhpf22fz
Merge the Python 3 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Model for addresses."""
19
19
 
20
 
from __future__ import absolute_import, print_function, unicode_literals
21
 
 
22
 
__metaclass__ = type
23
20
__all__ = [
24
21
    'Address',
25
22
    ]
26
23
 
27
24
 
28
25
from email.utils import formataddr
 
26
from mailman.database.model import Model
 
27
from mailman.interfaces.address import (
 
28
    AddressVerificationEvent, IAddress, IEmailValidator)
 
29
from mailman.utilities.datetime import now
29
30
from sqlalchemy import Column, DateTime, ForeignKey, Integer, Unicode
30
31
from sqlalchemy.orm import relationship, backref
31
32
from zope.component import getUtility
32
33
from zope.event import notify
33
34
from zope.interface import implementer
34
35
 
35
 
from mailman.database.model import Model
36
 
from mailman.interfaces.address import (
37
 
    AddressVerificationEvent, IAddress, IEmailValidator)
38
 
from mailman.utilities.datetime import now
39
 
 
40
36
 
41
37
 
42
38
@implementer(IAddress)