~barry/mailman/lp1423756

« back to all changes in this revision

Viewing changes to src/mailman/model/message.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 messages."""
19
19
 
20
 
from __future__ import absolute_import, print_function, unicode_literals
21
 
 
22
 
__metaclass__ = type
23
20
__all__ = [
24
21
    'Message',
25
22
    ]
26
23
 
27
 
from sqlalchemy import Column, Integer, LargeBinary, Unicode
28
 
from zope.interface import implementer
29
24
 
30
25
from mailman.database.model import Model
31
26
from mailman.database.transaction import dbconnection
32
27
from mailman.interfaces.messages import IMessage
 
28
from sqlalchemy import Column, Integer, Unicode
 
29
from zope.interface import implementer
33
30
 
34
31
 
35
32
 
42
39
    id = Column(Integer, primary_key=True)
43
40
    # This is a Messge-ID field representation, not a database row id.
44
41
    message_id = Column(Unicode)
45
 
    message_id_hash = Column(LargeBinary)
46
 
    path = Column(LargeBinary)
 
42
    message_id_hash = Column(Unicode)
 
43
    path = Column(Unicode)
47
44
 
48
45
    @dbconnection
49
46
    def __init__(self, store, message_id, message_id_hash, path):