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

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