All pastes #2071739 Raw Edit

Untitled

public text v1 · immutable
#2071739 ·published 2011-05-29 22:19 UTC
rendered paste body
>>> schema.SpotType("test")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 4, in __init__
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/state.py", line 94, in initialize_instance
    fn(self, instance, args, kwargs)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 2388, in _event_on_init
    instrumenting_mapper.compile()
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 795, in compile
    mapper._compile_failed)
sqlalchemy.exc.InvalidRequestError: One or more mappers failed to compile. Exception was probably suppressed within a hasattr() call. Message was: __init__() takes at least 3 arguments (1 given)