diff options
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. |
