changeset 4311:bafefd635670

Fix: typos introduced while porting check_spider
author Florian Krupicka <florian.krupicka@googlemail.com>
date Fri, 15 Aug 2008 10:23:58 +0200
parents 748d0cbcbd9b
children 9831c40c5bd9
files MoinMoin/web/contexts.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/web/contexts.py	Fri Aug 15 10:21:22 2008 +0200
+++ b/MoinMoin/web/contexts.py	Fri Aug 15 10:23:58 2008 +0200
@@ -230,9 +230,9 @@
     def isSpiderAgent(self):
         """ Simple check if useragent is a spider bot. """
         cfg = self.cfg
-        useragent = self.request.useragent
-        if useragent and cfg.cache.ua_spiders:
-            return cfg.cache.ua_spiders.search(seluseragent.browser) is not None
+        user_agent = self.request.user_agent
+        if user_agent and cfg.cache.ua_spiders:
+            return cfg.cache.ua_spiders.search(user_agent.browser) is not None
         return False
     isSpiderAgent = EnvironProxy(isSpiderAgent)