-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi uwe,

just send the response to another controller slot and process it there.

alex

Uwe C. Schroeder wrote:
> 
> Hi everyone,
> 
> this may be a stupid question, but how does one execute a controller method 
> on 
> delay.
> This is the sceanrio:
> 
> I have a controller method (exposed) which is called by a webservice from the 
> outside. The webservice just "POST"'s a set of variables to this method.
> The method processes the variables and then the method returns - which 
> results 
> in a 200 resultcode to the webservice.
> So far so good. But now I need to POST a response to the webservice, 
> verifying 
> that I got their message. I can't do that in the controller method they call, 
> because my POST has to happen AFTER the controller returns the 200 response.
> So I was thinking about using the scheduler to just schedule a call to some 
> method which then will use urllib2 to assemble and send the appropriate 
> response.
> However, the scheduler can only schedule recurring tasks, not a single 
> delayed 
> execution.
> 
> Anyone got a nifty idea how to do this?
> 
> Thanks
> 
>       Uwe
> 
> 
> 
> > 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBR2c3V9pwN1sq38njAQKeVgP/aKYIrHPPgVxqtFcVIZed04g9AArzyzPg
7AgyeEfx4ufBBQO2vwfJjCiZdCpSZfxSoLd/o0E0wKw7xqKeh+MpjRrAlmAf9IYK
1xi3uthW1WZG4okTmyz87aXifEVZLKa8gZTDI58YOHJ4pFpREAPO+NY+VeZ0jhCJ
rwtwMAELVa8=
=g8vE
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to