[IMP] remove footer link to sitemap, add direct sitemap link in test suite

the html sitemap is used as a proxy for testing the XML one.

bzr revid: xmo@openerp.com-20131125120916-d5w5xos2c7aimf31
This commit is contained in:
Xavier Morel
2013-11-25 13:09:16 +01:00
parent b05db3495c
commit a67b3adf80
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -239,7 +239,9 @@ class Website(openerp.addons.web.controllers.main.Home):
@website.route('/sitemap', type='http', auth='public', multilang=True)
def sitemap(self):
return request.website.render('website.sitemap', {'pages': request.website.enumerate_pages()})
return request.website.render('website.sitemap', {
'pages': request.website.enumerate_pages()
})
@website.route('/sitemap.xml', type='http', auth="public")
def sitemap_xml(self):
+1 -1
View File
@@ -80,7 +80,7 @@ class CrawlSuite(unittest2.TestSuite):
assert auth.getcode() < 400, "Auth failure %d" % auth.getcode()
def _wrapped_run(self, result, debug=False):
paths = [URL('/')]
paths = [URL('/'), URL('/sitemap')]
seen = set(paths)
while paths:
+1 -1
View File
@@ -215,7 +215,7 @@
<a class="label label-danger" href="https://openerp.com/apps/website">OpenERP</a>
</div>
<div class="pull-left text-muted">
Copyright &amp;copy; <span t-field="res_company.name">Company name</span> - <a href="/sitemap">Sitemap</a>
Copyright &amp;copy; <span t-field="res_company.name">Company name</span>
</div>
</div>
</footer>