# HG changeset patch # Parent 122340f4360287bbc53f54e53ac609a8e7237796 # Parent 1f9194514fa81c49b9bc7922a010513d816a0c2e diff --git a/academy/controllers.py b/academy/controllers.py --- a/academy/controllers.py +++ b/academy/controllers.py @@ -9,9 +9,11 @@ class Academy(http.Controller): 'teachers': Teachers.search([]) }) - @http.route('/academy//', auth='public', website=True) - def teacher(self, id): - return '

{} ({})

'.format(id, type(id).__name__) + @http.route('/academy//', auth='public', website=True) + def teacher(self, teacher): + return http.request.render('academy.biography', { + 'person': teacher + }) # @http.route('/academy/academy/objects/', auth='public') diff --git a/academy/templates.xml b/academy/templates.xml --- a/academy/templates.xml +++ b/academy/templates.xml @@ -12,6 +12,18 @@ +