On Oct 22, 8:19 pm, "Bruce Kroeze" <[EMAIL PROTECTED]> wrote:
> On Wed, Oct 22, 2008 at 9:58 AM, Martin <[EMAIL PROTECTED]> wrote:
> > ...
>
> Great description, and a reasonable thing-to-want-to-do.
>
> I've added a "form_save" signal to the payment module in [1643]. It will be
> called after the order is created. Note that it is called by both
> SimplePayShipForm and CreditPayShipForm, so make sure to listen to only the
> one you want, or you'll be saving your customer comment twice.
That was fast :) Thank you! Now I can get the form_save signal and get
the order. And now on to a (maybe) very basic follow-up task:
I now have the current (pseudocode) program flow based on the signals
I receive:
1. PaymentContactInfoForm is created => I add the extra CharField to
the form
2. PaymentContactInfoForm is saved => I can get the comment from the
form
4. CreditPayShipForm is saved => I can get the order that was just
created
My question is: how do I get the order and the comment at the same
time? When I have the comment, I don't have the order and when I have
the order, I don't have the comment. I somehow have to connect the
two. What is the "right" way to do this? Comming from a PHP world (new
to Python, Django and Satchmo) I'm beginning to think I need a
session, am I right or am I missing something here?
Best Regards
Martin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---