changeset 4150:72604cb46155

Just use the browser property of useragent object
author Florian Krupicka <florian.krupicka@googlemail.com>
date Sun, 08 Jun 2008 12:16:15 +0200
parents 769850545997
children 30ac757e72de
files MoinMoin/web/utils.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/web/utils.py	Sun Jun 08 00:37:59 2008 +0200
+++ b/MoinMoin/web/utils.py	Sun Jun 08 12:16:15 2008 +0200
@@ -17,7 +17,7 @@
     """
     is_spider = False
     if useragent and cfg.cache.ua_spiders:
-        is_spider = cfg.cache.ua_spiders.search(str(useragent)) is not None
+        is_spider = cfg.cache.ua_spiders.search(useragent.browser) is not None
     return is_spider
 
 def handle_auth_form(user_obj):