Added feed controller

This commit is contained in:
Raoul Snyman 2010-01-26 15:06:47 +02:00
parent 9b8bdce543
commit 30b11b1cc4
3 changed files with 24 additions and 1 deletions

View File

@ -1 +1 @@
/home/raoul/VirtualEnv/ScribeEngine/trunk/bin/paster serve development.ini --reload
/home/raoul/VirtualEnv/ScribeEngine/feeds/bin/paster serve development.ini --reload

View File

@ -0,0 +1,16 @@
import logging
from pylons import request, response, session, tmpl_context as c
from pylons.controllers.util import abort, redirect_to
from scribeengine.lib.base import BaseController, render
log = logging.getLogger(__name__)
class FeedController(BaseController):
def index(self):
# Return a rendered template
#return render('/feed.mako')
# or, return a response
return 'Hello World'

View File

@ -0,0 +1,7 @@
from scribeengine.tests import *
class TestFeedController(TestController):
def test_index(self):
response = self.app.get(url(controller='feed', action='index'))
# Test response...