> Please provide a simple, small example of your problem :-)
>
> Also, is there a reason the order of column creation matters?
>
> Chris
>
> --
> Simplistix - Content Management, Batch Processing & Python Consulting
>             -http://www.simplistix.co.uk

class Foo(object):
  id = Column(Integer, primary_key=True)
  foo = Column(Integer, nullable=True)

class Bar(Base, object):
  __tablename__ = 'bar'

then on creation of bar, foo might be first.  I believe this is
because DeclarativeBase adds new documns with dir() and that returns
stuff in an arbitrary order.

I'm trying to use __metaclass__ to make a metaclass for Foo where it
retains order of the dictionary, but I am getting stumped.

Thanks,
Mike

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to