When a request comes in a tg app will access all sorts of remote/local services like db, etc. These might take very long to complete occasionally due to high traffic, local disruptions, etc. and let's suppose these disruptions are only temporary. So if they happen we have every reason to believe that after a few seconds the services will be available again.
I'd like to have a general mechanism for handling this and returning a short page to the user saying "services temporary unavailable, please try again in a few moments". Since I wouldn't want to handle every service separately I thought it would be handy to be able to say "if the controller doesn't return the response dict in 5 seconds, let's send the warning page". What would be the way to instruct tg 1.x to do this? I thought about a decorator for the exposed methods, or are there better solutions? Maybe others have already come up with something better and/or more elegant. Cheers, Daniel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

