thanks a lot carlos, it worked like a charm :) .
alex On 07/24/2012 04:38 PM, Carlos Daniel Ruvalcaba Valenzuela wrote: > Try rising HTTPMovedPermanently exception, which can be imported from > webob.exc, take for example the following example: > > from webob.exc import HTTPMovedPermanently > > class RootController(BaseController): > @expose() > def old_url(self): > raise HTTPMovedPermanently(location="/") > > As you can see HTTPMovedPermanently accepts the param location to tell > it where to redirect the client. Be sure to raise as an exception and > not just return it. > > Regards, > Carlos Daniel Ruvalcaba Valenzuela > -- 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.

