source: TI12-security/trunk/NDGSecurity/python/Tests/authtest/authtest/controllers/redirect.py @ 7080

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/Tests/authtest/authtest/controllers/redirect.py@7080
Revision 7080, 358 bytes checked in by pjkersha, 9 years ago (diff)
  • Property svn:keywords set to Id
Line 
1import logging
2
3from authtest.lib.base import *
4
5log = logging.getLogger(__name__)
6
7class RedirectController(BaseController):
8
9    def index(self):
10        # Return a rendered template
11        #   return render('/some/template.mako')
12        # or, Return a response
13        h.redirect_to('http://localhost:5100/handle_redirect')
14        return 'Hello World'
Note: See TracBrowser for help on using the repository browser.