Mercurial > public > src > rhodecode
diff pylons_app/controllers/feed.py @ 205:66b20f525750
Added feed controllers, urls,and changed index page to use them.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 23 May 2010 01:03:54 +0200 |
parents | |
children | 8bdec09436cb |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pylons_app/controllers/feed.py Sun May 23 01:03:54 2010 +0200 @@ -0,0 +1,22 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +import logging +from operator import itemgetter +from pylons import tmpl_context as c, request, config +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 +from pylons_app.lib.auth import LoginRequired +log = logging.getLogger(__name__) + +class FeedController(BaseController): + + #secure it or not ? + def __before__(self): + super(FeedController, self).__before__() + + def atom(self): + return 'Hello Atom' + + def rss(self): + return 'Hello rss'