--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+...@googlegroups.com.
To post to this group, send email to sqlal...@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "sqlalchemy" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sqlalchemy/SwOckp6-Vh8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sqlalchemy+...@googlegroups.com.
http://stackoverflow.com/questions/14896982/sqlalchemy-versioned-object-not-working
I couldn't find a straight fwd way to check if state of the object (is dirty?) or check if it is versioned (like in the example above) using the session object parameter of after_bulk_insert. I looked at "result.context.compiled" I didn't find anything that will give me this info.
Has anybody done this? Appreciate any help...
thanks.
Hi,I am trying to do something similar -I am using the versioning example from here - http://docs.sqlalchemy.org/en/rel_0_7/orm/examples.html?highlight=examples#versioned-objectsBut instead of using before_flush I want to use after_bulk_update. This is because we use update query in our code and before_flush is not called for bulk updates.http://stackoverflow.com/questions/14896982/sqlalchemy-versioned-object-not-working
I couldn't find a straight fwd way to check if state of the object (is dirty?) or check if it is versioned (like in the example above) using the session object parameter of after_bulk_insert. I looked at "result.context.compiled" I didn't find anything that will give me this info.
Has anybody done this? Appreciate any help...
Thanks for your quick response. Sorry, my question was not very clear.
This is the version library I am using -https://github.com/zzzeek/sqlalchemy/blob/master/examples/versioned_history/history_meta.py
--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email tosqlalchemy+...@googlegroups.com.
To post to this group, send email to sqlal...@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.