Hi,
I use to save one of my model objects in the myghty session (User object).
This no longer works after updating to the lastest svn.
I'm assuming that weakref usage is causing this which is all fine.
Is there a way to remove all SA magic stuff from my objects after SA has
loaded it from the db.
So I can still do eg.
user = User.select_by(login='mylogin', password='mypassword')
objectstore.worry_not_about(user)
Which leaves my user object as a simple python object with attributes
and nothing else.
This is also useful because I would like to use my model objects as DTO
or parameter objects to methods but don't want SA to think that changes
to it should be persisted.
Thanks
Huy
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users