Skip to content

Instantly share code, notes, and snippets.

@skyler
Created October 2, 2013 18:11
Show Gist options
  • Save skyler/6798027 to your computer and use it in GitHub Desktop.
Save skyler/6798027 to your computer and use it in GitHub Desktop.
class EmailAddress(UserDefinedType):
"""Represent the custom email_address DOMAIN."""
def get_col_spec(self):
return 'email_address'
@property
def python_type(self):
return basestring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment