[sqlalchemy] Re: delete attributes of last flush or commit in a MapperExtension already executed

2010-07-14 Thread sacabuche
)).first() if not last_sku_value: return None try: return last_sku_value[0] except IndexError: return None On 13 jul, 16:35, Michael Bayer mike...@zzzcomputing.com wrote: On Jul 13, 2010, at 10:21 AM, sacabuche wrote: I was trying

[sqlalchemy] delete attributes of last flush or commit in a MapperExtension already executed

2010-07-13 Thread sacabuche
I was trying to get the last value before_insert a new item but i didn't find out, so i change of strategy and i saved the last value of this method, but the problem is that when i do other commits my old MapperExtension attribute (self.last_value) get the last value and i dislike it, even when I