Added the media controller.

This commit is contained in:
Raoul Snyman 2010-04-12 13:21:00 +02:00
parent bc469f49d8
commit 705a88c54d
2 changed files with 23 additions and 0 deletions

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 MediaController(BaseController):
def index(self):
# Return a rendered template
#return render('/media.mako')
# or, return a response
return 'Hello World'

View 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...