How long does the process take?

If it is pretty quick, just make a view function that calls the
process and returns the results.

If it is slower, the you could use some kind of subprocess call. Check
out these answers:
http://stackoverflow.com/questions/89228/how-to-call-external-command-in-python#answer-2251026
One key thing would be detaching the child process so your view can
return before the child process finishes.

If it is really slow, or you want to do some cool stuff, you could use
something like celery to coordinate the queue, workers, etc.
http://ask.github.com/celery/getting-started/introduction.html

--
Alex Robbins
5Q Communications, Inc.
http://www.5Qcommunications.com/
[email protected]
800-747-4214 ext 913 (p)
http://www.ask5q.com/twitter/



On Thu, May 6, 2010 at 3:48 PM, Rodrigo Machado <[email protected]> wrote:
> Hi,
>
> I need to run a process on the backend when it receives a notification
> from PayPal via IPN. Is there any way to the Satchmo call this script?
> If not, what is the best way to implement this feature (using
> signals?)
>
> Thanks in advance,
> Rodrigo Machado
>
> --
> 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.
>
>

-- 
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.

Reply via email to