Re: [sqlalchemy] mutable extension problems sa-0.7.9

2012-12-04 Thread Dmitry Bogun
q__() cannot raise an exception if the incoming object is of > a different type. > > a simple change: > > def __eq__(self, other): > if not isinstance(other, SiteVersion): > return False > > and your script runs fine. > > > > On Dec 4, 20

[sqlalchemy] mutable extension problems sa-0.7.9

2012-12-04 Thread Dmitry Bogun
I have tried to create some custom SA type. And got in situation when I can't find correct wayout. Minimal test case in attach. My app have class SiteVersion, it can be used as regular object and as SA mmaped object. When I use only SiteVesionDeco(see attach) all works fine, except propagating