Skip to content

Commit

Permalink
a small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanm committed Oct 10, 2012
1 parent dd7ec58 commit f21534b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 1 addition & 4 deletions spire/schema/__init__.py
Expand Up @@ -4,9 +4,6 @@
from sqlalchemy.orm.exc import MultipleResultsFound, NoResultFound from sqlalchemy.orm.exc import MultipleResultsFound, NoResultFound
from sqlalchemy.schema import PrimaryKeyConstraint, UniqueConstraint from sqlalchemy.schema import PrimaryKeyConstraint, UniqueConstraint


from spire.schema.fields import (Array, Boolean, Date, DateTime, Decimal, Email, from spire.schema.fields import *
Enumeration, Float, ForeignKey, Hstore, Identifier, Integer, Serialized,
Text, Time, Token, UUID)

from spire.schema.model import * from spire.schema.model import *
from spire.schema.schema import * from spire.schema.schema import *
7 changes: 7 additions & 0 deletions spire/schema/fields.py
Expand Up @@ -8,6 +8,13 @@


from spire.util import uniqid from spire.util import uniqid


__all__ = ('Array', 'ArrayType', 'Boolean', 'BooleanType', 'Date', 'DateType',
'DateTime', 'DateTimeType', 'Decimal', 'DecimalType', 'Email', 'EmailType',
'Enumeration', 'EnumerationType', 'Float', 'FloatType', 'ForeignKey',
'Hstore', 'HstoreType', 'Identifier', 'Integer', 'IntegerType', 'Serialized',
'SerializedType', 'Text', 'TextType', 'Time', 'TimeType', 'Token', 'TokenType',
'UUID', 'UUIDType')

class TypeDecorator(TypeDecorator): class TypeDecorator(TypeDecorator):
def __repr__(self): def __repr__(self):
return '%s()' % type(self).__name__ return '%s()' % type(self).__name__
Expand Down

0 comments on commit f21534b

Please sign in to comment.