diff options
| author | Abhilash Raj | 2014-09-04 06:29:59 +0530 |
|---|---|---|
| committer | Abhilash Raj | 2014-09-04 06:29:59 +0530 |
| commit | a61f117d8854193ba84fad7955574207dc075e77 (patch) | |
| tree | 8e6ac74e354c70a952004c119c4b5f5710c181a7 /src/mailman/model/bounce.py | |
| parent | a780bf91620d157602489cb64c4f6170b1fac532 (diff) | |
| download | mailman-a61f117d8854193ba84fad7955574207dc075e77.tar.gz mailman-a61f117d8854193ba84fad7955574207dc075e77.tar.zst mailman-a61f117d8854193ba84fad7955574207dc075e77.zip | |
Diffstat (limited to 'src/mailman/model/bounce.py')
| -rw-r--r-- | src/mailman/model/bounce.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mailman/model/bounce.py b/src/mailman/model/bounce.py index 134c51263..e852daa1d 100644 --- a/src/mailman/model/bounce.py +++ b/src/mailman/model/bounce.py @@ -28,6 +28,7 @@ __all__ = [ from storm.locals import Bool, Int, DateTime, Unicode from zope.interface import implementer +from sqlalchemy import Column, Integer, Unicode, DateTime, Boolean from mailman.database.model import Model from mailman.database.transaction import dbconnection @@ -42,13 +43,13 @@ from mailman.utilities.datetime import now class BounceEvent(Model): """See `IBounceEvent`.""" - id = Int(primary=True) - list_id = Unicode() - email = Unicode() + id = Unicode(Integer, primary_key=True) + list_id = Column(Unicode) + email = Column(Unicode) timestamp = DateTime() - message_id = Unicode() + message_id = Column(Unicode) context = Enum(BounceContext) - processed = Bool() + processed = COlumn(Boolean) def __init__(self, list_id, email, msg, context=None): self.list_id = list_id |
