add new controller for javascript and autocompletion code

This commit is contained in:
Jan Dittberner 2009-01-23 14:29:37 +01:00
parent 659dbaed19
commit 7208b390c5
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,13 @@
import logging
from ddportfolioservice.lib.base import *
log = logging.getLogger(__name__)
class ShowformscriptsController(BaseController):
def index(self):
# Return a rendered template
# return render('/some/template.mako')
# or, Return a response
return 'Hello World'

View file

@ -0,0 +1,7 @@
from ddportfolioservice.tests import *
class TestShowformscriptsController(TestController):
def test_index(self):
response = self.app.get(url_for(controller='showformscripts'))
# Test response...