[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:
@@ -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):
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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 &copy; <span t-field="res_company.name">Company name</span> - <a href="/sitemap">Sitemap</a>
|
||||
Copyright &copy; <span t-field="res_company.name">Company name</span>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
Reference in New Issue
Block a user