Mercurial > kallithea
changeset 180:3e5a359c7483
removed file controller
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 21 May 2010 23:20:31 +0200 |
parents | 63f9dc67ab0a |
children | 55c875d8608b |
files | pylons_app/controllers/file.py pylons_app/tests/functional/test_file.py |
diffstat | 2 files changed, 0 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/pylons_app/controllers/file.py Fri May 21 23:13:09 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -import logging - -from pylons import request, response, session, tmpl_context as c, url -from pylons.controllers.util import abort, redirect - -from pylons_app.lib.base import BaseController, render - -log = logging.getLogger(__name__) - -class FileController(BaseController): - - def index(self): - # Return a rendered template - #return render('/file.mako') - # or, return a string - return 'Hello World'
--- a/pylons_app/tests/functional/test_file.py Fri May 21 23:13:09 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -from pylons_app.tests import * - -class TestFileController(TestController): - - def test_index(self): - response = self.app.get(url(controller='file', action='index')) - # Test response...