I got around this by switching to declarative and declaring my
property like this:
_id = column_property(Column("id",Integer,primary_key=True),
comparator_factory=some_comparator_factory())
And then used @synonym_for for the getter:
@synonym_for("_id")
@property
def id(self):
return some_function(self._id)
I'm still not sure what was wrong with my original code, so would be
interested in any comments, for academic reasons.
Thank you!
Matthew
--
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.