Added feed controller
This commit is contained in:
parent
9b8bdce543
commit
30b11b1cc4
@ -1 +1 @@
|
|||||||
/home/raoul/VirtualEnv/ScribeEngine/trunk/bin/paster serve development.ini --reload
|
/home/raoul/VirtualEnv/ScribeEngine/feeds/bin/paster serve development.ini --reload
|
||||||
|
16
scribeengine/controllers/feed.py
Normal file
16
scribeengine/controllers/feed.py
Normal 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'
|
7
scribeengine/tests/functional/test_feed.py
Normal file
7
scribeengine/tests/functional/test_feed.py
Normal 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...
|
Reference in New Issue
Block a user