diff options
| author | Abhilash Raj | 2014-09-05 10:45:50 +0530 |
|---|---|---|
| committer | Abhilash Raj | 2014-09-05 10:45:50 +0530 |
| commit | 1341b9f00d56c806b78298f3dad7350d8fa28c39 (patch) | |
| tree | 1e4385f5687535cce09dd53191e615426c1d319e /src/mailman/model/bounce.py | |
| parent | d95e634aa7bcf8018797923c1d90fc2eadff8ce9 (diff) | |
| download | mailman-1341b9f00d56c806b78298f3dad7350d8fa28c39.tar.gz mailman-1341b9f00d56c806b78298f3dad7350d8fa28c39.tar.zst mailman-1341b9f00d56c806b78298f3dad7350d8fa28c39.zip | |
Diffstat (limited to 'src/mailman/model/bounce.py')
| -rw-r--r-- | src/mailman/model/bounce.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mailman/model/bounce.py b/src/mailman/model/bounce.py index e852daa1d..a40178837 100644 --- a/src/mailman/model/bounce.py +++ b/src/mailman/model/bounce.py @@ -26,9 +26,9 @@ __all__ = [ ] -from storm.locals import Bool, Int, DateTime, Unicode -from zope.interface import implementer + from sqlalchemy import Column, Integer, Unicode, DateTime, Boolean +from zope.interface import implementer from mailman.database.model import Model from mailman.database.transaction import dbconnection @@ -43,13 +43,15 @@ from mailman.utilities.datetime import now class BounceEvent(Model): """See `IBounceEvent`.""" + __tablename__ = 'bounceevent' + id = Unicode(Integer, primary_key=True) list_id = Column(Unicode) email = Column(Unicode) - timestamp = DateTime() + timestamp = Column(DateTime) message_id = Column(Unicode) - context = Enum(BounceContext) - processed = COlumn(Boolean) + context = Column(Enum(enum=BounceContext)) + processed = Column(Boolean) def __init__(self, list_id, email, msg, context=None): self.list_id = list_id |
