[REM] temporary disable sitemap

This commit is contained in:
Fabien Meghazi 2014-05-15 10:25:18 +02:00
parent ca08f5d674
commit cada6437d5
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ class Website(openerp.addons.web.controllers.main.Home):
@http.route('/sitemap.xml', type='http', auth="public", website=True)
def sitemap_xml_index(self):
return request.not_found() # Temporary disable sitemap
pages = list(request.website.enumerate_pages())
if len(pages)<=LOC_PER_SITEMAP:
return self.__sitemap_xml(pages, 0)