diff options
| author | Jeremy Kersten <jke@odoo.com> | 2019-10-22 07:18:49 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-10-22 16:36:37 +0000 |
| commit | 2cab9a8341e3b779ef5c77d665104cc52a5b54cb (patch) | |
| tree | bf95d6aff8ce8d6c528377881eea296861d3ee29 /addons/test_website/controllers/main.py | |
| parent | 9109399aad1cf20caa1c4cc7666c0bbd67691647 (diff) | |
[FIX] website: clean sitemap
followup of 8a0fc6476c70a4126043de3b3efbd1096e41f968
task-2065018
closes odoo/odoo#39211
X-original-commit: bfa239b59c4d02c2b03ab8a84b52bc8f77704e41
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/test_website/controllers/main.py')
| -rw-r--r-- | addons/test_website/controllers/main.py | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/addons/test_website/controllers/main.py b/addons/test_website/controllers/main.py index 6b4328287e0..b95dfddd2a1 100644 --- a/addons/test_website/controllers/main.py +++ b/addons/test_website/controllers/main.py @@ -16,90 +16,90 @@ class WebsiteTest(Home): def test_view(self, **kwargs): return request.render('test_website.test_view') - @http.route('/ignore_args/converteronly/<string:a>/', type='http', auth="public", website=True) + @http.route('/ignore_args/converteronly/<string:a>/', type='http', auth="public", website=True, sitemap=False) def test_ignore_args_converter_only(self, a): return request.make_response(json.dumps(dict(a=a, kw=None))) - @http.route('/ignore_args/none', type='http', auth="public", website=True) + @http.route('/ignore_args/none', type='http', auth="public", website=True, sitemap=False) def test_ignore_args_none(self): return request.make_response(json.dumps(dict(a=None, kw=None))) - @http.route('/ignore_args/a', type='http', auth="public", website=True) + @http.route('/ignore_args/a', type='http', auth="public", website=True, sitemap=False) def test_ignore_args_a(self, a): return request.make_response(json.dumps(dict(a=a, kw=None))) - @http.route('/ignore_args/kw', type='http', auth="public", website=True) + @http.route('/ignore_args/kw', type='http', auth="public", website=True, sitemap=False) def test_ignore_args_kw(self, a, **kw): return request.make_response(json.dumps(dict(a=a, kw=kw))) - @http.route('/ignore_args/converter/<string:a>/', type='http', auth="public", website=True) + @http.route('/ignore_args/converter/<string:a>/', type='http', auth="public", website=True, sitemap=False) def test_ignore_args_converter(self, a, b='youhou', **kw): return request.make_response(json.dumps(dict(a=a, b=b, kw=kw))) - @http.route('/ignore_args/converter/<string:a>/nokw', type='http', auth="public", website=True) + @http.route('/ignore_args/converter/<string:a>/nokw', type='http', auth="public", website=True, sitemap=False) def test_ignore_args_converter_nokw(self, a, b='youhou'): return request.make_response(json.dumps(dict(a=a, b=b))) - @http.route('/multi_company_website', type='http', auth="public", website=True) + @http.route('/multi_company_website', type='http', auth="public", website=True, sitemap=False) def test_company_context(self): return request.make_response(json.dumps(request.context.get('allowed_company_ids'))) # Test Session - @http.route('/test_get_dbname', type='json', auth='public', website=True) + @http.route('/test_get_dbname', type='json', auth='public', website=True, sitemap=False) def test_get_dbname(self, **kwargs): return request.env.cr.dbname # Test Error - @http.route('/test_error_view', type='http', auth='public', website=True) + @http.route('/test_error_view', type='http', auth='public', website=True, sitemap=False) def test_error_view(self, **kwargs): return request.render('test_website.test_error_view') - @http.route('/test_user_error_http', type='http', auth='public', website=True) + @http.route('/test_user_error_http', type='http', auth='public', website=True, sitemap=False) def test_user_error_http(self, **kwargs): raise UserError("This is a user http test") - @http.route('/test_user_error_json', type='json', auth='public', website=True) + @http.route('/test_user_error_json', type='json', auth='public', website=True, sitemap=False) def test_user_error_json(self, **kwargs): raise UserError("This is a user rpc test") - @http.route('/test_validation_error_http', type='http', auth='public', website=True) + @http.route('/test_validation_error_http', type='http', auth='public', website=True, sitemap=False) def test_validation_error_http(self, **kwargs): raise ValidationError("This is a validation http test") - @http.route('/test_validation_error_json', type='json', auth='public', website=True) + @http.route('/test_validation_error_json', type='json', auth='public', website=True, sitemap=False) def test_validation_error_json(self, **kwargs): raise ValidationError("This is a validation rpc test") - @http.route('/test_access_error_json', type='json', auth='public', website=True) + @http.route('/test_access_error_json', type='json', auth='public', website=True, sitemap=False) def test_access_error_json(self, **kwargs): raise AccessError("This is an access rpc test") - @http.route('/test_access_error_http', type='http', auth='public', website=True) + @http.route('/test_access_error_http', type='http', auth='public', website=True, sitemap=False) def test_access_error_http(self, **kwargs): raise AccessError("This is an access http test") - @http.route('/test_missing_error_json', type='json', auth='public', website=True) + @http.route('/test_missing_error_json', type='json', auth='public', website=True, sitemap=False) def test_missing_error_json(self, **kwargs): raise MissingError("This is a missing rpc test") - @http.route('/test_missing_error_http', type='http', auth='public', website=True) + @http.route('/test_missing_error_http', type='http', auth='public', website=True, sitemap=False) def test_missing_error_http(self, **kwargs): raise MissingError("This is a missing http test") - @http.route('/test_internal_error_json', type='json', auth='public', website=True) + @http.route('/test_internal_error_json', type='json', auth='public', website=True, sitemap=False) def test_internal_error_json(self, **kwargs): raise werkzeug.exceptions.InternalServerError() - @http.route('/test_internal_error_http', type='http', auth='public', website=True) + @http.route('/test_internal_error_http', type='http', auth='public', website=True, sitemap=False) def test_internal_error_http(self, **kwargs): raise werkzeug.exceptions.InternalServerError() - @http.route('/test_access_denied_json', type='json', auth='public', website=True) + @http.route('/test_access_denied_json', type='json', auth='public', website=True, sitemap=False) def test_denied_error_json(self, **kwargs): raise AccessDenied("This is an access denied rpc test") - @http.route('/test_access_denied_http', type='http', auth='public', website=True) + @http.route('/test_access_denied_http', type='http', auth='public', website=True, sitemap=False) def test_denied_error_http(self, **kwargs): raise AccessDenied("This is an access denied http test") |
