add new controller for javascript and autocompletion code
This commit is contained in:
parent
659dbaed19
commit
7208b390c5
2 changed files with 20 additions and 0 deletions
13
ddportfolioservice/controllers/showformscripts.py
Normal file
13
ddportfolioservice/controllers/showformscripts.py
Normal 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'
|
|
@ -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...
|
Loading…
Reference in a new issue