diff options
| author | Barry Warsaw | 2011-08-30 19:11:19 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-08-30 19:11:19 -0400 |
| commit | 0664713d4f7e30b0b56b1ce00ccf3367f416c901 (patch) | |
| tree | 7bc824930335b25aa5e13346992b4754f5ca1e64 /src/mailman/model/uid.py | |
| parent | 043562c695387a12e655997abf41cef77cb3d3a4 (diff) | |
| parent | 5a38df15cd6ca0619e0e987624457e0453425dce (diff) | |
| download | mailman-0664713d4f7e30b0b56b1ce00ccf3367f416c901.tar.gz mailman-0664713d4f7e30b0b56b1ce00ccf3367f416c901.tar.zst mailman-0664713d4f7e30b0b56b1ce00ccf3367f416c901.zip | |
Diffstat (limited to 'src/mailman/model/uid.py')
| -rw-r--r-- | src/mailman/model/uid.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mailman/model/uid.py b/src/mailman/model/uid.py index 5b8f027d6..df99f497a 100644 --- a/src/mailman/model/uid.py +++ b/src/mailman/model/uid.py @@ -25,7 +25,8 @@ __all__ = [ ] -from storm.locals import Int, Unicode +from storm.locals import Int +from storm.properties import UUID from mailman.config import config from mailman.database.model import Model @@ -43,12 +44,9 @@ class UID(Model): There is no interface for this class, because it's purely an internal implementation detail. - - Since it's a hash, it's overwhelmingly more common for a uid to be - unique. """ id = Int(primary=True) - uid = Unicode() + uid = UUID() def __init__(self, uid): super(UID, self).__init__() |
