hey tim -
turns out that was pretty easy. i will make __new__ the default
methodology in 0.2.
for 0.1, I have added a keyword option to mapper() in revision 1321
of the trunk "construct_new=True", which will cause the Mapper to
instantiate loaded instances using the __new__ method of the class
without calling the __init__ constructor.
On Apr 22, 2006, at 10:19 PM, Tim Van Steenburgh wrote:
Is the __init__() method of a class instance called every time an
object is loaded from the DB?
If so, what should I do with code that should only execute when an
object is first created, but not when it is reloaded from the DB?
Thanks,
Tim
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users