comparison MoinMoin/theme/__init__.py @ 992:6d9eeabb2bd9

noindex,nofollow for BadContent / LocalBadContent
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 19 Jul 2006 09:32:14 +0200
parents d3066011d048
children e8aef4cb2b34
comparison
equal deleted inserted replaced
991:324a20dad828 992:6d9eeabb2bd9
1480 # if it is an action or edit/search, send query headers (noindex,nofollow): 1480 # if it is an action or edit/search, send query headers (noindex,nofollow):
1481 if request.query_string: 1481 if request.query_string:
1482 user_head.append(request.cfg.html_head_queries) 1482 user_head.append(request.cfg.html_head_queries)
1483 elif request.request_method == 'POST': 1483 elif request.request_method == 'POST':
1484 user_head.append(request.cfg.html_head_posts) 1484 user_head.append(request.cfg.html_head_posts)
1485 # we don't want to have BadContent stuff indexed:
1486 elif pagename in ['BadContent', 'LocalBadContent', ]:
1487 user_head.append(request.cfg.html_head_posts)
1485 # if it is a special page, index it and follow the links - we do it 1488 # if it is a special page, index it and follow the links - we do it
1486 # for the original, English pages as well as for (the possibly 1489 # for the original, English pages as well as for (the possibly
1487 # modified) frontpage: 1490 # modified) frontpage:
1488 elif pagename in [page_front_page, request.cfg.page_front_page, 1491 elif pagename in [page_front_page, request.cfg.page_front_page,
1489 page_title_index, 'TitleIndex', 1492 page_title_index, 'TitleIndex',