diff options
| author | Barry Warsaw | 2016-03-24 21:49:37 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-03-24 21:49:37 -0400 |
| commit | e1876e6f699ab4b212d689786297f6f1e70c1551 (patch) | |
| tree | 6f3b96a233602451cc6eaf450032a56a3344c85c /src/mailman/database/types.py | |
| parent | 5404f98d90410d69a744d9c0fb71a8a31f3a4a88 (diff) | |
| download | mailman-e1876e6f699ab4b212d689786297f6f1e70c1551.tar.gz mailman-e1876e6f699ab4b212d689786297f6f1e70c1551.tar.zst mailman-e1876e6f699ab4b212d689786297f6f1e70c1551.zip | |
Diffstat (limited to 'src/mailman/database/types.py')
| -rw-r--r-- | src/mailman/database/types.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mailman/database/types.py b/src/mailman/database/types.py index 66fbbf9e9..343ee0461 100644 --- a/src/mailman/database/types.py +++ b/src/mailman/database/types.py @@ -17,20 +17,15 @@ """Database type conversions.""" -__all__ = [ - 'Enum', - 'UUID', - ] - - import uuid +from mailman import public from sqlalchemy import Integer from sqlalchemy.dialects import postgresql from sqlalchemy.types import TypeDecorator, CHAR - +@public class Enum(TypeDecorator): """Handle Python 3.4 style enums. @@ -54,7 +49,7 @@ class Enum(TypeDecorator): return self.enum(value) - +@public class UUID(TypeDecorator): """Platform-independent GUID type. |
