# HG changeset patch # Parent a110c540b0769ee849a404324cf8594d116cc982 diff --git a/controllers/academy.py b/controllers/academy.py --- a/controllers/academy.py +++ b/controllers/academy.py @@ -3,12 +3,45 @@ from openerp import http from openerp.addons.web.controllers import main +teaching_assistants = [ + {'name': "Diana Padilla"}, + {'name': "Jody Carroll"}, + {'name': "Lester Vaughn"}, + {'name': "Paul Jimenez"}, + {'name': "Tanya Harris"}, +] + class academy(main.Home): @http.route('/', auth='none') def index(self): + tas = [ + '
  • %s
  • ' % (i, ta['name']) + for i, ta in enumerate(teaching_assistants) + ] + return """ - Hello, world! +

    Introduction to something

    +

    Teaching Assistants

    + -""" +""" % { + 'tas': '\n'.join(tas) + } + + @http.route('/tas', auth='none') + def ta(self, id): + return """ + + + AcademyAcademy TA %(name)s + + + +

    %(name)s

    + + +""" % teaching_assistants[int(id)]