-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
hi uwe, i might have not understood you well: webservice calls tg_controller with parameters tg_controller answers status 200 (ok) here, webservice should be happy it's mission succeeded. conversely, if an exception might occur in tg_controller, status wouldn't be 200. after getting 200, webservice might query the tg site to see whether the data has been handled correctly. alex Uwe C. Schroeder wrote: > > Alex, > > is there any documentation about this you could point me to? Googling for it > doesn't yield any results. > > THX > > Uwe > > > On Monday 17 December 2007, alex bodnaru wrote: >> 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 iQCVAwUBR2d3n9pwN1sq38njAQLY2gP/VYeEYmjoE+cvvG2fT3EJDr1fp1HEyaJD 5caHX5U7ES0wD7g72cQVvRlfSUoaXeqAh0aUUfFZvrHpdJW64erB8e/hSai8KoOW KYsrfvl9pk+s/hAO9ClLEPDdFaYSRStYM/piwQBEkzx0K2zErcymKT/n/TQi0IBD rW45ZlbjaqQ= =lbe5 -----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 -~----------~----~----~----~------~----~------~--~---

