Added the media controller.
This commit is contained in:
parent
bc469f49d8
commit
705a88c54d
16
scribeengine/controllers/media.py
Normal file
16
scribeengine/controllers/media.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 MediaController(BaseController):
|
||||||
|
|
||||||
|
def index(self):
|
||||||
|
# Return a rendered template
|
||||||
|
#return render('/media.mako')
|
||||||
|
# or, return a response
|
||||||
|
return 'Hello World'
|
7
scribeengine/tests/functional/test_media.py
Normal file
7
scribeengine/tests/functional/test_media.py
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
from scribeengine.tests import *
|
||||||
|
|
||||||
|
class TestMediaController(TestController):
|
||||||
|
|
||||||
|
def test_index(self):
|
||||||
|
response = self.app.get(url(controller='media', action='index'))
|
||||||
|
# Test response...
|
Reference in New Issue
Block a user