There is a low-level method tucked into the scheduler for scheduling one off tasks - though you'll have to dig into the code to find it:
http://trac.turbogears.org/browser/tags/1.0.4b3/turbogears/scheduler.py Basically you'll do something like: turbogears.scheduler._get_scheduler().schedule_task(task,delay) Though of course then you'll be using a non-public part of the API... On Dec 18, 4:48 am, "Uwe C. Schroeder" <[EMAIL PROTECTED]> 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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

