[sqlalchemy] Re: Getting access to the object being updated inside a default callable?

2010-03-05 Thread Oliver Beattie
Sorry to bug… I imagine there is no way of doing this, but would be good to know for sure. If not, this would be really useful functionality. For instance, I might want to populate one column based on the contents of one of more other columns. On 12 Jan, 11:21, Oliver Beattie oli...@obeattie.com

Re: [sqlalchemy] Re: Getting access to the object being updated inside a default callable?

2010-03-05 Thread Michael Bayer
Oliver Beattie wrote: Sorry to bug… I imagine there is no way of doing this, but would be good to know for sure. If not, this would be really useful functionality. For instance, I might want to populate one column based on the contents of one of more other columns. On 12 Jan, 11:21, Oliver

[sqlalchemy] Re: Getting access to the object being updated inside a default callable?

2010-03-05 Thread Oliver Beattie
Thanks for clarifying that. The MapperExtension is what I've been using so far for this, just wondered if there was a way to do this with column-level defaults. Now that I think about it though, the current way probably does make more sense, since if the values are dependent on outside influences,