From e1876e6f699ab4b212d689786297f6f1e70c1551 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 24 Mar 2016 21:49:37 -0400 Subject: Clean up the database directory. --- src/mailman/database/types.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/mailman/database/types.py') 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. -- cgit v1.2.3-70-g09d2