The signals are not asynchronous. The are synchronous, so they will always get executed every time. It isn't a classic "message queue" like Java is so fond of using in enterprise situations. To prove it to yourself, add logging and write some tests with your new signal. It'll get called.
On Wed, Apr 15, 2009 at 3:15 PM, [email protected] < [email protected]> wrote: > > Ok, one further clarification: > > So I have read up on signals, and the only remaining niggle that I > have is this. Lets say I write some a function and connect it to the > satchmo_price_query signal. Said function receives the signal, > inspects the model, calculates its correct price based on today's gold > fix and updates the price in the database accordingly. So far so good. > What guarantee do I have that my handler will be executed and finished > before the price is fetched from the database? > > On 13 Apr, 19:01, "[email protected]" > <[email protected]> wrote: > > Brilliant. That seems like a much smarter way of doing it. Signals is > > probably the only section of django of which I have zero knowledge so > > this will be a good chance to leverage them. > > > > On 13 Apr, 01:36, Chris Moffitt <[email protected]> wrote: > > > > > I think the preferred way to do this would be to use signals to > dynamically > > > calculate the price. You can read more about the various ones in > Satchmo > > > here -http://www.satchmoproject.com/docs/svn/signals.html > > > > > You'll probably want to use satchmo_price_query > > > > > -Chris > > > > > On Sun, Apr 12, 2009 at 4:46 PM, [email protected] < > > > > > [email protected]> wrote: > > > > > > Hi, > > > > > > I am looking at various options for building a web store selling > > > > jewellery. One of the things I absolutely need to be able to do is to > > > > able to rapidly change the price of products based on daily fixes for > > > > gold etc.. > > > > > > I've had a quick poke around satchmo and the best way I can think of > > > > right now is to create a custom product model with weight and > > > > multiplier attributes. Then I could run a query daily basis using > > > > those attributes to update the price in the database. I'm not sure > > > > this is the best method. Does anyone else have any other better ideas > > > > on how that might be done? > > > > > > I would be much obliged for any input you could offer. > > > -- Bruce Kroeze http://solidsitesolutions.com Dynamic Designs, Optimized --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~----------~----~----~----~------~----~------~--~---
