summaryrefslogtreecommitdiff
path: root/src/mailman/model/uid.py
diff options
context:
space:
mode:
authorAbhilash Raj2014-09-05 10:45:50 +0530
committerAbhilash Raj2014-09-05 10:45:50 +0530
commit1341b9f00d56c806b78298f3dad7350d8fa28c39 (patch)
tree1e4385f5687535cce09dd53191e615426c1d319e /src/mailman/model/uid.py
parentd95e634aa7bcf8018797923c1d90fc2eadff8ce9 (diff)
downloadmailman-1341b9f00d56c806b78298f3dad7350d8fa28c39.tar.gz
mailman-1341b9f00d56c806b78298f3dad7350d8fa28c39.tar.zst
mailman-1341b9f00d56c806b78298f3dad7350d8fa28c39.zip
Diffstat (limited to 'src/mailman/model/uid.py')
-rw-r--r--src/mailman/model/uid.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mailman/model/uid.py b/src/mailman/model/uid.py
index c60d0f1eb..cb248b1fa 100644
--- a/src/mailman/model/uid.py
+++ b/src/mailman/model/uid.py
@@ -25,10 +25,11 @@ __all__ = [
]
-from storm.locals import Int
-from storm.properties import UUID
+
+from sqlalchemy import Column, Integer
from mailman.database.model import Model
+from mailman.database.types import UUID
from mailman.database.transaction import dbconnection
@@ -45,8 +46,11 @@ class UID(Model):
There is no interface for this class, because it's purely an internal
implementation detail.
"""
- id = Int(primary=True)
- uid = UUID()
+
+ __tablename__ = 'uid'
+
+ id = Column(Integer, primary_key=True)
+ uid = Column(UUID)
@dbconnection
def __init__(self, store, uid):