# HG changeset patch # Parent 559e3266ed1eeba384445016ffd1438eed54f144 diff --git a/__openerp__.py b/__openerp__.py --- a/__openerp__.py +++ b/__openerp__.py @@ -1,4 +1,7 @@ { 'name': "Academy", 'category': "Tools", + 'data': [ + 'views/templates.xml', + ] } diff --git a/controllers.py b/controllers.py --- a/controllers.py +++ b/controllers.py @@ -17,41 +17,11 @@ class Home(main.Home): for i, ta in enumerate(teaching_assistants) ] - return """ - - - AcademyAcademy - - - -

Introduction to a thing

-

Course description

-

- This course will provide a basic introduction to a thing, for - motivated students with no prior experience in things. The course - will focus on the discovery of things and the planning and - organization necessary to handle things. -

-

Teaching Assistants

- - - -""" % { - 'tas': '\n'.join(tas) - } + # how in fuck do I get a db here? + return "" % { + 'tas': '\n'.join(tas) + } @http.route('/tas//', auth='none') def ta(self, id): - return """ - - - AcademyAcademy TA %(name)s - - - -

%(name)s

- - -""" % teaching_assistants[id] + return "" % teaching_assistants[id] diff --git a/views/templates.xml b/views/templates.xml new file mode 100644 --- /dev/null +++ b/views/templates.xml @@ -0,0 +1,39 @@ + + + + + + + +