Mercurial > kallithea
view pylons_app/controllers/file.py @ 148:d928d5f0a251
Adde raw file to routes, and refactoring
updated link to raw file at file source template
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 11 May 2010 22:23:16 +0200 |
parents | aec4c0071cb3 |
children |
line wrap: on
line source
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'