you are not the first to have these particular issues, I am going to
look into the docs today and see if I can break out more clearly the
job of the unit of work, and what it does do/does not do, as the
various emails ive gotten on this type of thing are clarifying for me
some notions that were "implicit" in my own mind (which is why i like
help with docs in general..)
the obj.delete() method itself, which comes from assign_mapper, is
already an extension...the official way to delete an object is
objectstore.get_session().delete(obj). so feel free to add your own
delete() method that does what you want, and id be interested to see
how you go about finding all the references to that object.
On Mar 25, 2006, at 6:53 AM, Tiago Cogumbreiro wrote:
Thanks alot Michael for your detailed reply. I think most of my
confusions were due to some pre-convieved ideas I had regartding ORMs.
I wasn't aware of the whole concept of sessions and, probably because
of 'backref's, I had the misconception that sqlalchemy would do
everything.
Now that I understand a bit more the do's and dont's I am wondering if
there's any possibility of having extension points. This way I could
implement the cleanup of the references when the user issued an
obj.delete(). Do you think this can already be done with the current
API?
yah, thats exactly what it does, not like theres an entire section
in the
docs on that or anything.....
http://www.sqlalchemy.org/docs/unitofwork.myt#unitofwork_identity
;)
I'm sorry for skiping that one :|
--
Tiago Cogumbreiro <[EMAIL PROTECTED]>
http://s1x.homelinux.net/
-------------------------------------------------------
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&kid0944&bid$1720&dat1642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users
-------------------------------------------------------
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&kid0944&bid$1720&dat1642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users