~rashi007/mailman/docsfix

« back to all changes in this revision

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

  • Committer: Barry Warsaw
  • Date: 2014-12-02 03:02:08 UTC
  • mto: (7264.4.22 py3)
  • mto: This revision was merged to the branch mainline in revision 7285.
  • Revision ID: barry@list.org-20141202030208-45txxq70yn98uz9m
test_requests succeeds now, after changing some LargeBinary columns into
Unicode columns.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
from mailman.interfaces.pending import IPendable, IPendings
34
34
from mailman.interfaces.requests import IListRequests, RequestType
35
35
from six.moves.cPickle import dumps, loads
36
 
from sqlalchemy import Column, ForeignKey, Integer, LargeBinary, Unicode
 
36
from sqlalchemy import Column, ForeignKey, Integer, Unicode
37
37
from sqlalchemy.orm import relationship
38
38
from zope.component import getUtility
39
39
from zope.interface import implementer
155
155
    id = Column(Integer, primary_key=True)
156
156
    key = Column(Unicode)
157
157
    request_type = Column(Enum(RequestType))
158
 
    data_hash = Column(LargeBinary)
 
158
    data_hash = Column(Unicode)
159
159
 
160
160
    mailing_list_id = Column(Integer, ForeignKey('mailinglist.id'), index=True)
161
161
    mailing_list = relationship('MailingList')