2014-05-28 09:31:00 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from openerp import http
|
|
|
|
|
2014-06-03 23:27:59 +00:00
|
|
|
class {{ controller }}(http.Controller):
|
|
|
|
@http.route('/{{ module }}/{{ controller }}', auth='public', website=True)
|
2014-05-28 09:31:00 +00:00
|
|
|
def index(self):
|
|
|
|
return "Hello, world!"
|
2014-05-29 14:25:30 +00:00
|
|
|
{% if has_model %}
|
2014-06-03 23:27:59 +00:00
|
|
|
@http.route('/{{ module }}/{{ controller }}/<model("{{ module }}.{{ controller }}"):{{ controller }}>'], type='http', auth='public', website=True)
|
2014-05-29 14:25:30 +00:00
|
|
|
def {{ controller }}(self, {{ controller }}, **kw):
|
|
|
|
return "Hello, %r!" % {{ controller }}
|
2014-05-28 15:10:56 +00:00
|
|
|
{% endif %}
|