Mercurial > kallithea
view pylons_app/controllers/changeset.py @ 167:e5a25c57c97f
files source updated to use webhelpers huminizer for file size, and added link to annotation
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 21 May 2010 02:12:41 +0200 |
parents | 665b344927f4 |
children | 50a39f923f31 |
line wrap: on
line source
import logging from pylons import request, response, session, tmpl_context as c, url, config, app_globals as g from pylons.controllers.util import abort, redirect from pylons_app.lib.base import BaseController, render from pylons_app.lib.utils import get_repo_slug from pylons_app.model.hg_model import HgModel log = logging.getLogger(__name__) class ChangesetController(BaseController): def __before__(self): c.repos_prefix = config['repos_name'] c.repo_name = get_repo_slug(request) def index(self): # Return a rendered template #return render('/changeset.mako') # or, return a string return 'Hello World'