robert rottermann a écrit : > I do not see any reference to mark_changed > you have to call it before any transaction.commit() to tell the zope transaction > machinery that it has to commit you changes also. > robert >
In fact, what I understood is that zope.sqlalchemy, by default, bypasses the commit if status is not manually set as 'changed' (see the docstring I quoted in my previous mail). The alternative is to build the SessionExtension with initial_state == STATUS_INVALIDATED. My point is that it should be the default for a DA, as it is intended to be used mainly by zsql methods which doesn't do nothing to the transaction state. Maybe I wasn't clear but the patch works well with my existing zsql code. -- _____________ Maric Michaud _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )