changeset 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 324a20dad828
children 1547a168325a
files MoinMoin/theme/__init__.py docs/CHANGES
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Wed Jul 19 09:25:57 2006 +0200
+++ b/MoinMoin/theme/__init__.py	Wed Jul 19 09:32:14 2006 +0200
@@ -1482,6 +1482,9 @@
             user_head.append(request.cfg.html_head_queries)
         elif request.request_method == 'POST':
             user_head.append(request.cfg.html_head_posts)
+        # we don't want to have BadContent stuff indexed:
+        elif pagename in ['BadContent', 'LocalBadContent', ]:
+            user_head.append(request.cfg.html_head_posts)
         # if it is a special page, index it and follow the links - we do it
         # for the original, English pages as well as for (the possibly
         # modified) frontpage:
--- a/docs/CHANGES	Wed Jul 19 09:25:57 2006 +0200
+++ b/docs/CHANGES	Wed Jul 19 09:32:14 2006 +0200
@@ -181,6 +181,8 @@
     * fixed MoinMoin:MoinMoinBugs/HtmlTextConvertTables
     * updated ImageLink macro
     * Added a (less broken) MoinMoin.support.difflib, details see there.
+    * BadContent and LocalBadContent now get noindex,nofollow robots header,
+      same as POSTs.
 
   Other changes:
     * we use (again) the same browser compatibility check as FCKeditor uses