On 15 Nov, 18:57, Michael Bayer <[email protected]> wrote:
> First off, I can't reproduce your issue:
Found the culprit: I had a stray 0.5.8 directory lying around, and of
course it was being picked up.. T_T Sorry :(
> Second, if you want to switch to newer declarative features, just stick your
> __mapper_args__ on Base:
>
> class Base(object):
> version = Column(Integer)
>
> @declared_attr
> def __mapper_args__(cls):
> return {'version_id_col':cls.version}
>
> Base = declarative_base(cls=Base)
Very nice! Thanks :)
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.