[sqlalchemy] Re: Can I use MapperExtension.before_insert to prevent an object from being INSERTed on commit()?

2009-10-14 Thread Michael Bayer
bojanb wrote: I was under the impression that returning EXT_STOP in my MapperExtension.before_insert() can prevent an object from being inserted into the database altogether, but that doesn't seem to be working, so I'm not sure if I'm misunderstanding the operation of MapperExtensions or

[sqlalchemy] Re: Can I use MapperExtension.before_insert to prevent an object from being INSERTed on commit()?

2009-10-14 Thread bojanb
it does not. http://www.sqlalchemy.org/docs/05/reference/orm/interfaces.html?highl... Returning EXT_STOP will halt processing of further extensions handling that method. that only refers to additional extensions. Right. The doc was a little ambigous - the or use the default functionality