On 30/05/2006, at 4:43 PM, Shaun Cutts wrote:
>
> Ian,
>
> Thanks. Your code looks concise, but a bit mysterious (maybe it's
> the time
> of night). Is this a way to get extra events triggered in a db
> transaction,
> or is it just inside a single web request?
>
just inside a single web requ
Ian,
Thanks. Your code looks concise, but a bit mysterious (maybe it's the time
of night). Is this a way to get extra events triggered in a db transaction,
or is it just inside a single web request?
As far as I can tell, you don't seem to be insisting on having one
transaction; if you are, are y
Hi Shaun.
I've done something similar to this using the dispatcher.
in http://svn.zyons.python-hosting.com/trunk/zilbo/common/forum/
models.py (at the VERY bottom)
I use the signals to update summary tables .. I'm using pre_save..
but you should be able to get what you need with the post_sav
Hello,
I tried using @transaction.commit_on_success to insert an object whose
pieces are in (sub)tables.
Conceptually, this should all be part of one transaction. However,
django doesn't have the new id available, and so the operation fails
(it tries to use "null" for the foreign key in the subt